@modern-js/server-core 2.21.1 → 2.22.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/CHANGELOG.md +9 -0
- package/dist/cjs/loadPlugins.js +3 -1
- package/dist/cjs/plugin.js +24 -8
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/dist/cjs/loadPlugins.js
CHANGED
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
Object.defineProperty(exports, "loadPlugins", {
|
|
6
6
|
enumerable: true,
|
|
7
|
-
get: ()
|
|
7
|
+
get: function() {
|
|
8
|
+
return loadPlugins;
|
|
9
|
+
}
|
|
8
10
|
});
|
|
9
11
|
const _utils = require("@modern-js/utils");
|
|
10
12
|
const _plugin = require("./plugin");
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -10,14 +10,30 @@ function _export(target, all) {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
AppContext: ()
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
AppContext: function() {
|
|
14
|
+
return AppContext;
|
|
15
|
+
},
|
|
16
|
+
setAppContext: function() {
|
|
17
|
+
return setAppContext;
|
|
18
|
+
},
|
|
19
|
+
ConfigContext: function() {
|
|
20
|
+
return ConfigContext;
|
|
21
|
+
},
|
|
22
|
+
useConfigContext: function() {
|
|
23
|
+
return useConfigContext;
|
|
24
|
+
},
|
|
25
|
+
useAppContext: function() {
|
|
26
|
+
return useAppContext;
|
|
27
|
+
},
|
|
28
|
+
createServerManager: function() {
|
|
29
|
+
return createServerManager;
|
|
30
|
+
},
|
|
31
|
+
serverManager: function() {
|
|
32
|
+
return serverManager;
|
|
33
|
+
},
|
|
34
|
+
createPlugin: function() {
|
|
35
|
+
return createPlugin;
|
|
36
|
+
}
|
|
21
37
|
});
|
|
22
38
|
const _plugin = require("@modern-js/plugin");
|
|
23
39
|
const gather = (0, _plugin.createParallelWorkflow)();
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.22.0",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@swc/helpers": "0.5.1",
|
|
36
|
-
"@modern-js/plugin": "2.
|
|
37
|
-
"@modern-js/utils": "2.
|
|
36
|
+
"@modern-js/plugin": "2.22.0",
|
|
37
|
+
"@modern-js/utils": "2.22.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/jest": "^29",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"jest": "^29",
|
|
44
44
|
"ts-jest": "^29.1.0",
|
|
45
45
|
"typescript": "^5",
|
|
46
|
-
"@modern-js/types": "2.
|
|
47
|
-
"@modern-js/babel-preset-app": "2.
|
|
48
|
-
"@scripts/
|
|
49
|
-
"@scripts/
|
|
46
|
+
"@modern-js/types": "2.22.0",
|
|
47
|
+
"@modern-js/babel-preset-app": "2.22.0",
|
|
48
|
+
"@scripts/build": "2.22.0",
|
|
49
|
+
"@scripts/jest-config": "2.22.0"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
52
|
"publishConfig": {
|