mm_statics 1.9.6 → 1.9.8

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +3 -6
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -313,7 +313,7 @@ node example/index.js
313
313
  - **@vue/compiler-sfc**: Vue单文件组件解析器
314
314
  - **mm_es6_to_amd**: ES6到AMD转换器
315
315
  - **mm_cache**: 缓存模块
316
- - **mm_corejs**: 核心管理基类
316
+ - **mm_admin**: 核心管理基类
317
317
  - **mm_helper**: 静态处理器依赖的字符串/路径原型扩展
318
318
 
319
319
  ## 许可证
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  const Static = require('./lib/static');
2
2
  const StaticHandle = require('./lib/static_handle');
3
3
  const Manager = require('./lib/manager');
4
- const Admin = require('mm_corejs').Admin;
4
+ const { reg } = require('mm_admin');
5
5
 
6
- const admin = new Admin();
6
+ const admin = reg('mm_statics');
7
7
  admin.setClass(Manager);
8
8
 
9
9
  module.exports = {
@@ -30,9 +30,6 @@ module.exports = {
30
30
  * @returns {Object} 静态文件管理器实例
31
31
  */
32
32
  staticAdmin(scope, config) {
33
- if (!scope) {
34
- scope = 'os';
35
- }
36
- return admin.get(scope, config);
33
+ return admin.get(scope || 'os', config);
37
34
  }
38
35
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_statics",
3
- "version": "1.9.6",
3
+ "version": "1.9.8",
4
4
  "description": "这是超级美眉statics函数模块,用于web服务端statics缓存",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -27,8 +27,8 @@
27
27
  "run",
28
28
  "exec"
29
29
  ],
30
- "layer": "infra",
31
- "group": "web_infra",
30
+ "layer": "interface",
31
+ "group": "presentation",
32
32
  "author": "邱文武",
33
33
  "license": "ISC",
34
34
  "bugs": {
@@ -52,10 +52,10 @@
52
52
  "chokidar": "^5.0.0",
53
53
  "marked": "^18.1.1",
54
54
  "mm_cache": "^1.5.4",
55
- "mm_corejs": "^1.1.5",
55
+ "mm_admin": "^1.1.0",
56
56
  "mm_es6_to_amd": "^1.5.9",
57
57
  "mm_helper": "^1.0.0",
58
- "mm_machine": "^3.6.0",
58
+ "mm_machine": "^6.0.0",
59
59
  "prettier": "^3.9.10"
60
60
  },
61
61
  "devDependencies": {