mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-05 01:11:19 +02:00
Issue: DataFileHelper::process: Function yaml.safeLoad is removed in js-yaml 4. #717
This commit is contained in:
@@ -56,7 +56,7 @@ export class DataFileHelper {
|
||||
const dataFile = await DataFileHelper.get(file);
|
||||
|
||||
if (fileType === 'yaml') {
|
||||
return yaml.safeLoad(dataFile || '');
|
||||
return yaml.load(dataFile || '');
|
||||
} else {
|
||||
return dataFile ? JSON.parse(dataFile) : undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user