@midwayjs/faas 3.11.15 → 3.12.1
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/starter.js +2 -9
- package/package.json +5 -5
package/dist/starter.js
CHANGED
|
@@ -3,14 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AbstractBootstrapStarter = void 0;
|
|
4
4
|
const core_1 = require("@midwayjs/core");
|
|
5
5
|
const path_1 = require("path");
|
|
6
|
-
|
|
7
|
-
const TS_MODE_PROCESS_FLAG = process.env.MIDWAY_TS_MODE;
|
|
8
|
-
if ('false' === TS_MODE_PROCESS_FLAG) {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
// eslint-disable-next-line node/no-deprecated-api
|
|
12
|
-
return TS_MODE_PROCESS_FLAG === 'true' || !!require.extensions['.ts'];
|
|
13
|
-
}
|
|
6
|
+
const core_2 = require("@midwayjs/core");
|
|
14
7
|
class AbstractBootstrapStarter {
|
|
15
8
|
constructor(options = {}) {
|
|
16
9
|
this.options = options;
|
|
@@ -25,7 +18,7 @@ class AbstractBootstrapStarter {
|
|
|
25
18
|
if (this.options.baseDir) {
|
|
26
19
|
return this.options.baseDir;
|
|
27
20
|
}
|
|
28
|
-
if (isTypeScriptEnvironment()) {
|
|
21
|
+
if ((0, core_2.isTypeScriptEnvironment)()) {
|
|
29
22
|
return (0, path_1.join)(this.options.appDir, 'src');
|
|
30
23
|
}
|
|
31
24
|
else {
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/faas",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.1",
|
|
4
4
|
"main": "dist/index",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@midwayjs/core": "^3.
|
|
7
|
+
"@midwayjs/core": "^3.12.1",
|
|
8
8
|
"@midwayjs/faas-typings": "^3.10.13",
|
|
9
9
|
"@midwayjs/logger": "^2.15.0",
|
|
10
10
|
"@midwayjs/serverless-http-parser": "^3.10.14",
|
|
11
11
|
"@midwayjs/simple-lock": "^1.1.4"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@midwayjs/mock": "^3.
|
|
15
|
-
"@midwayjs/serverless-fc-starter": "^3.
|
|
14
|
+
"@midwayjs/mock": "^3.12.1",
|
|
15
|
+
"@midwayjs/serverless-fc-starter": "^3.12.1",
|
|
16
16
|
"@midwayjs/serverless-scf-starter": "^3.10.14",
|
|
17
17
|
"mm": "3.3.0"
|
|
18
18
|
},
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"url": "git@github.com:midwayjs/midway.git"
|
|
46
46
|
},
|
|
47
47
|
"license": "MIT",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "48413b87b12354cb8207de6aa58e0a4ca22ea000"
|
|
49
49
|
}
|