mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-01-30 13:50:55 +08:00
fix(deps): Update js-yaml from 3.14.1 to 4.0.0.
This commit is contained in:
parent
3d0047d8f9
commit
1a9e1f9e10
33
.pnp.js
generated
33
.pnp.js
generated
@ -4166,7 +4166,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["html-webpack-plugin", "virtual:22157ea722f8d6428f1fcf0a6f7f6c7d6b902d9c785256c60a65fe6cd0db76ebccc7c1457ee047df0ba6909ff018e300c4f4957a60f5b670089810dfc417af9b#npm:4.5.0"],
|
||||
["identity-obj-proxy", "npm:3.0.0"],
|
||||
["jest", "npm:26.6.3"],
|
||||
["js-yaml", "npm:3.14.1"],
|
||||
["js-yaml", "npm:4.0.0"],
|
||||
["path-browserify", "npm:1.0.1"],
|
||||
["process", "npm:0.11.10"],
|
||||
["react", "npm:17.0.1"],
|
||||
@ -4214,7 +4214,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["identity-obj-proxy", "npm:3.0.0"],
|
||||
["jest", "npm:26.6.3"],
|
||||
["jest-serializer-html", "npm:7.0.0"],
|
||||
["js-yaml", "npm:3.14.1"],
|
||||
["js-yaml", "npm:4.0.0"],
|
||||
["less", "npm:3.13.0"],
|
||||
["less-loader", "virtual:03b50f68d1bc1bcd2c564b153fc8a0f3f73d722ae5563251798eadf289b054849d6a1f3602228c617458c9af844d044431bcc00bb48aa96b362ca9055e633014#npm:7.1.0"],
|
||||
["moment", "npm:2.29.1"],
|
||||
@ -4257,7 +4257,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["html-webpack-plugin", "virtual:beb4c218366cad8c4da96fe997fe88a6dbf8be39fc0c58c2a268588a03658c7ba45d103fbf636a724af6c876096f657636ab125613932f8c99e093546f94adb0#npm:4.5.0"],
|
||||
["identity-obj-proxy", "npm:3.0.0"],
|
||||
["jest", "npm:26.6.3"],
|
||||
["js-yaml", "npm:3.14.1"],
|
||||
["js-yaml", "npm:4.0.0"],
|
||||
["react", "npm:17.0.1"],
|
||||
["react-dom", "virtual:22157ea722f8d6428f1fcf0a6f7f6c7d6b902d9c785256c60a65fe6cd0db76ebccc7c1457ee047df0ba6909ff018e300c4f4957a60f5b670089810dfc417af9b#npm:17.0.1"],
|
||||
["react-markdown", "virtual:03b50f68d1bc1bcd2c564b153fc8a0f3f73d722ae5563251798eadf289b054849d6a1f3602228c617458c9af844d044431bcc00bb48aa96b362ca9055e633014#npm:5.0.3"],
|
||||
@ -4299,7 +4299,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["identity-obj-proxy", "npm:3.0.0"],
|
||||
["jest", "npm:26.6.3"],
|
||||
["jest-serializer-html", "npm:7.0.0"],
|
||||
["js-yaml", "npm:3.14.1"],
|
||||
["js-yaml", "npm:4.0.0"],
|
||||
["less", "npm:3.13.0"],
|
||||
["less-loader", "virtual:885b7c7699c189719052a46b1a9ec1286757c4ac6b604c1386cca53720d793c5403bf2f82e8d576afe6e296a65179038188b229308256e2723b9e95f9bb39b0d#npm:7.1.0"],
|
||||
["react", "npm:17.0.1"],
|
||||
@ -4341,7 +4341,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["identity-obj-proxy", "npm:3.0.0"],
|
||||
["imports-loader", "virtual:e2db836d8f34654c61170d202b04baf4b7028aba30358270e340a8e3c7b1ba4f897b5728bebf64b994f49b964b078ad188bdc5c748c985bd669dfba0be813e6e#npm:1.2.0"],
|
||||
["jest", "npm:26.6.3"],
|
||||
["js-yaml", "npm:3.14.1"],
|
||||
["js-yaml", "npm:4.0.0"],
|
||||
["path-browserify", "npm:1.0.1"],
|
||||
["process", "npm:0.11.10"],
|
||||
["react", "npm:17.0.1"],
|
||||
@ -4379,7 +4379,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["clean-webpack-plugin", "virtual:aad21d373d6721af7549b2798c35c4ea25d83c122770abeaa0a4343ba20d55700fd9e3c5fa3289a7e6f591d09e8790df14d525c719ca4729b178b8644cca082a#npm:3.0.0"],
|
||||
["dataloader", "npm:2.0.0"],
|
||||
["jest", "npm:26.6.3"],
|
||||
["js-yaml", "npm:3.14.1"],
|
||||
["js-yaml", "npm:4.0.0"],
|
||||
["json5", "npm:2.1.3"],
|
||||
["uuid", "npm:8.3.2"],
|
||||
["webpack", "virtual:aad21d373d6721af7549b2798c35c4ea25d83c122770abeaa0a4343ba20d55700fd9e3c5fa3289a7e6f591d09e8790df14d525c719ca4729b178b8644cca082a#npm:5.10.1"],
|
||||
@ -4418,7 +4418,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["html-webpack-plugin", "virtual:1e43113c7dc84a5d03308bf7ffaf00574d351ca16282af6c6c0b9576804fb03914bdf2200961292f439926b2e537dce172d7529f79013ce51b9f2d56e9cd836b#npm:4.5.0"],
|
||||
["inquirer", "npm:7.3.3"],
|
||||
["jest", "npm:26.6.3"],
|
||||
["js-yaml", "npm:3.14.1"],
|
||||
["js-yaml", "npm:4.0.0"],
|
||||
["opener", "npm:1.5.2"],
|
||||
["ora", "npm:5.1.0"],
|
||||
["react", "npm:17.0.1"],
|
||||
@ -4573,7 +4573,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["html-webpack-plugin", "virtual:54dfdd95092c538917b1daf717721dd3beca716f0768958f8123e1439693d909b26a74c88b3fb65b402559e626be2accab32554fb8a3874e699047fe18793f5e#npm:4.5.0"],
|
||||
["identity-obj-proxy", "npm:3.0.0"],
|
||||
["jest", "npm:26.6.3"],
|
||||
["js-yaml", "npm:3.14.1"],
|
||||
["js-yaml", "npm:4.0.0"],
|
||||
["less", "npm:3.13.0"],
|
||||
["less-loader", "virtual:54dfdd95092c538917b1daf717721dd3beca716f0768958f8123e1439693d909b26a74c88b3fb65b402559e626be2accab32554fb8a3874e699047fe18793f5e#npm:7.1.0"],
|
||||
["path-browserify", "npm:1.0.1"],
|
||||
@ -4659,7 +4659,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["@lowdefy/nunjucks", "workspace:packages/nunjucks"],
|
||||
["babel-jest", "virtual:caddf51df4928b33a437ca87b8f5ddfb6205ebd6d8231f74d4ee7223f3866e6f815b221aa1e2bd33e98915f701e95bae72a93d2288b49a34a6246bdbc2a4a132#npm:26.6.3"],
|
||||
["jest", "npm:26.6.3"],
|
||||
["js-yaml", "npm:3.14.1"],
|
||||
["js-yaml", "npm:4.0.0"],
|
||||
["mingo", "npm:3.1.0"],
|
||||
["uuid", "npm:8.3.2"]
|
||||
],
|
||||
@ -7866,6 +7866,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["sprintf-js", "npm:1.0.3"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}],
|
||||
["npm:2.0.1", {
|
||||
"packageLocation": "./.yarn/cache/argparse-npm-2.0.1-faff7999e6-160b7a25d2.zip/node_modules/argparse/",
|
||||
"packageDependencies": [
|
||||
["argparse", "npm:2.0.1"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["aria-query", [
|
||||
@ -17003,6 +17010,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["esprima", "npm:4.0.1"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}],
|
||||
["npm:4.0.0", {
|
||||
"packageLocation": "./.yarn/cache/js-yaml-npm-4.0.0-3ac8e950bb-ee9b16cdbb.zip/node_modules/js-yaml/",
|
||||
"packageDependencies": [
|
||||
["js-yaml", "npm:4.0.0"],
|
||||
["argparse", "npm:2.0.1"]
|
||||
],
|
||||
"linkType": "HARD",
|
||||
}]
|
||||
]],
|
||||
["jsbn", [
|
||||
|
BIN
.yarn/cache/argparse-npm-2.0.1-faff7999e6-160b7a25d2.zip
vendored
Normal file
BIN
.yarn/cache/argparse-npm-2.0.1-faff7999e6-160b7a25d2.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/js-yaml-npm-4.0.0-3ac8e950bb-ee9b16cdbb.zip
vendored
Normal file
BIN
.yarn/cache/js-yaml-npm-4.0.0-3ac8e950bb-ee9b16cdbb.zip
vendored
Normal file
Binary file not shown.
@ -62,7 +62,7 @@
|
||||
"html-webpack-plugin": "4.5.0",
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"jest": "26.6.3",
|
||||
"js-yaml": "3.14.1",
|
||||
"js-yaml": "4.0.0",
|
||||
"path-browserify": "1.0.1",
|
||||
"process": "0.11.10",
|
||||
"react-syntax-highlight": "15.3.1",
|
||||
|
@ -44,7 +44,7 @@ const Examples = ({ type, Component }) => {
|
||||
<input type="checkbox" checked={showYaml} onChange={() => toggelYaml(!showYaml)} />
|
||||
</div>
|
||||
{(examples || []).map((block) => {
|
||||
const exYaml = YAML.safeDump(block, {
|
||||
const exYaml = YAML.dump(block, {
|
||||
// sortKeys: true,
|
||||
noRefs: true,
|
||||
});
|
||||
|
@ -75,7 +75,7 @@
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"jest": "26.6.3",
|
||||
"jest-serializer-html": "7.0.0",
|
||||
"js-yaml": "3.14.1",
|
||||
"js-yaml": "4.0.0",
|
||||
"less": "3.13.0",
|
||||
"less-loader": "7.1.0",
|
||||
"react-markdown": "5.0.3",
|
||||
|
@ -38,7 +38,7 @@ const Examples = ({ type, Component }) => {
|
||||
<input type="checkbox" checked={showYaml} onChange={() => toggelYaml(!showYaml)} />
|
||||
</div>
|
||||
{(examples || []).map((block) => {
|
||||
const exYaml = YAML.safeDump(block, {
|
||||
const exYaml = YAML.dump(block, {
|
||||
// sortKeys: true,
|
||||
noRefs: true,
|
||||
});
|
||||
|
@ -60,7 +60,7 @@
|
||||
"html-webpack-plugin": "4.5.0",
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"jest": "26.6.3",
|
||||
"js-yaml": "3.14.1",
|
||||
"js-yaml": "4.0.0",
|
||||
"react-markdown": "5.0.3",
|
||||
"react-syntax-highlighter": "15.4.3",
|
||||
"style-loader": "2.0.0",
|
||||
|
@ -38,7 +38,7 @@ const Examples = ({ type, Component }) => {
|
||||
<input type="checkbox" checked={showYaml} onChange={() => toggelYaml(!showYaml)} />
|
||||
</div>
|
||||
{(examples || []).map((block) => {
|
||||
const exYaml = YAML.safeDump(block, {
|
||||
const exYaml = YAML.dump(block, {
|
||||
// sortKeys: true,
|
||||
noRefs: true,
|
||||
});
|
||||
|
@ -65,7 +65,7 @@
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"jest": "26.6.3",
|
||||
"jest-serializer-html": "7.0.0",
|
||||
"js-yaml": "3.14.1",
|
||||
"js-yaml": "4.0.0",
|
||||
"less": "3.13.0",
|
||||
"less-loader": "7.1.0",
|
||||
"react-markdown": "5.0.3",
|
||||
|
@ -38,7 +38,7 @@ const Examples = ({ type, Component }) => {
|
||||
<input type="checkbox" checked={showYaml} onChange={() => toggelYaml(!showYaml)} />
|
||||
</div>
|
||||
{(examples || []).map((block) => {
|
||||
const exYaml = YAML.safeDump(block, {
|
||||
const exYaml = YAML.dump(block, {
|
||||
// sortKeys: true,
|
||||
noRefs: true,
|
||||
});
|
||||
|
@ -64,7 +64,7 @@
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"imports-loader": "1.2.0",
|
||||
"jest": "26.6.3",
|
||||
"js-yaml": "3.14.1",
|
||||
"js-yaml": "4.0.0",
|
||||
"path-browserify": "1.0.1",
|
||||
"process": "0.11.10",
|
||||
"style-loader": "2.0.0",
|
||||
|
@ -45,7 +45,7 @@
|
||||
"ajv": "6.12.6",
|
||||
"axios": "0.21.0",
|
||||
"dataloader": "2.0.0",
|
||||
"js-yaml": "3.14.1",
|
||||
"js-yaml": "4.0.0",
|
||||
"json5": "2.1.3",
|
||||
"uuid": "8.3.2"
|
||||
},
|
||||
|
@ -71,7 +71,7 @@ function parseNunjucks(fileContent, vars, path) {
|
||||
const templated = template(vars);
|
||||
const subExt = getFileSubExtension(path);
|
||||
if (subExt === 'yaml' || subExt === 'yml') {
|
||||
return YAML.safeLoad(templated);
|
||||
return YAML.load(templated);
|
||||
}
|
||||
if (subExt === 'json') {
|
||||
return JSON5.parse(templated);
|
||||
|
@ -31,7 +31,7 @@ async function getYamlFile(filePath) {
|
||||
const file = await readFile(filePath);
|
||||
return {
|
||||
filePath,
|
||||
content: YAML.safeLoad(file),
|
||||
content: YAML.load(file),
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@
|
||||
"express": "4.17.1",
|
||||
"graphql": "15.4.0",
|
||||
"inquirer": "7.3.3",
|
||||
"js-yaml": "3.14.1",
|
||||
"js-yaml": "4.0.0",
|
||||
"opener": "1.5.2",
|
||||
"ora": "5.1.0",
|
||||
"reload": "3.1.1",
|
||||
|
@ -29,7 +29,7 @@ async function getConfig(context) {
|
||||
}
|
||||
let lowdefy;
|
||||
try {
|
||||
lowdefy = YAML.safeLoad(lowdefyYaml);
|
||||
lowdefy = YAML.load(lowdefyYaml);
|
||||
} catch (error) {
|
||||
throw new Error(`Could not parse "lowdefy.yaml" file. Received error ${error.message}.`);
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ const dumpYaml = (data) => {
|
||||
if (!data) {
|
||||
return '';
|
||||
}
|
||||
return YAML.safeDump(data, {
|
||||
return YAML.dump(data, {
|
||||
// sortKeys: true,
|
||||
noRefs: true,
|
||||
});
|
||||
|
@ -58,7 +58,7 @@
|
||||
"html-webpack-plugin": "4.5.0",
|
||||
"identity-obj-proxy": "3.0.0",
|
||||
"jest": "26.6.3",
|
||||
"js-yaml": "3.14.1",
|
||||
"js-yaml": "4.0.0",
|
||||
"less": "3.13.0",
|
||||
"less-loader": "7.1.0",
|
||||
"path-browserify": "1.0.1",
|
||||
|
@ -40,7 +40,7 @@
|
||||
"dependencies": {
|
||||
"@lowdefy/helpers": "3.1.1",
|
||||
"@lowdefy/nunjucks": "3.1.1",
|
||||
"js-yaml": "3.14.1",
|
||||
"js-yaml": "4.0.0",
|
||||
"mingo": "3.1.0",
|
||||
"uuid": "8.3.2"
|
||||
},
|
||||
|
@ -20,12 +20,12 @@ import runClass from '../runClass';
|
||||
|
||||
function parse(input) {
|
||||
if (input === 'undefined') return undefined;
|
||||
const loaded = YAML.safeLoad(input);
|
||||
const loaded = YAML.load(input);
|
||||
return serializer.deserialize(loaded);
|
||||
}
|
||||
|
||||
function stringify(input, options) {
|
||||
return YAML.safeDump(serializer.serialize(input, { isoStringDates: true }), {
|
||||
return YAML.dump(serializer.serialize(input, { isoStringDates: true }), {
|
||||
sortKeys: true,
|
||||
...options,
|
||||
});
|
||||
|
@ -135,10 +135,8 @@ test('_yaml.stringify undefined in object', () => {
|
||||
});
|
||||
|
||||
test('_yaml.stringify undefined', () => {
|
||||
expect(() =>
|
||||
yaml({ params: [undefined], location: 'locationId', methodName: 'stringify' })
|
||||
).toThrowErrorMatchingInlineSnapshot(
|
||||
`"Operator Error: _yaml.stringify - unacceptable kind of an object to dump [object Undefined] Received: {\\"_yaml.stringify\\":[null]} at locationId."`
|
||||
expect(yaml({ params: [undefined], location: 'locationId', methodName: 'stringify' })).toEqual(
|
||||
''
|
||||
);
|
||||
});
|
||||
|
||||
|
38
yarn.lock
38
yarn.lock
@ -2781,7 +2781,7 @@ __metadata:
|
||||
html-webpack-plugin: 4.5.0
|
||||
identity-obj-proxy: 3.0.0
|
||||
jest: 26.6.3
|
||||
js-yaml: 3.14.1
|
||||
js-yaml: 4.0.0
|
||||
path-browserify: 1.0.1
|
||||
process: 0.11.10
|
||||
react: 17.0.1
|
||||
@ -2827,7 +2827,7 @@ __metadata:
|
||||
identity-obj-proxy: 3.0.0
|
||||
jest: 26.6.3
|
||||
jest-serializer-html: 7.0.0
|
||||
js-yaml: 3.14.1
|
||||
js-yaml: 4.0.0
|
||||
less: 3.13.0
|
||||
less-loader: 7.1.0
|
||||
moment: 2.29.1
|
||||
@ -2868,7 +2868,7 @@ __metadata:
|
||||
html-webpack-plugin: 4.5.0
|
||||
identity-obj-proxy: 3.0.0
|
||||
jest: 26.6.3
|
||||
js-yaml: 3.14.1
|
||||
js-yaml: 4.0.0
|
||||
react: 17.0.1
|
||||
react-dom: 17.0.1
|
||||
react-markdown: 5.0.3
|
||||
@ -2908,7 +2908,7 @@ __metadata:
|
||||
identity-obj-proxy: 3.0.0
|
||||
jest: 26.6.3
|
||||
jest-serializer-html: 7.0.0
|
||||
js-yaml: 3.14.1
|
||||
js-yaml: 4.0.0
|
||||
less: 3.13.0
|
||||
less-loader: 7.1.0
|
||||
react: 17.0.1
|
||||
@ -2948,7 +2948,7 @@ __metadata:
|
||||
identity-obj-proxy: 3.0.0
|
||||
imports-loader: 1.2.0
|
||||
jest: 26.6.3
|
||||
js-yaml: 3.14.1
|
||||
js-yaml: 4.0.0
|
||||
path-browserify: 1.0.1
|
||||
process: 0.11.10
|
||||
react: 17.0.1
|
||||
@ -2984,7 +2984,7 @@ __metadata:
|
||||
clean-webpack-plugin: 3.0.0
|
||||
dataloader: 2.0.0
|
||||
jest: 26.6.3
|
||||
js-yaml: 3.14.1
|
||||
js-yaml: 4.0.0
|
||||
json5: 2.1.3
|
||||
uuid: 8.3.2
|
||||
webpack: 5.10.1
|
||||
@ -3021,7 +3021,7 @@ __metadata:
|
||||
html-webpack-plugin: 4.5.0
|
||||
inquirer: 7.3.3
|
||||
jest: 26.6.3
|
||||
js-yaml: 3.14.1
|
||||
js-yaml: 4.0.0
|
||||
opener: 1.5.2
|
||||
ora: 5.1.0
|
||||
react: 17.0.1
|
||||
@ -3164,7 +3164,7 @@ __metadata:
|
||||
html-webpack-plugin: 4.5.0
|
||||
identity-obj-proxy: 3.0.0
|
||||
jest: 26.6.3
|
||||
js-yaml: 3.14.1
|
||||
js-yaml: 4.0.0
|
||||
less: 3.13.0
|
||||
less-loader: 7.1.0
|
||||
path-browserify: 1.0.1
|
||||
@ -3242,7 +3242,7 @@ __metadata:
|
||||
"@lowdefy/nunjucks": 3.1.1
|
||||
babel-jest: 26.6.3
|
||||
jest: 26.6.3
|
||||
js-yaml: 3.14.1
|
||||
js-yaml: 4.0.0
|
||||
mingo: 3.1.0
|
||||
uuid: 8.3.2
|
||||
languageName: unknown
|
||||
@ -5544,6 +5544,13 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"argparse@npm:^2.0.1":
|
||||
version: 2.0.1
|
||||
resolution: "argparse@npm:2.0.1"
|
||||
checksum: 160b7a25d2a7097fd5fdf25eb8a99e037340078f70e6c7cfdef305837ed14d54570b2b13261bcae26c8cd44ad6e9a7136a0110d815ac65a7891c69c7bf2f4afd
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"aria-query@npm:^4.2.2":
|
||||
version: 4.2.2
|
||||
resolution: "aria-query@npm:4.2.2"
|
||||
@ -12555,7 +12562,18 @@ fsevents@~2.1.2:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"js-yaml@npm:3.14.1, js-yaml@npm:^3.10.0, js-yaml@npm:^3.13.1, js-yaml@npm:^3.7.0":
|
||||
"js-yaml@npm:4.0.0":
|
||||
version: 4.0.0
|
||||
resolution: "js-yaml@npm:4.0.0"
|
||||
dependencies:
|
||||
argparse: ^2.0.1
|
||||
bin:
|
||||
js-yaml: bin/js-yaml.js
|
||||
checksum: ee9b16cdbba690ec70f46d61737b28b35e26e6d51606c466de7fa876d3517de0cfdffd2e1ef21263d5ca3b32659d2e4c65255f50d6e236f022305bce72242d46
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"js-yaml@npm:^3.10.0, js-yaml@npm:^3.13.1, js-yaml@npm:^3.7.0":
|
||||
version: 3.14.1
|
||||
resolution: "js-yaml@npm:3.14.1"
|
||||
dependencies:
|
||||
|
Loading…
Reference in New Issue
Block a user