Skip to content

Commit 49980c1

Browse files
Bump js-yaml from 3.14.1 to 4.1.1 (#50)
* Bump js-yaml from 3.14.1 to 4.1.1 Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.1 to 4.1.1. - [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md) - [Commits](nodeca/js-yaml@3.14.1...4.1.1) --- updated-dependencies: - dependency-name: js-yaml dependency-version: 4.1.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * fix: adapted api after breaking changes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: chulanovskyi <oleg.chulanovskyi@binary-studio.com>
1 parent 5f613c1 commit 49980c1

3 files changed

Lines changed: 36 additions & 52 deletions

File tree

forward_engineering/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module.exports = {
7878

7979
switch (data.targetScriptOptions.format) {
8080
case 'yaml': {
81-
const schema = yaml.safeDump(filteredSwaggerSchema, { skipInvalid: true });
81+
const schema = yaml.dump(filteredSwaggerSchema, { skipInvalid: true });
8282
const schemaWithComments = addCommentsSigns(schema, 'yaml');
8383
cb(null, schemaWithComments);
8484
break;
@@ -112,7 +112,7 @@ module.exports = {
112112

113113
switch (targetScriptOptions.format) {
114114
case 'yaml':
115-
parsedScript = yaml.safeLoad(filteredScript);
115+
parsedScript = yaml.load(filteredScript);
116116
break;
117117
case 'json':
118118
default:

package-lock.json

Lines changed: 33 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"disabled": false,
9696
"dependencies": {
9797
"comment-json": "4.1.0",
98-
"js-yaml": "3.14.1",
98+
"js-yaml": "4.1.1",
9999
"lodash": "4.17.21",
100100
"lodash.clonedeep": "4.5.0",
101101
"lodash.get": "4.2.1",

0 commit comments

Comments
 (0)