diff --git a/packages/plugins/ui-theme/tools/verdaccio.js b/packages/plugins/ui-theme/tools/verdaccio.js index 19090f339..1c2bcfe3c 100644 --- a/packages/plugins/ui-theme/tools/verdaccio.js +++ b/packages/plugins/ui-theme/tools/verdaccio.js @@ -8,7 +8,7 @@ const storageLocation = path.join(__dirname, '../partials/storage'); const pluginsLocation = path.join(__dirname, '../partials/plugins'); const configJsonFormat = Object.assign( {}, - yaml.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')), + yaml.load(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')), { storage: storageLocation, plugins: pluginsLocation, diff --git a/packages/plugins/ui-theme/tools/webpack.dev.config.babel.js b/packages/plugins/ui-theme/tools/webpack.dev.config.babel.js index fab47a8b0..4ffe15e17 100644 --- a/packages/plugins/ui-theme/tools/webpack.dev.config.babel.js +++ b/packages/plugins/ui-theme/tools/webpack.dev.config.babel.js @@ -9,7 +9,7 @@ import env from '../config/env'; import getPackageJson from './getPackageJson'; import baseConfig from './webpack.config'; -const configJsonFormat = yaml.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')); +const configJsonFormat = yaml.load(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8')); export default { ...baseConfig, mode: 'development', diff --git a/website/docs/programmatically.md b/website/docs/programmatically.md index dcd813519..8dea98f19 100644 --- a/website/docs/programmatically.md +++ b/website/docs/programmatically.md @@ -75,7 +75,7 @@ const verdaccio = require('verdaccio').default; const YAML = require('js-yaml'); const getConfig = () => { - return YAML.safeLoad(fs.readFileSync(path.join(__dirname, 'config.yaml'), 'utf8')); + return YAML.load(fs.readFileSync(path.join(__dirname, 'config.yaml'), 'utf8')); }; const cache = path.join(__dirname, 'cache'); diff --git a/website/versioned_docs/version-5.x/programmatically.md b/website/versioned_docs/version-5.x/programmatically.md index dcd813519..8dea98f19 100644 --- a/website/versioned_docs/version-5.x/programmatically.md +++ b/website/versioned_docs/version-5.x/programmatically.md @@ -75,7 +75,7 @@ const verdaccio = require('verdaccio').default; const YAML = require('js-yaml'); const getConfig = () => { - return YAML.safeLoad(fs.readFileSync(path.join(__dirname, 'config.yaml'), 'utf8')); + return YAML.load(fs.readFileSync(path.join(__dirname, 'config.yaml'), 'utf8')); }; const cache = path.join(__dirname, 'cache');