mm_config 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -185,6 +185,14 @@ Config.prototype.getAsyncProxy = function () {
|
|
|
185
185
|
});
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
+
/**
|
|
189
|
+
* 获取所有配置项
|
|
190
|
+
* @returns {object} 所有配置项
|
|
191
|
+
*/
|
|
192
|
+
Config.prototype.all = function () {
|
|
193
|
+
return this.options;
|
|
194
|
+
};
|
|
195
|
+
|
|
188
196
|
/**
|
|
189
197
|
* 获取配置值
|
|
190
198
|
* @param {string} key - 配置键
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_config",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "Super Meimei Configuration Synchronizer - Automatically sync configuration changes to JSON files",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"eslint": "^10.8.1",
|
|
47
|
-
"eslint-plugin-jsdoc": "^64.1
|
|
47
|
+
"eslint-plugin-jsdoc": "^64.2.1",
|
|
48
48
|
"mm_eslint": "^1.7.6"
|
|
49
49
|
}
|
|
50
50
|
}
|