mm_machine 3.3.9 → 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.
- package/lib/auto_require.js +0 -3
- package/package.json +1 -1
package/lib/auto_require.js
CHANGED
|
@@ -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
|
+
"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": {
|