fix(deps): update dependency js-yaml to v4 (#4797)

This commit is contained in:
renovate[bot] 2021-01-04 17:44:36 +02:00 committed by GitHub
parent b8df67b01c
commit bda604b389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 25 additions and 6 deletions

View File

@ -19,9 +19,9 @@ async function copyBackendFiles(backend) {
async function updateConfig(configModifier) { async function updateConfig(configModifier) {
const configFile = path.join(devTestDirectory, 'config.yml'); const configFile = path.join(devTestDirectory, 'config.yml');
const configContent = await fs.readFile(configFile); const configContent = await fs.readFile(configFile);
const config = yaml.safeLoad(configContent); const config = yaml.load(configContent);
await configModifier(config); await configModifier(config);
await fs.writeFileSync(configFile, yaml.safeDump(config)); await fs.writeFileSync(configFile, yaml.dump(config));
} }
async function switchVersion(version) { async function switchVersion(version) {

View File

@ -140,7 +140,7 @@
"jest": "^26.1.0", "jest": "^26.1.0",
"jest-cli": "^26.1.0", "jest-cli": "^26.1.0",
"jest-emotion": "^10.0.32", "jest-emotion": "^10.0.32",
"js-yaml": "^3.13.1", "js-yaml": "^4.0.0",
"mockserver-client": "^5.8.0", "mockserver-client": "^5.8.0",
"mockserver-node": "^5.8.0", "mockserver-node": "^5.8.0",
"ncp": "^2.0.0", "ncp": "^2.0.0",

View File

@ -9,7 +9,7 @@ const outputPath = '../data/languages.json';
async function fetchData() { async function fetchData() {
const filePath = path.resolve(__dirname, rawDataPath); const filePath = path.resolve(__dirname, rawDataPath);
const fileContent = await fs.readFile(filePath); const fileContent = await fs.readFile(filePath);
return yaml.safeLoad(fileContent); return yaml.load(fileContent);
} }
function outputData(data) { function outputData(data) {

View File

@ -2,7 +2,7 @@ const pkg = require('./package.json');
const fs = require('fs'); const fs = require('fs');
const yaml = require('js-yaml'); const yaml = require('js-yaml');
const staticConfig = yaml.safeLoad(fs.readFileSync('./site.yml', 'utf8')); const staticConfig = yaml.load(fs.readFileSync('./site.yml', 'utf8'));
module.exports = { module.exports = {
siteMetadata: { siteMetadata: {

View File

@ -31,7 +31,7 @@
"gatsby-transformer-json": "2.8.0", "gatsby-transformer-json": "2.8.0",
"gatsby-transformer-remark": "2.13.1", "gatsby-transformer-remark": "2.13.1",
"gatsby-transformer-yaml": "2.8.0", "gatsby-transformer-yaml": "2.8.0",
"js-yaml": "^3.13.1", "js-yaml": "^4.0.0",
"lodash": "^4.17.15", "lodash": "^4.17.15",
"moment": "^2.24.0", "moment": "^2.24.0",
"netlify-cms-app": "^2.11.31", "netlify-cms-app": "^2.11.31",

View File

@ -8190,6 +8190,13 @@ js-yaml@^3.11.0, js-yaml@^3.13.1, js-yaml@^3.14.0, js-yaml@~3.14.1:
argparse "^1.0.7" argparse "^1.0.7"
esprima "^4.0.0" esprima "^4.0.0"
js-yaml@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.0.0.tgz#f426bc0ff4b4051926cd588c71113183409a121f"
integrity sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==
dependencies:
argparse "^2.0.1"
jsesc@^2.5.1: jsesc@^2.5.1:
version "2.5.2" version "2.5.2"
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4"

View File

@ -4254,6 +4254,11 @@ argparse@^1.0.7:
dependencies: dependencies:
sprintf-js "~1.0.2" sprintf-js "~1.0.2"
argparse@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
aria-query@^4.2.2: aria-query@^4.2.2:
version "4.2.2" version "4.2.2"
resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b" resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b"
@ -11177,6 +11182,13 @@ js-yaml@^3.11.0, js-yaml@^3.13.1:
argparse "^1.0.7" argparse "^1.0.7"
esprima "^4.0.0" esprima "^4.0.0"
js-yaml@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.0.0.tgz#f426bc0ff4b4051926cd588c71113183409a121f"
integrity sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==
dependencies:
argparse "^2.0.1"
js-yaml@~3.7.0: js-yaml@~3.7.0:
version "3.7.0" version "3.7.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.7.0.tgz#5c967ddd837a9bfdca5f2de84253abe8a1c03b80"