fix: yaml.safeLoad -> yaml.load in js-yaml@4
This commit is contained in:
parent
7ee5603112
commit
91d73783e8
|
@ -20,7 +20,7 @@ hexo.extend.helper.register('export_config', function () {
|
||||||
file = languageDir + '/' + (file ? file : 'en.yml');
|
file = languageDir + '/' + (file ? file : 'en.yml');
|
||||||
let languageContent = fs.readFileSync(file, 'utf8');
|
let languageContent = fs.readFileSync(file, 'utf8');
|
||||||
try {
|
try {
|
||||||
languageContent = yaml.safeLoad(languageContent);
|
languageContent = yaml.load(languageContent);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue