Skip to content

Commit

Permalink
fix: bump yaml-ast-parser (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Jankowski authored Mar 23, 2020
1 parent 8d9b878 commit 94792fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"dependencies": {
"@stoplight/types": "^11.1.1",
"@stoplight/yaml-ast-parser": "0.0.44",
"@stoplight/yaml-ast-parser": "0.0.45",
"lodash": "^4.17.15"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions src/__tests__/safeStringify.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,10 @@ b:
foo: bar
`);
});

test('should stringify strings containing numbers with leading 0 (but are not octals) correctly', () => {
const obj = { value: '012345678' };

expect(safeStringify(obj, { noRefs: true })).toEqual(`value: '012345678'\n`);
});
});
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1582,10 +1582,10 @@
dependencies:
"@types/json-schema" "^7.0.3"

"@stoplight/[email protected].44":
version "0.0.44"
resolved "https://registry.yarnpkg.com/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.44.tgz#ed3c962564283e9983f7895a6effc3994286df5e"
integrity sha512-PdY8p2Ufgtorf4d2DbKMfknILMa8KwuyyMMR/2lgK1mLaU8F5PKWYc+h9hIzC+ar0bh7m9h2rINo32m7ADfVyA==
"@stoplight/[email protected].45":
version "0.0.45"
resolved "https://registry.yarnpkg.com/@stoplight/yaml-ast-parser/-/yaml-ast-parser-0.0.45.tgz#672c0a1511d581843be5a9c55899ca95a30dcadb"
integrity sha512-0MTEvgp3XMdeMUSTCGiNECuC+YlLbzytDEIOJVDHrrmzVZpIR3gGnHI6mmPI4P7saPxUiHxFF2uuoTuCNlKjrw==

"@storybook/[email protected]":
version "4.0.11"
Expand Down

0 comments on commit 94792fd

Please sign in to comment.