@midwayjs/faas 3.2.2 → 3.3.2
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/framework.d.ts +1 -0
- package/dist/framework.js +10 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -2
- package/package.json +5 -5
- package/dist/util.d.ts +0 -4
- package/dist/util.js +0 -15
package/dist/framework.d.ts
CHANGED
|
@@ -28,4 +28,5 @@ export declare class MidwayFaaSFramework extends BaseFramework<IMidwayFaaSApplic
|
|
|
28
28
|
createLogger(name: string, option?: LoggerOptions): import("@midwayjs/core").ILogger;
|
|
29
29
|
getFrameworkName(): string;
|
|
30
30
|
}
|
|
31
|
+
export declare const createModuleServerlessFramework: (globalOption: Omit<IMidwayBootstrapOptions, 'applicationContext'> & IFaaSConfigurationOptions) => Promise<MidwayFaaSFramework>;
|
|
31
32
|
//# sourceMappingURL=framework.d.ts.map
|
package/dist/framework.js
CHANGED
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MidwayFaaSFramework = void 0;
|
|
12
|
+
exports.createModuleServerlessFramework = exports.MidwayFaaSFramework = void 0;
|
|
13
13
|
const core_1 = require("@midwayjs/core");
|
|
14
14
|
const decorator_1 = require("@midwayjs/decorator");
|
|
15
15
|
const simple_lock_1 = require("@midwayjs/simple-lock");
|
|
@@ -214,4 +214,13 @@ MidwayFaaSFramework = __decorate([
|
|
|
214
214
|
(0, decorator_1.Framework)()
|
|
215
215
|
], MidwayFaaSFramework);
|
|
216
216
|
exports.MidwayFaaSFramework = MidwayFaaSFramework;
|
|
217
|
+
const createModuleServerlessFramework = async (globalOption) => {
|
|
218
|
+
const applicationContext = await (0, core_1.initializeGlobalApplicationContext)({
|
|
219
|
+
...globalOption,
|
|
220
|
+
baseDir: '',
|
|
221
|
+
appDir: '',
|
|
222
|
+
});
|
|
223
|
+
return applicationContext.get(MidwayFaaSFramework);
|
|
224
|
+
};
|
|
225
|
+
exports.createModuleServerlessFramework = createModuleServerlessFramework;
|
|
217
226
|
//# sourceMappingURL=framework.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './interface';
|
|
2
|
-
export { MidwayFaaSFramework as Framework } from './framework';
|
|
2
|
+
export { MidwayFaaSFramework as Framework, createModuleServerlessFramework, } from './framework';
|
|
3
3
|
export { FaaSConfiguration as Configuration } from './configuration';
|
|
4
|
-
export * from './util';
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -14,11 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.Configuration = exports.Framework = void 0;
|
|
17
|
+
exports.Configuration = exports.createModuleServerlessFramework = exports.Framework = void 0;
|
|
18
18
|
__exportStar(require("./interface"), exports);
|
|
19
19
|
var framework_1 = require("./framework");
|
|
20
20
|
Object.defineProperty(exports, "Framework", { enumerable: true, get: function () { return framework_1.MidwayFaaSFramework; } });
|
|
21
|
+
Object.defineProperty(exports, "createModuleServerlessFramework", { enumerable: true, get: function () { return framework_1.createModuleServerlessFramework; } });
|
|
21
22
|
var configuration_1 = require("./configuration");
|
|
22
23
|
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.FaaSConfiguration; } });
|
|
23
|
-
__exportStar(require("./util"), exports);
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/faas",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.2",
|
|
4
4
|
"main": "dist/index",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@midwayjs/core": "^3.
|
|
7
|
+
"@midwayjs/core": "^3.3.2",
|
|
8
8
|
"@midwayjs/faas-typings": "^3.1.6",
|
|
9
9
|
"@midwayjs/logger": "^2.15.0",
|
|
10
10
|
"@midwayjs/simple-lock": "^1.1.4"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@midwayjs/decorator": "^3.1.6",
|
|
14
|
-
"@midwayjs/mock": "^3.
|
|
15
|
-
"@midwayjs/serverless-fc-starter": "^3.
|
|
14
|
+
"@midwayjs/mock": "^3.3.2",
|
|
15
|
+
"@midwayjs/serverless-fc-starter": "^3.3.2",
|
|
16
16
|
"@midwayjs/serverless-scf-starter": "^3.1.6",
|
|
17
17
|
"mm": "3.2.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": "2c7c235421ba904f8943efe31a71f452089d5d53"
|
|
49
49
|
}
|
package/dist/util.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IMidwayBootstrapOptions } from '@midwayjs/core';
|
|
2
|
-
import { Framework, IFaaSConfigurationOptions } from './index';
|
|
3
|
-
export declare const createModuleServerlessFramework: (globalOption: Omit<IMidwayBootstrapOptions, 'applicationContext'> & IFaaSConfigurationOptions) => Promise<Framework>;
|
|
4
|
-
//# sourceMappingURL=util.d.ts.map
|
package/dist/util.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createModuleServerlessFramework = void 0;
|
|
4
|
-
const core_1 = require("@midwayjs/core");
|
|
5
|
-
const index_1 = require("./index");
|
|
6
|
-
const createModuleServerlessFramework = async (globalOption) => {
|
|
7
|
-
const applicationContext = await (0, core_1.initializeGlobalApplicationContext)({
|
|
8
|
-
...globalOption,
|
|
9
|
-
baseDir: '',
|
|
10
|
-
appDir: '',
|
|
11
|
-
});
|
|
12
|
-
return applicationContext.get(index_1.Framework);
|
|
13
|
-
};
|
|
14
|
-
exports.createModuleServerlessFramework = createModuleServerlessFramework;
|
|
15
|
-
//# sourceMappingURL=util.js.map
|