@midwayjs/web 3.10.13 → 3.10.16
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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/utils.js +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export { MidwayWebFramework as Framework } from './framework/web';
|
|
|
3
3
|
export { createEggApplication, createEggAgent, createAppWorkerLoader, createAgentWorkerLoader, } from './base';
|
|
4
4
|
export { Application, Agent } from './application';
|
|
5
5
|
export { EggConfiguration as Configuration } from './configuration';
|
|
6
|
+
export * from './decorator';
|
|
6
7
|
export declare function startCluster(serverConfig: any, callback?: any): any;
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ Object.defineProperty(exports, "Application", { enumerable: true, get: function
|
|
|
30
30
|
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return application_1.Agent; } });
|
|
31
31
|
var configuration_1 = require("./configuration");
|
|
32
32
|
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.EggConfiguration; } });
|
|
33
|
+
__exportStar(require("./decorator"), exports);
|
|
33
34
|
function startCluster(serverConfig, callback) {
|
|
34
35
|
if (!serverConfig['require']) {
|
|
35
36
|
serverConfig['require'] = [];
|
package/dist/utils.js
CHANGED
|
@@ -28,13 +28,13 @@ const parseNormalDir = (baseDir, isTypescript = true) => {
|
|
|
28
28
|
const isTypeScriptEnv = isTypeScriptEnvironment();
|
|
29
29
|
if (isTypeScriptEnv) {
|
|
30
30
|
return {
|
|
31
|
-
baseDir: (0, path_1.join)(baseDir, 'src'),
|
|
31
|
+
baseDir: (0, path_1.join)(baseDir, process.env.MIDWAY_SOURCE_DIR || 'src'),
|
|
32
32
|
appDir: baseDir,
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
36
|
return {
|
|
37
|
-
baseDir: (0, path_1.join)(baseDir, 'dist'),
|
|
37
|
+
baseDir: (0, path_1.join)(baseDir, process.env.MIDWAY_SOURCE_DIR || 'dist'),
|
|
38
38
|
appDir: baseDir,
|
|
39
39
|
};
|
|
40
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/web",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.16",
|
|
4
4
|
"description": "Midway Web Framework for Egg.js",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@midwayjs/logger": "^2.15.0",
|
|
32
|
-
"@midwayjs/mock": "^3.10.
|
|
32
|
+
"@midwayjs/mock": "^3.10.15",
|
|
33
33
|
"dayjs": "1.11.7",
|
|
34
34
|
"egg-logger": "2.9.1",
|
|
35
35
|
"egg-mock": "4.2.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@eggjs/router": "^2.0.0",
|
|
48
|
-
"@midwayjs/core": "^3.10.
|
|
48
|
+
"@midwayjs/core": "^3.10.15",
|
|
49
49
|
"egg": "^2.28.0",
|
|
50
50
|
"egg-cluster": "^1.27.1",
|
|
51
51
|
"find-up": "5.0.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=12"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "37bfe5eecf2500a798c0bebfcf59c540ce9479e1"
|
|
63
63
|
}
|