Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

js-yaml introduces changes in behaviour #21

Description

@confuser

Authentication in one of our dev APIs was failing.

A client secret is defined as an integer within a config yaml file. Since the change over to js-yaml within this library, this means it's now being interpreted differently for some reason, and being rounded up.

Forcing it to a string by wrapping it within quotes does solve this problem but it's a major change in previous behaviour; which was quite unexpected and has caused a significant amount of time tracking this down on our side.

Example:

anAPI:
  clientSecret: 8421999999999995999
a127.init(function (config) {
    console.log(config.anAPI.clientSecret)
})

clientSecret becomes 8421999999999996000

Using 0.12.1 of a127-magic. Reverting to 0.11.2 this issue does not occur.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions