mm_machine 3.3.8 → 3.4.0

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.
@@ -112,9 +112,6 @@ $.require = function (file, func) {
112
112
  if (func && typeof func !== 'function') {
113
113
  throw new TypeError('第二个参数(func)必须是函数');
114
114
  }
115
- if (!file.endsWith('.js')) {
116
- throw new TypeError('$.require 只能用于.js脚本文件');
117
- }
118
115
 
119
116
  let mod = $.mod.load(file, func);
120
117
  if (mod !== null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "3.3.8",
3
+ "version": "3.4.0",
4
4
  "description": "A flexible Node.js plugin mechanism system for dynamic loading, management and execution of modules. Supports hot reload, lifecycle management, and modern JavaScript features.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,14 +33,14 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@prettier/sync": "^0.6.1",
36
- "mm_config": "^2.4.5",
37
- "mm_expand": "^2.4.5",
38
- "mm_hot_reload": "^1.4.2",
36
+ "mm_config": "^2.4.6",
37
+ "mm_expand": "^2.4.6",
38
+ "mm_hot_reload": "^1.4.3",
39
39
  "mm_tpl": "^2.6.5"
40
40
  },
41
41
  "devDependencies": {
42
- "eslint": "^10.7.0",
43
- "eslint-plugin-jsdoc": "^63.2.0",
42
+ "eslint": "^10.8.0",
43
+ "eslint-plugin-jsdoc": "^63.3.2",
44
44
  "mm_eslint": "^1.7.5"
45
45
  }
46
46
  }