Skip to content

Commit 8d9ecd2

Browse files
committed
update: packages
1 parent e2523e5 commit 8d9ecd2

File tree

3 files changed

+270
-420
lines changed

3 files changed

+270
-420
lines changed

lib/Common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Common.getConfigFileCandidates = function (name) {
304304
* @return {Object} config object
305305
*/
306306
Common.parseConfig = function(confObj, filename) {
307-
var yamljs = require('yamljs');
307+
var yamljs = require('js-yaml');
308308
var vm = require('vm');
309309

310310
var isConfigFile = Common.isConfigFile(filename);
@@ -323,7 +323,7 @@ Common.parseConfig = function(confObj, filename) {
323323
});
324324
}
325325
else if (isConfigFile == 'yaml') {
326-
return yamljs.parse(confObj.toString());
326+
return yamljs.load(confObj.toString());
327327
}
328328
else if (isConfigFile == 'js' || isConfigFile == 'mjs') {
329329
var confPath = require.resolve(path.resolve(filename));

0 commit comments

Comments
 (0)