Skip to content

Commit 5d46581

Browse files
Update deps
1 parent e6de6f1 commit 5d46581

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.eslintrc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const config = require("@next-theme/eslint-config");
2+
3+
module.exports = config;

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const yaml = require('js-yaml');
3+
const { parse } = require('yaml');
44
const fs = require('fs');
55
const path = require('path');
66
const { deepMerge } = require('hexo-util');
@@ -20,7 +20,7 @@ class Util {
2020
}
2121

2222
defaultConfigFile(key, file) {
23-
const defaultConfig = file ? yaml.load(this.getFileContent(file)) : {};
23+
const defaultConfig = file ? parse(this.getFileContent(file)) : {};
2424
this.hexo.config[key] = deepMerge(defaultConfig[key], deepMerge(this.hexo.theme.config[key] || {}, this.hexo.config[key] || {}));
2525
return this.hexo.config[key];
2626
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
"homepage": "https://github.com/next-theme/utils#readme",
2020
"dependencies": {
2121
"hexo-util": "4.0.0",
22-
"js-yaml": "4.1.0"
22+
"yaml": "2.8.2"
2323
},
2424
"devDependencies": {
25-
"@next-theme/eslint-config": "0.0.3",
26-
"eslint": "8.27.0"
25+
"@next-theme/eslint-config": "0.0.5",
26+
"eslint": "9.39.2"
2727
}
2828
}

0 commit comments

Comments
 (0)