فهرست منبع

chore: update js-yaml

Gerald 3 سال پیش
والد
کامیت
de6957c0b1
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      scripts/manifest-helper.js
  2. 1 1
      scripts/transifex.js

+ 1 - 1
scripts/manifest-helper.js

@@ -4,7 +4,7 @@ const { getVersion, isBeta } = require('./version-helper');
 
 async function readManifest() {
   const input = await fs.readFile('src/manifest.yml', 'utf8');
-  const data = yaml.safeLoad(input);
+  const data = yaml.load(input);
   return data;
 }
 

+ 1 - 1
scripts/transifex.js

@@ -111,7 +111,7 @@ async function loadRemote(lang) {
 const loadData = memoize(async function loadData(lang) {
   const remote = await loadRemote(lang);
   const filePath = `src/_locales/${lang}/messages.yml`;
-  const local = yaml.safeLoad(await fs.readFile(filePath, 'utf8'));
+  const local = yaml.load(await fs.readFile(filePath, 'utf8'));
   return { local, remote, filePath };
 });