@h4ad/serverless-adapter 2.7.0 → 2.8.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/README.md +1 -1
- package/lib/@types/binary-settings.d.ts +3 -0
- package/lib/@types/binary-settings.js +8 -0
- package/lib/@types/headers.d.ts +3 -0
- package/lib/@types/headers.js +8 -0
- package/lib/@types/helpers.d.ts +1 -0
- package/lib/@types/helpers.js +3 -0
- package/lib/@types/huawei/huawei-api-gateway-event.d.ts +4 -0
- package/lib/@types/huawei/huawei-api-gateway-event.js +11 -1
- package/lib/@types/huawei/huawei-api-gateway-event.js.map +1 -1
- package/lib/@types/huawei/huawei-api-gateway-response.d.ts +1 -0
- package/lib/@types/huawei/huawei-api-gateway-response.js +4 -1
- package/lib/@types/huawei/huawei-api-gateway-response.js.map +1 -1
- package/lib/@types/huawei/huawei-context.d.ts +16 -0
- package/lib/@types/huawei/huawei-context.js +33 -0
- package/lib/adapters/aws/alb.adapter.d.ts +1 -0
- package/lib/adapters/aws/alb.adapter.js +7 -2
- package/lib/adapters/aws/alb.adapter.js.map +1 -1
- package/lib/adapters/aws/api-gateway-v1.adapter.d.ts +1 -0
- package/lib/adapters/aws/api-gateway-v1.adapter.js +12 -3
- package/lib/adapters/aws/api-gateway-v1.adapter.js.map +1 -1
- package/lib/adapters/aws/api-gateway-v2.adapter.d.ts +1 -0
- package/lib/adapters/aws/api-gateway-v2.adapter.js +7 -2
- package/lib/adapters/aws/api-gateway-v2.adapter.js.map +1 -1
- package/lib/adapters/aws/dynamodb.adapter.d.ts +1 -0
- package/lib/adapters/aws/dynamodb.adapter.js +7 -2
- package/lib/adapters/aws/dynamodb.adapter.js.map +1 -1
- package/lib/adapters/aws/event-bridge.adapter.d.ts +2 -0
- package/lib/adapters/aws/event-bridge.adapter.js +9 -2
- package/lib/adapters/aws/event-bridge.adapter.js.map +1 -1
- package/lib/adapters/aws/lambda-edge.adapter.d.ts +5 -0
- package/lib/adapters/aws/lambda-edge.adapter.js +29 -9
- package/lib/adapters/aws/lambda-edge.adapter.js.map +1 -1
- package/lib/adapters/aws/sns.adapter.d.ts +1 -0
- package/lib/adapters/aws/sns.adapter.js +7 -2
- package/lib/adapters/aws/sns.adapter.js.map +1 -1
- package/lib/adapters/aws/sqs.adapter.d.ts +1 -0
- package/lib/adapters/aws/sqs.adapter.js +7 -2
- package/lib/adapters/aws/sqs.adapter.js.map +1 -1
- package/lib/adapters/azure/http-trigger-v4.adapter.d.ts +1 -0
- package/lib/adapters/azure/http-trigger-v4.adapter.js +16 -5
- package/lib/adapters/azure/http-trigger-v4.adapter.js.map +1 -1
- package/lib/adapters/dummy/dummy.adapter.js +4 -1
- package/lib/adapters/dummy/dummy.adapter.js.map +1 -1
- package/lib/adapters/huawei/huawei-api-gateway.adapter.d.ts +1 -0
- package/lib/adapters/huawei/huawei-api-gateway.adapter.js +10 -2
- package/lib/adapters/huawei/huawei-api-gateway.adapter.js.map +1 -1
- package/lib/contracts/adapter.contract.d.ts +4 -0
- package/lib/contracts/adapter.contract.js +15 -1
- package/lib/contracts/adapter.contract.js.map +1 -1
- package/lib/contracts/framework.contract.d.ts +1 -0
- package/lib/contracts/framework.contract.js +3 -0
- package/lib/contracts/handler.contract.d.ts +2 -0
- package/lib/contracts/handler.contract.js +10 -1
- package/lib/contracts/handler.contract.js.map +1 -1
- package/lib/contracts/resolver.contract.d.ts +4 -0
- package/lib/contracts/resolver.contract.js +12 -1
- package/lib/contracts/resolver.contract.js.map +1 -1
- package/lib/core/base-handler.js +14 -3
- package/lib/core/base-handler.js.map +1 -1
- package/lib/core/constants.d.ts +1 -0
- package/lib/core/constants.js +3 -1
- package/lib/core/constants.js.map +1 -1
- package/lib/core/current-invoke.d.ts +1 -0
- package/lib/core/current-invoke.js +5 -1
- package/lib/core/current-invoke.js.map +1 -1
- package/lib/core/event-body.js +1 -0
- package/lib/core/headers.js +4 -1
- package/lib/core/headers.js.map +1 -1
- package/lib/core/is-binary.js +14 -5
- package/lib/core/is-binary.js.map +1 -1
- package/lib/core/logger.d.ts +4 -0
- package/lib/core/logger.js +27 -11
- package/lib/core/logger.js.map +1 -1
- package/lib/core/optional.js +1 -0
- package/lib/core/path.js +3 -0
- package/lib/core/path.js.map +1 -1
- package/lib/core/stream.js +8 -3
- package/lib/core/stream.js.map +1 -1
- package/lib/frameworks/deepkit/http-deepkit.framework.d.ts +18 -0
- package/lib/frameworks/deepkit/http-deepkit.framework.d.ts.map +1 -0
- package/lib/frameworks/deepkit/http-deepkit.framework.js +33 -0
- package/lib/frameworks/deepkit/http-deepkit.framework.js.map +1 -0
- package/lib/frameworks/deepkit/index.d.ts +2 -0
- package/lib/frameworks/deepkit/index.d.ts.map +1 -0
- package/lib/frameworks/deepkit/index.js +18 -0
- package/lib/frameworks/deepkit/index.js.map +1 -0
- package/lib/frameworks/express/express.framework.js +1 -0
- package/lib/frameworks/express/express.framework.js.map +1 -1
- package/lib/frameworks/fastify/fastify.framework.js +1 -0
- package/lib/frameworks/fastify/fastify.framework.js.map +1 -1
- package/lib/frameworks/hapi/hapi.framework.js +1 -0
- package/lib/frameworks/hapi/hapi.framework.js.map +1 -1
- package/lib/frameworks/koa/koa.framework.js +1 -0
- package/lib/frameworks/koa/koa.framework.js.map +1 -1
- package/lib/frameworks/lazy/lazy.framework.js +12 -5
- package/lib/frameworks/lazy/lazy.framework.js.map +1 -1
- package/lib/frameworks/trpc/trpc.framework.d.ts +3 -0
- package/lib/frameworks/trpc/trpc.framework.js +27 -12
- package/lib/frameworks/trpc/trpc.framework.js.map +1 -1
- package/lib/handlers/azure/azure.handler.d.ts +1 -0
- package/lib/handlers/azure/azure.handler.js +16 -5
- package/lib/handlers/azure/azure.handler.js.map +1 -1
- package/lib/handlers/default/default.handler.js +16 -3
- package/lib/handlers/default/default.handler.js.map +1 -1
- package/lib/handlers/firebase/http-firebase.handler.js +8 -3
- package/lib/handlers/firebase/http-firebase.handler.js.map +1 -1
- package/lib/handlers/huawei/http-huawei.handler.d.ts +1 -0
- package/lib/handlers/huawei/http-huawei.handler.js +20 -7
- package/lib/handlers/huawei/http-huawei.handler.js.map +1 -1
- package/lib/network/request.d.ts +1 -0
- package/lib/network/request.js +5 -1
- package/lib/network/request.js.map +1 -1
- package/lib/network/response.d.ts +1 -0
- package/lib/network/response.js +13 -3
- package/lib/network/response.js.map +1 -1
- package/lib/resolvers/aws-context/aws-context.resolver.js +14 -8
- package/lib/resolvers/aws-context/aws-context.resolver.js.map +1 -1
- package/lib/resolvers/callback/callback.resolver.d.ts +1 -0
- package/lib/resolvers/callback/callback.resolver.js +18 -9
- package/lib/resolvers/callback/callback.resolver.js.map +1 -1
- package/lib/resolvers/dummy/dummy.resolver.js +2 -1
- package/lib/resolvers/dummy/dummy.resolver.js.map +1 -1
- package/lib/resolvers/promise/promise.resolver.js +16 -10
- package/lib/resolvers/promise/promise.resolver.js.map +1 -1
- package/lib/serverless-adapter.js +14 -1
- package/lib/serverless-adapter.js.map +1 -1
- package/package.json +32 -7
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//#region Imports
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.HttpFirebaseHandler = void 0;
|
|
4
|
+
const { __ΩFrameworkContract } = require('../../contracts');
|
|
5
|
+
function __assignType(fn, args) {
|
|
6
|
+
fn.__type = args;
|
|
7
|
+
return fn;
|
|
8
|
+
}
|
|
5
9
|
const firebase_functions_1 = require("firebase-functions");
|
|
6
10
|
//#endregion
|
|
7
11
|
/**
|
|
@@ -18,10 +22,11 @@ class HttpFirebaseHandler {
|
|
|
18
22
|
* {@inheritDoc}
|
|
19
23
|
*/
|
|
20
24
|
getHandler(app, framework) {
|
|
21
|
-
return firebase_functions_1.https.onRequest((request, response) => {
|
|
25
|
+
return firebase_functions_1.https.onRequest(__assignType((request, response) => {
|
|
22
26
|
return framework.sendRequest(app, request, response);
|
|
23
|
-
});
|
|
27
|
+
}, ['request', 'response', '', 'P!2!!2""/#']));
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
exports.HttpFirebaseHandler = HttpFirebaseHandler;
|
|
31
|
+
HttpFirebaseHandler.__type = ['TApp', 'app', () => __ΩFrameworkContract, 'framework', 'req', 'res', '', 'getHandler', 'b!Pe"!2"e"!o#"2$P!2%!2&P$$`J/\'0(5e!!!!!$P$$`J6\''];
|
|
27
32
|
//# sourceMappingURL=http-firebase.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-firebase.handler.js","sourceRoot":"","sources":["../../../src/handlers/firebase/http-firebase.handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"http-firebase.handler.js","sourceRoot":"","sources":["../../../src/handlers/firebase/http-firebase.handler.ts"],"names":[],"mappings":";;;yCAImD,iBAAiB;;;;;AADpE,2DAA2C;AAG3C,YAAY;AAEZ;;;;;;;GAOG;AACH,MAAa,mBAAmB;IAI9B,wBAAwB;IAExB;;OAEG;IACI,UAAU,CACf,GAAS,EACT,SAAkC;QAElC,OAAO,0BAAK,CAAC,SAAS,cACpB,CAAC,OAAwB,EAAE,QAAwB,EAAE,EAAE;YACrD,OAAO,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;QACvD,CAAC,6CACF,CAAC;IACJ,CAAC;;AAlBH,kDAqBC"}
|
|
@@ -56,4 +56,5 @@ export declare class HttpHuaweiHandler<TApp> implements HandlerContract<TApp, vo
|
|
|
56
56
|
*/
|
|
57
57
|
protected createHttpServer(requestListener: RequestListener): http.Server;
|
|
58
58
|
}
|
|
59
|
+
export declare type __ΩHttpHuaweiHandlerOptions = any[];
|
|
59
60
|
//# sourceMappingURL=http-huawei.handler.d.ts.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//#region Imports
|
|
3
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
3
|
if (k2 === undefined) k2 = k;
|
|
5
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -24,7 +23,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
23
|
return result;
|
|
25
24
|
};
|
|
26
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.HttpHuaweiHandler = exports.DEFAULT_HUAWEI_LISTEN_PORT = void 0;
|
|
26
|
+
exports.HttpHuaweiHandler = exports.__ΩHttpHuaweiHandlerOptions = exports.DEFAULT_HUAWEI_LISTEN_PORT = void 0;
|
|
27
|
+
const { __ΩFrameworkContract } = require('../../contracts');
|
|
28
|
+
const { __ΩAdapterContract } = require('../../contracts');
|
|
29
|
+
const { __ΩResolverContract } = require('../../contracts');
|
|
30
|
+
const { __ΩBinarySettings } = require('../../@types');
|
|
31
|
+
const { __ΩILogger } = require('../../core');
|
|
32
|
+
const { __ΩServerlessHandler } = require('../../contracts');
|
|
33
|
+
function __assignType(fn, args) {
|
|
34
|
+
fn.__type = args;
|
|
35
|
+
return fn;
|
|
36
|
+
}
|
|
37
|
+
//#region Imports
|
|
28
38
|
const http = __importStar(require("http"));
|
|
29
39
|
const core_1 = require("../../core");
|
|
30
40
|
//#endregion
|
|
@@ -37,6 +47,8 @@ const core_1 = require("../../core");
|
|
|
37
47
|
* @public
|
|
38
48
|
*/
|
|
39
49
|
exports.DEFAULT_HUAWEI_LISTEN_PORT = 8000;
|
|
50
|
+
const __ΩHttpHuaweiHandlerOptions = ['port', 'requestListener', '', 'httpServerFactory', 'P\'4!8P!2"!/#4$8M'];
|
|
51
|
+
exports.__ΩHttpHuaweiHandlerOptions = __ΩHttpHuaweiHandlerOptions;
|
|
40
52
|
/**
|
|
41
53
|
* The class that implements a huawei serverless handler with http function that exposes a http server in specific port.
|
|
42
54
|
*
|
|
@@ -62,9 +74,9 @@ class HttpHuaweiHandler {
|
|
|
62
74
|
*/
|
|
63
75
|
getHandler(app, framework, _, __, binarySettings, respondWithErrors, log) {
|
|
64
76
|
var _a, _b;
|
|
65
|
-
const requestListener = (req, res) => {
|
|
77
|
+
const requestListener = __assignType((req, res) => {
|
|
66
78
|
framework.sendRequest(app, req, res);
|
|
67
|
-
};
|
|
79
|
+
}, ['req', 'res', '', 'P"2!"2""/#']);
|
|
68
80
|
const server = (0, core_1.getDefaultIfUndefined)((_a = this.options) === null || _a === void 0 ? void 0 : _a.httpServerFactory, this.createHttpServer.bind(this))(requestListener);
|
|
69
81
|
const port = (0, core_1.getDefaultIfUndefined)((_b = this.options) === null || _b === void 0 ? void 0 : _b.port, exports.DEFAULT_HUAWEI_LISTEN_PORT);
|
|
70
82
|
server.listen(port, () => {
|
|
@@ -73,9 +85,9 @@ class HttpHuaweiHandler {
|
|
|
73
85
|
});
|
|
74
86
|
return () => {
|
|
75
87
|
log.debug('SERVERLESS_ADAPTER:PROXY: Disposing the server');
|
|
76
|
-
return new Promise((resolve, reject) => {
|
|
77
|
-
server.close(err => (err ? reject(err) : resolve()));
|
|
78
|
-
});
|
|
88
|
+
return new Promise(__assignType((resolve, reject) => {
|
|
89
|
+
server.close(__assignType(err => (err ? reject(err) : resolve()), ['err', '', 'P"2!"/"']));
|
|
90
|
+
}, ['resolve', 'reject', '', 'P"2!"2""/#']));
|
|
79
91
|
};
|
|
80
92
|
}
|
|
81
93
|
//#endregion
|
|
@@ -90,4 +102,5 @@ class HttpHuaweiHandler {
|
|
|
90
102
|
}
|
|
91
103
|
}
|
|
92
104
|
exports.HttpHuaweiHandler = HttpHuaweiHandler;
|
|
105
|
+
HttpHuaweiHandler.__type = ['TApp', () => __ΩHttpHuaweiHandlerOptions, 'options', 'constructor', 'app', () => __ΩFrameworkContract, 'framework', () => __ΩAdapterContract, '_', () => __ΩResolverContract, '__', () => __ΩBinarySettings, 'binarySettings', 'respondWithErrors', () => __ΩILogger, 'log', () => __ΩServerlessHandler, 'getHandler', 'requestListener', 'createHttpServer', 'b!Pn"2#8<9"0$Pe"!2%e"!o&"2\'$$$o($F2)$$$$$o*&2+n,2-)2.n/20$`o1"02P!23!04<5e!!$$$$$`6\''];
|
|
93
106
|
//# sourceMappingURL=http-huawei.handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-huawei.handler.js","sourceRoot":"","sources":["../../../src/handlers/huawei/http-huawei.handler.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"http-huawei.handler.js","sourceRoot":"","sources":["../../../src/handlers/huawei/http-huawei.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;yCAWO,iBAAiB;uCAAjB,iBAAiB;wCAAjB,iBAAiB;sCAPO,cAAc;+BAQE,YAAY;yCADpD,iBAAiB;;;;;AAXxB,iBAAiB;AAEjB,2CAA6B;AAU7B,qCAA4D;AAE5D,YAAY;AAEZ;;;;;;;GAOG;AACU,QAAA,0BAA0B,GAAW,IAAI,CAAC;;;AAoBvD;;;;;;;;;GASG;AACH,MAAa,iBAAiB;IAG5B,qBAAqB;IAErB;;OAEG;IACH,YAA+B,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;IAAG,CAAC;IAErE,YAAY;IAEZ,wBAAwB;IAExB;;OAEG;IACI,UAAU,CACf,GAAS,EACT,SAAkC,EAClC,CAAsC,EACtC,EAAkD,EAClD,cAA8B,EAC9B,iBAA0B,EAC1B,GAAY;;QAEZ,MAAM,eAAe,gBAAoB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;YACpD,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QACvC,CAAC,mCAAA,CAAC;QAEF,MAAM,MAAM,GAAG,IAAA,4BAAqB,EAClC,MAAA,IAAI,CAAC,OAAO,0CAAE,iBAAiB,EAC/B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CACjC,CAAC,eAAe,CAAC,CAAC;QAEnB,MAAM,IAAI,GAAG,IAAA,4BAAqB,EAChC,MAAA,IAAI,CAAC,OAAO,0CAAE,IAAI,EAClB,kCAA0B,CAC3B,CAAC;QAEF,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE;YACvB,GAAG,CAAC,KAAK,CAAC,2CAA2C,CAAC,CAAC;YACvD,GAAG,CAAC,KAAK,CACP,mEAAmE,IAAI,EAAE,CAC1E,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE;YACV,GAAG,CAAC,KAAK,CAAC,gDAAgD,CAAC,CAAC;YAE5D,OAAO,IAAI,OAAO,cAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACrC,MAAM,CAAC,KAAK,cAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,0BAAC,CAAC;YACvD,CAAC,2CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;IAED,YAAY;IAEZ,2BAA2B;IAE3B;;;;OAIG;IACO,gBAAgB,CAAC,eAAgC;QACzD,OAAO,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;IAC5C,CAAC;;AAnEH,8CAsEC"}
|
package/lib/network/request.d.ts
CHANGED
package/lib/network/request.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServerlessRequest = void 0;
|
|
3
|
+
exports.ServerlessRequest = exports.__ΩServerlessRequestProps = void 0;
|
|
4
|
+
const { __ΩSingleValueHeaders } = require('../@types');
|
|
4
5
|
// ATTRIBUTION: https://github.com/dougmoscrop/serverless-http
|
|
5
6
|
const http_1 = require("http");
|
|
6
7
|
const core_1 = require("../core");
|
|
7
8
|
const HTTPS_PORT = 443;
|
|
9
|
+
const __ΩServerlessRequestProps = ['method', 'url', () => __ΩSingleValueHeaders, 'headers', 'body', 'remoteAddress', 'P&4!&4"n#4$P!WJ4%8&4&8M'];
|
|
10
|
+
exports.__ΩServerlessRequestProps = __ΩServerlessRequestProps;
|
|
8
11
|
/**
|
|
9
12
|
* The class that represents an {@link http#IncomingMessage} created by the library to represent an actual request to the framework.
|
|
10
13
|
*
|
|
@@ -39,4 +42,5 @@ class ServerlessRequest extends http_1.IncomingMessage {
|
|
|
39
42
|
}
|
|
40
43
|
}
|
|
41
44
|
exports.ServerlessRequest = ServerlessRequest;
|
|
45
|
+
ServerlessRequest.__type = [() => http_1.IncomingMessage, () => __ΩServerlessRequestProps, 'param0', 'constructor', 'ip', 'body', 'P7!Pn"2#"0$&3%8P!WJ3&85'];
|
|
42
46
|
//# sourceMappingURL=request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/network/request.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/network/request.ts"],"names":[],"mappings":";;;0CAGmC,WAAW;AAH9C,8DAA8D;AAC9D,+BAAuC;AAGvC,kCAAgC;AAEhC,MAAM,UAAU,GAAG,GAAG,CAAC;;;AAmCvB;;;;;GAKG;AACH,MAAa,iBAAkB,SAAQ,sBAAe;IACpD,YAAY,EACV,MAAM,EACN,GAAG,EACH,OAAO,EACP,IAAI,EACJ,aAAa,GACU;QACvB,KAAK,CAAC;YACJ,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,KAAK;YACf,aAAa;YACb,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAkB,CAAA;YACpD,GAAG,EAAE,YAAK;YACV,OAAO,EAAE,YAAK;SACR,CAAC,CAAC;QAEV,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;QACtB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACrB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,EAAE,GAAG,aAAa,CAAC;QAExB,IAAI,CAAC,KAAK,GAAG,GAAG,EAAE;YAChB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,CAAC;IACJ,CAAC;;AAjCH,8CAqCC"}
|
|
@@ -44,4 +44,5 @@ export declare class ServerlessResponse extends ServerResponse {
|
|
|
44
44
|
protected callNativeWriteHead(statusCode: number, statusMessage?: string | any | any[], obj?: any | any[]): this;
|
|
45
45
|
}
|
|
46
46
|
export {};
|
|
47
|
+
export declare type __ΩServerlessResponseProps = any[];
|
|
47
48
|
//# sourceMappingURL=response.d.ts.map
|
package/lib/network/response.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServerlessResponse = void 0;
|
|
3
|
+
exports.ServerlessResponse = exports.__ΩServerlessResponseProps = void 0;
|
|
4
|
+
function __assignType(fn, args) {
|
|
5
|
+
fn.__type = args;
|
|
6
|
+
return fn;
|
|
7
|
+
}
|
|
8
|
+
const __ΩRecord = ['K', 'T', 'l\'e#"Rb!b"Pde"!N#!'];
|
|
4
9
|
// ATTRIBUTION: https://github.com/dougmoscrop/serverless-http
|
|
5
10
|
const http_1 = require("http");
|
|
6
11
|
const core_1 = require("../core");
|
|
@@ -17,6 +22,7 @@ function getString(data) {
|
|
|
17
22
|
else
|
|
18
23
|
throw new Error(`response.write() of unexpected type: ${typeof data}`);
|
|
19
24
|
}
|
|
25
|
+
getString.__type = ['data', 'getString', 'PP!&#J2!"/"'];
|
|
20
26
|
function addData(stream, data) {
|
|
21
27
|
if (Buffer.isBuffer(data) ||
|
|
22
28
|
typeof data === 'string' ||
|
|
@@ -25,6 +31,9 @@ function addData(stream, data) {
|
|
|
25
31
|
else
|
|
26
32
|
throw new Error(`response.write() of unexpected type: ${typeof data}`);
|
|
27
33
|
}
|
|
34
|
+
addData.__type = [() => ServerlessResponse, 'stream', 'data', 'addData', 'PP7!2"PW&J2#"/$'];
|
|
35
|
+
const __ΩServerlessResponseProps = ['method', 'P&4!8M'];
|
|
36
|
+
exports.__ΩServerlessResponseProps = __ΩServerlessResponseProps;
|
|
28
37
|
/**
|
|
29
38
|
* The class that represents a response instance used to send to the framework and wait until the framework finishes processing the request.
|
|
30
39
|
* Once it's happens, we use the properties from this response to built the response to the cloud.
|
|
@@ -48,7 +57,7 @@ class ServerlessResponse extends http_1.ServerResponse {
|
|
|
48
57
|
destroy: core_1.NO_OP,
|
|
49
58
|
cork: core_1.NO_OP,
|
|
50
59
|
uncork: core_1.NO_OP,
|
|
51
|
-
write: (data, encoding, cb) => {
|
|
60
|
+
write: __assignType((data, encoding, cb) => {
|
|
52
61
|
if (typeof encoding === 'function') {
|
|
53
62
|
cb = encoding;
|
|
54
63
|
encoding = null;
|
|
@@ -67,7 +76,7 @@ class ServerlessResponse extends http_1.ServerResponse {
|
|
|
67
76
|
}
|
|
68
77
|
if (typeof cb === 'function')
|
|
69
78
|
cb();
|
|
70
|
-
},
|
|
79
|
+
}, ['data', '', 'encoding', 'cb', 'PPW&J2!P&,P$/"J2#8P$/"2$8"/"']),
|
|
71
80
|
};
|
|
72
81
|
this.assignSocket(socket);
|
|
73
82
|
}
|
|
@@ -124,4 +133,5 @@ class ServerlessResponse extends http_1.ServerResponse {
|
|
|
124
133
|
}
|
|
125
134
|
}
|
|
126
135
|
exports.ServerlessResponse = ServerlessResponse;
|
|
136
|
+
ServerlessResponse.__type = [() => http_1.ServerResponse, () => __ΩServerlessResponseProps, 'param0', 'constructor', '_header', () => __ΩRecord, '_headers', '_wroteHeader', () => BODY, () => __ΩRecord, () => HEADERS, 'res', 'from', () => ServerlessResponse, 'body', 'key', 'value', 'setHeader', 'statusCode', 'statusMessage', 'obj', 'writeHead', 'callNativeWriteHead', 'P7!Pn"2#"0$&3%""o\'8)3(8"F3)""o*#3+!P!2,"0-sPP7.2,!0/sP&20P\'&&F9J21"02P\'23P&""FJ248P""FJ258"06P\'23P&""FJ248P""FJ258!07<5'];
|
|
127
137
|
//# sourceMappingURL=response.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../src/network/response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../src/network/response.ts"],"names":[],"mappings":";;;;;;;;AAAA,8DAA8D;AAC9D,+BAAuD;AAEvD,kCAAgC;AAEhC,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B,MAAM,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AACrC,MAAM,OAAO,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAE3C,SAAS,SAAS,CAAC,IAA+B;IAChD,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACnD,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;SAC1C,IAAI,IAAI,YAAY,UAAU;QAAE,OAAO,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;;QACtE,MAAM,IAAI,KAAK,CAAC,wCAAwC,OAAO,IAAI,EAAE,CAAC,CAAC;AAC9E,CAAC;;AAED,SAAS,OAAO,CAAC,MAA0B,EAAE,IAAyB;IACpE,IACE,MAAM,CAAC,QAAQ,CAAC,IAAI,C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|
exports.AwsContextResolver = void 0;
|
|
4
|
+
const { __ΩResolverProps } = require('../../contracts');
|
|
5
|
+
const { __ΩResolver } = require('../../contracts');
|
|
6
|
+
function __assignType(fn, args) {
|
|
7
|
+
fn.__type = args;
|
|
8
|
+
return fn;
|
|
9
|
+
}
|
|
5
10
|
//#endregion
|
|
6
11
|
/**
|
|
7
12
|
* The class that implements the resolver by using the AWS Context object.
|
|
@@ -28,14 +33,14 @@ class AwsContextResolver {
|
|
|
28
33
|
throw new Error('Could not figure out how to create the resolver because the "context" argument didn\'t have the "fail" function.');
|
|
29
34
|
}
|
|
30
35
|
const delegatedResolver = {
|
|
31
|
-
succeed: response => context.succeed(response),
|
|
32
|
-
fail: error => context.fail(error),
|
|
36
|
+
succeed: __assignType(response => context.succeed(response), ['response', '', 'P"2!"/"']),
|
|
37
|
+
fail: __assignType(error => context.fail(error), ['error', '', 'P"2!"/"']),
|
|
33
38
|
};
|
|
34
39
|
return {
|
|
35
|
-
run: task => {
|
|
40
|
+
run: __assignType(task => {
|
|
36
41
|
task()
|
|
37
|
-
.then(response => delegatedResolver.succeed(response))
|
|
38
|
-
.catch(error => {
|
|
42
|
+
.then(__assignType(response => delegatedResolver.succeed(response), ['response', '', 'P"2!"/"']))
|
|
43
|
+
.catch(__assignType(error => {
|
|
39
44
|
log.error('SERVERLESS_ADAPTER:RESPOND_TO_EVENT_SOURCE_WITH_ERROR', error);
|
|
40
45
|
adapter.onErrorWhileForwarding({
|
|
41
46
|
delegatedResolver,
|
|
@@ -44,10 +49,11 @@ class AwsContextResolver {
|
|
|
44
49
|
event,
|
|
45
50
|
respondWithErrors,
|
|
46
51
|
});
|
|
47
|
-
});
|
|
48
|
-
},
|
|
52
|
+
}, ['error', '', 'P"2!"/"']));
|
|
53
|
+
}, ['task', '', 'P"2!"/"']),
|
|
49
54
|
};
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
exports.AwsContextResolver = AwsContextResolver;
|
|
58
|
+
AwsContextResolver.__type = ['TEvent', 'TCallback', 'TResponse', () => __ΩResolverProps, 'param0', () => __ΩResolver, 'createResolver', 'b!b"b#P""""o$%2%"$o�\'5e!!"e!"e!#$6&'];
|
|
53
59
|
//# sourceMappingURL=aws-context.resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws-context.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/aws-context/aws-context.resolver.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"aws-context.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/aws-context/aws-context.resolver.ts"],"names":[],"mappings":";;;qCAQO,iBAAiB;gCAAjB,iBAAiB;;;;;AAExB,YAAY;AAEZ;;;;;;;;;GASG;AACH,MAAa,kBAAkB;IAG7B;;OAEG;IACI,cAAc,CAAC,EACpB,OAAO,EACP,KAAK,EACL,GAAG,EACH,iBAAiB,EACjB,OAAO,GAC+B;QACtC,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CACb,8FAA8F,CAC/F,CAAC;SACH;QAED,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACpB,MAAM,IAAI,KAAK,CACb,qHAAqH,CACtH,CAAC;SACH;QAED,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;YACjB,MAAM,IAAI,KAAK,CACb,kHAAkH,CACnH,CAAC;SACH;QAED,MAAM,iBAAiB,GAA2B;YAChD,OAAO,eAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,8BAAA;YAC9C,IAAI,eAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,2BAAA;SACnC,CAAC;QAEF,OAAO;YACL,GAAG,eAAE,IAAI,CAAC,EAAE;gBACV,IAAI,EAAE;qBACH,IAAI,cAAC,QAAQ,CAAC,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,+BAAC;qBACrD,KAAK,cAAC,KAAK,CAAC,EAAE;oBACb,GAAG,CAAC,KAAK,CACP,uDAAuD,EACvD,KAAK,CACN,CAAC;oBAEF,OAAO,CAAC,sBAAsB,CAAC;wBAC7B,iBAAiB;wBACjB,KAAK;wBACL,GAAG;wBACH,KAAK;wBACL,iBAAiB;qBAClB,CAAC,CAAC;gBACL,CAAC,4BAAC,CAAC;YACP,CAAC,0BAAA;SACF,CAAC;IACJ,CAAC;;AAxDH,gDAyDC"}
|
|
@@ -20,4 +20,5 @@ export declare class CallbackResolver<TEvent, TContext, TResponse> implements Re
|
|
|
20
20
|
*/
|
|
21
21
|
createResolver({ callback, event, log, respondWithErrors, adapter, }: ResolverProps<TEvent, TContext, ServerlessCallback<any>, TResponse>): Resolver<any, void>;
|
|
22
22
|
}
|
|
23
|
+
export declare type __ΩServerlessCallback = any[];
|
|
23
24
|
//# sourceMappingURL=callback.resolver.d.ts.map
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//#region Imports
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.CallbackResolver = void 0;
|
|
3
|
+
exports.CallbackResolver = exports.__ΩServerlessCallback = void 0;
|
|
4
|
+
const { __ΩResolverProps } = require('../../contracts');
|
|
5
|
+
const { __ΩResolver } = require('../../contracts');
|
|
6
|
+
function __assignType(fn, args) {
|
|
7
|
+
fn.__type = args;
|
|
8
|
+
return fn;
|
|
9
|
+
}
|
|
10
|
+
const __ΩError = ['name', 'message', 'stack', 'P&4!&4"&4#8M'];
|
|
11
|
+
const __ΩServerlessCallback = ['TResponse', () => __ΩError, 'error', 'success', '', 'b!PPn",J2#Pe#!,J2$$/%'];
|
|
12
|
+
exports.__ΩServerlessCallback = __ΩServerlessCallback;
|
|
5
13
|
/**
|
|
6
14
|
* The class that implements the resolver using the callback function sent by serverless
|
|
7
15
|
*
|
|
@@ -19,14 +27,14 @@ class CallbackResolver {
|
|
|
19
27
|
throw new Error('Could not figure out how to create the resolver because the "callback" argument was not sent.');
|
|
20
28
|
}
|
|
21
29
|
const delegatedResolver = {
|
|
22
|
-
succeed: response => callback(null, response),
|
|
23
|
-
fail: error => callback(error, null),
|
|
30
|
+
succeed: __assignType(response => callback(null, response), ['response', '', 'P"2!"/"']),
|
|
31
|
+
fail: __assignType(error => callback(error, null), ['error', '', 'P"2!"/"']),
|
|
24
32
|
};
|
|
25
33
|
return {
|
|
26
|
-
run: task => {
|
|
34
|
+
run: __assignType(task => {
|
|
27
35
|
task()
|
|
28
|
-
.then(response => delegatedResolver.succeed(response))
|
|
29
|
-
.catch(error => {
|
|
36
|
+
.then(__assignType(response => delegatedResolver.succeed(response), ['response', '', 'P"2!"/"']))
|
|
37
|
+
.catch(__assignType(error => {
|
|
30
38
|
log.error('SERVERLESS_ADAPTER:RESPOND_TO_EVENT_SOURCE_WITH_ERROR', error);
|
|
31
39
|
adapter.onErrorWhileForwarding({
|
|
32
40
|
delegatedResolver,
|
|
@@ -35,10 +43,11 @@ class CallbackResolver {
|
|
|
35
43
|
event,
|
|
36
44
|
respondWithErrors,
|
|
37
45
|
});
|
|
38
|
-
});
|
|
39
|
-
},
|
|
46
|
+
}, ['error', '', 'P"2!"/"']));
|
|
47
|
+
}, ['task', '', 'P"2!"/"']),
|
|
40
48
|
};
|
|
41
49
|
}
|
|
42
50
|
}
|
|
43
51
|
exports.CallbackResolver = CallbackResolver;
|
|
52
|
+
CallbackResolver.__type = ['TEvent', 'TContext', 'TResponse', () => __ΩResolverProps, () => __ΩServerlessCallback, 'param0', () => __ΩResolver, 'createResolver', () => __ΩServerlessCallback, 'b!b"b#Pe"!e"""o%"e"#o$%2&"$o\'#0(5e!!e!""o)"e!#$6&'];
|
|
44
53
|
//# sourceMappingURL=callback.resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callback.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/callback/callback.resolver.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"callback.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/callback/callback.resolver.ts"],"names":[],"mappings":";;;qCAOO,iBAAiB;gCAAjB,iBAAiB;;;;;;;;AAexB;;;;;;;GAOG;AACH,MAAa,gBAAgB;IAU3B;;OAEG;IACI,cAAc,CAAC,EACpB,QAAQ,EACR,KAAK,EACL,GAAG,EACH,iBAAiB,EACjB,OAAO,GAMR;QACC,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CACb,+FAA+F,CAChG,CAAC;SACH;QAED,MAAM,iBAAiB,GAA2B;YAChD,OAAO,eAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,8BAAA;YAC7C,IAAI,eAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,2BAAA;SACrC,CAAC;QAEF,OAAO;YACL,GAAG,eAAE,IAAI,CAAC,EAAE;gBACV,IAAI,EAAE;qBACH,IAAI,cAAC,QAAQ,CAAC,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,+BAAC;qBACrD,KAAK,cAAC,KAAK,CAAC,EAAE;oBACb,GAAG,CAAC,KAAK,CACP,uDAAuD,EACvD,KAAK,CACN,CAAC;oBAEF,OAAO,CAAC,sBAAsB,CAAC;wBAC7B,iBAAiB;wBACjB,KAAK;wBACL,GAAG;wBACH,KAAK;wBACL,iBAAiB;qBAClB,CAAC,CAAC;gBACL,CAAC,4BAAC,CAAC;YACP,CAAC,0BAAA;SACF,CAAC;IACJ,CAAC;;AAxDH,4CAyDC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//#region Imports
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.DummyResolver = void 0;
|
|
4
|
+
const { __ΩResolver } = require('../../contracts');
|
|
5
5
|
//#endregion
|
|
6
6
|
/**
|
|
7
7
|
* The class that represents a dummy resolver that does nothing and can be used by the cloud that doesn't use resolvers.
|
|
@@ -20,4 +20,5 @@ class DummyResolver {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
exports.DummyResolver = DummyResolver;
|
|
23
|
+
DummyResolver.__type = [() => __ΩResolver, 'createResolver', 'P"$o!#0"5"""""6&'];
|
|
23
24
|
//# sourceMappingURL=dummy.resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dummy.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/dummy/dummy.resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dummy.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/dummy/dummy.resolver.ts"],"names":[],"mappings":";;;gCAE2C,iBAAiB;AAE5D,YAAY;AAEZ;;;;;GAKG;AACH,MAAa,aAAa;IAGxB;;OAEG;IACI,cAAc;QACnB,OAAO;YACL,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;SAC7B,CAAC;IACJ,CAAC;;AAVH,sCAWC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//#region Imports
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.PromiseResolver = void 0;
|
|
4
|
+
const { __ΩResolverProps } = require('../../contracts');
|
|
5
|
+
const { __ΩResolver } = require('../../contracts');
|
|
6
|
+
function __assignType(fn, args) {
|
|
7
|
+
fn.__type = args;
|
|
8
|
+
return fn;
|
|
9
|
+
}
|
|
5
10
|
//#endregion
|
|
6
11
|
/**
|
|
7
12
|
* The class that implements the resolver using the promise object sent by this library
|
|
@@ -15,15 +20,15 @@ class PromiseResolver {
|
|
|
15
20
|
*/
|
|
16
21
|
createResolver({ event, log, respondWithErrors, adapter, }) {
|
|
17
22
|
return {
|
|
18
|
-
run: task => {
|
|
19
|
-
return new Promise((resolve, reject) => {
|
|
23
|
+
run: __assignType(task => {
|
|
24
|
+
return new Promise(__assignType((resolve, reject) => {
|
|
20
25
|
const delegatedResolver = {
|
|
21
|
-
succeed: response => resolve(response),
|
|
22
|
-
fail: error => reject(error),
|
|
26
|
+
succeed: __assignType(response => resolve(response), ['response', '', 'P"2!"/"']),
|
|
27
|
+
fail: __assignType(error => reject(error), ['error', '', 'P"2!"/"']),
|
|
23
28
|
};
|
|
24
29
|
task()
|
|
25
|
-
.then(response => delegatedResolver.succeed(response))
|
|
26
|
-
.catch(error => {
|
|
30
|
+
.then(__assignType(response => delegatedResolver.succeed(response), ['response', '', 'P"2!"/"']))
|
|
31
|
+
.catch(__assignType(error => {
|
|
27
32
|
log.error('SERVERLESS_ADAPTER:RESPOND_TO_EVENT_SOURCE_WITH_ERROR', error);
|
|
28
33
|
adapter.onErrorWhileForwarding({
|
|
29
34
|
delegatedResolver,
|
|
@@ -32,11 +37,12 @@ class PromiseResolver {
|
|
|
32
37
|
event,
|
|
33
38
|
respondWithErrors,
|
|
34
39
|
});
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
},
|
|
40
|
+
}, ['error', '', 'P"2!"/"']));
|
|
41
|
+
}, ['resolve', 'reject', '', 'P"2!"2""/#']));
|
|
42
|
+
}, ['task', '', 'P"2!"/"']),
|
|
38
43
|
};
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
exports.PromiseResolver = PromiseResolver;
|
|
47
|
+
PromiseResolver.__type = ['TEvent', 'TContext', 'TCallback', 'TResponse', 'TReturn', () => __ΩResolverProps, 'param0', () => __ΩResolver, 'createResolver', 'b!b"b#b$b%Pe"!e""e"#e"$o&%2\'e"$e"%`o(#0)5e!!e!"e!#e!$"`6&'];
|
|
42
48
|
//# sourceMappingURL=promise.resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promise.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/promise/promise.resolver.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"promise.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/promise/promise.resolver.ts"],"names":[],"mappings":";;;qCAOO,iBAAiB;gCAAjB,iBAAiB;;;;;AAExB,YAAY;AAEZ;;;;;GAKG;AACH,MAAa,eAAe;IAI1B;;OAEG;IACI,cAAc,CAAC,EACpB,KAAK,EACL,GAAG,EACH,iBAAiB,EACjB,OAAO,GAC+C;QAItD,OAAO;YACL,GAAG,eAAE,IAAI,CAAC,EAAE;gBACV,OAAO,IAAI,OAAO,cAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;oBACrC,MAAM,iBAAiB,GAA2B;wBAChD,OAAO,eAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,8BAAA;wBACtC,IAAI,eAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,2BAAA;qBAC7B,CAAC;oBAEF,IAAI,EAAE;yBACH,IAAI,cAAC,QAAQ,CAAC,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,+BAAC;yBACrD,KAAK,cAAC,KAAK,CAAC,EAAE;wBACb,GAAG,CAAC,KAAK,CACP,uDAAuD,EACvD,KAAK,CACN,CAAC;wBAEF,OAAO,CAAC,sBAAsB,CAAC;4BAC7B,iBAAiB;4BACjB,KAAK;4BACL,GAAG;4BACH,KAAK;4BACL,iBAAiB;yBAClB,CAAC,CAAC;oBACL,CAAC,4BAAC,CAAC;gBACP,CAAC,2CAAC,CAAC;YACL,CAAC,0BAAA;SACF,CAAC;IACJ,CAAC;;AA3CH,0CA4CC"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//#region Imports
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.ServerlessAdapter = void 0;
|
|
4
|
+
const { __ΩBinarySettings } = require('./@types');
|
|
5
|
+
const { __ΩILogger } = require('./core');
|
|
6
|
+
const { __ΩAdapterContract } = require('./contracts');
|
|
7
|
+
const { __ΩFrameworkContract } = require('./contracts');
|
|
8
|
+
const { __ΩResolverContract } = require('./contracts');
|
|
9
|
+
const { __ΩHandlerContract } = require('./contracts');
|
|
10
|
+
const { __ΩServerlessHandler } = require('./contracts');
|
|
11
|
+
const __ΩExclude = ['T', 'U', 'l6!Re$!RPe#!e$"qk#%QRb!b"Pde"!p)'];
|
|
12
|
+
const __ΩOmit = ['T', 'K', () => __ΩPick, () => __ΩExclude, 'b!b"e!!e!!ge!"o$#o##'];
|
|
13
|
+
const __ΩPick = ['T', 'K', 'l+e#!e"!fRb!b"Pde""N#!'];
|
|
5
14
|
const core_1 = require("./core");
|
|
6
15
|
//#endregion
|
|
7
16
|
/**
|
|
@@ -160,4 +169,8 @@ class ServerlessAdapter {
|
|
|
160
169
|
}
|
|
161
170
|
}
|
|
162
171
|
exports.ServerlessAdapter = ServerlessAdapter;
|
|
172
|
+
ServerlessAdapter.__type = ['TApp', 'TEvent', 'TContext', 'TCallback', 'TResponse', 'TReturn', 'app', 'constructor', () => __ΩBinarySettings, 'binarySettings', function () { return {
|
|
173
|
+
contentEncodings: core_1.DEFAULT_BINARY_ENCODINGS,
|
|
174
|
+
contentTypes: core_1.DEFAULT_BINARY_CONTENT_TYPES,
|
|
175
|
+
}; }, 'respondWithErrors', function () { return process.env.NODE_ENV === 'development'; }, () => __ΩILogger, 'log', function () { return (0, core_1.createDefaultLogger)(); }, () => __ΩAdapterContract, 'adapters', function () { return []; }, () => __ΩFrameworkContract, 'framework', () => __ΩResolverContract, 'resolver', () => __ΩHandlerContract, 'handler', () => ServerlessAdapter, 'new', () => __ΩHandlerContract, () => __ΩOmit, "setHandler", 'setHandler', () => __ΩResolverContract, () => __ΩOmit, "setResolver", 'setResolver', () => __ΩFrameworkContract, () => __ΩOmit, "setFramework", 'setFramework', () => __ΩILogger, 'logger', () => __ΩOmit, "setLogger", 'setLogger', () => __ΩBinarySettings, () => __ΩOmit, "setBinarySettings", 'setBinarySettings', () => __ΩOmit, "setRespondWithErrors", 'setRespondWithErrors', () => __ΩAdapterContract, 'adapter', () => __ΩPick, "addAdapter", "build", 'addAdapter', () => __ΩServerlessHandler, 'build', 'b!b"b#b$b%b&Pe"!2\'"0(e!!3\'<n)3*<>+)3,<>-n.3/<>0e!"e!#e!%o1$F32<>3e!!o4"358<e!"e!#e!$e!%e!&o6&378<e!!e!"e!#e!$e!%e!&o8\'398<Pe"!2\'Pe#!e#"e##e#$e#%e#&7:0;sPe"!e""e"#e"$e"%e"&o<\'29!.>o=#0?Pe""e"#e"$e"%e"&o@&27!.BoA#0CPe"!oD"25!.FoE#0GPnH2I!.KoJ#0LPnM2*!.OoN#0PP)2,!.RoQ#0SPe""e"#e"%oT$2U!P.W.XJoV#0YPe"&oZ"0[5'];
|
|
163
176
|
//# sourceMappingURL=serverless-adapter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverless-adapter.js","sourceRoot":"","sources":["../src/serverless-adapter.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"serverless-adapter.js","sourceRoot":"","sources":["../src/serverless-adapter.ts"],"names":[],"mappings":";;;sCAE+B,UAAU;+BAalC,QAAQ;uCANR,aAAa;yCAAb,aAAa;wCAAb,aAAa;uCAAb,aAAa;yCAAb,aAAa;;;;AACpB,iCAKgB;AAEhB,YAAY;AAEZ;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,iBAAiB;IAQ5B,qBAAqB;IAErB;;OAEG;IACH,YAAoB,GAAS;QAa7B,YAAY;QAEZ,8BAA8B;QAE9B;;;;WAIG;QACO,mBAAc,GAAmB;YACzC,gBAAgB,EAAE,+BAAwB;YAC1C,YAAY,EAAE,mCAA4B;SAC3C,CAAC;QAEF;;;;;WAKG;QACO,sBAAiB,GAAY,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC;QAE9E;;WAEG;QACO,QAAG,GAAY,IAAA,0BAAmB,GAAE,CAAC;QAE/C;;WAEG;QACO,aAAQ,GAA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f,OAAqD;QAErD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAE5B,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACI,KAAK;QACV,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,MAAM,IAAI,KAAK,CACb,iEAAiE,CAClE,CAAC;SACH;QAED,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,MAAM,IAAI,KAAK,CACb,kEAAkE,CACnE,CAAC;SACH;QAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAC;SACH;QAED,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;YAC9B,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAC;SACH;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAC,GAAG,EACR,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,iBAAiB,EACtB,IAAI,CAAC,GAAG,CACT,CAAC;IACJ,CAAC;;AAjQH,8CAoQC;qLAjO4C;QACzC,gBAAgB,EAAE,+BAAwB;QAC1C,YAAY,EAAE,mCAA4B;KAC3C,+CAQsC,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,mDAKpD,IAAA,0BAAmB,GAAE,gEAKuB,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h4ad/serverless-adapter",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "Run REST APIs and other web applications using your existing Node.js application framework (NestJS, Express, Koa, Hapi, Fastify and many others), on top of AWS, Azure, Huawei and many other clouds.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"lib/**/*"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
|
-
"install:peers": "npx npm-install-peers",
|
|
11
10
|
"prepare": "husky install",
|
|
12
11
|
"build": "tsc -p tsconfig.build.json",
|
|
13
12
|
"build:docs": "tsc -p tsconfig.doc.json",
|
|
@@ -60,21 +59,35 @@
|
|
|
60
59
|
"http-trigger-v4",
|
|
61
60
|
"firebase",
|
|
62
61
|
"firebase-functions",
|
|
63
|
-
"firebase-http-events"
|
|
62
|
+
"firebase-http-events",
|
|
63
|
+
"deepkit",
|
|
64
|
+
"deepkit http"
|
|
64
65
|
],
|
|
65
66
|
"bugs": {
|
|
66
67
|
"url": "https://github.com/H4ad/serverless-adapter/issues"
|
|
67
68
|
},
|
|
68
69
|
"homepage": "https://github.com/H4ad/serverless-adapter#readme",
|
|
69
70
|
"devDependencies": {
|
|
71
|
+
"@azure/functions": "^3.2.0",
|
|
72
|
+
"@deepkit/app": ">= 1.0.1-alpha.74",
|
|
73
|
+
"@deepkit/core": ">= 1.0.1-alpha.74",
|
|
74
|
+
"@deepkit/framework": ">= 1.0.1-alpha.74",
|
|
75
|
+
"@deepkit/http": ">= 1.0.1-alpha.74",
|
|
76
|
+
"@deepkit/type": ">= 1.0.1-alpha.74",
|
|
77
|
+
"@deepkit/type-compiler": ">= 1.0.1-alpha.74",
|
|
78
|
+
"@hapi/hapi": "^20.2.2",
|
|
70
79
|
"@microsoft/api-documenter": "7.17.16",
|
|
71
80
|
"@microsoft/api-extractor": "7.24.2",
|
|
72
81
|
"@microsoft/api-extractor-model": "7.17.3",
|
|
73
82
|
"@microsoft/tsdoc": "0.14.1",
|
|
74
83
|
"@rushstack/node-core-library": "^3.45.2",
|
|
84
|
+
"@trpc/server": "^9.26.2",
|
|
75
85
|
"@types/aws-lambda": "^8.10.92",
|
|
76
86
|
"@types/body-parser": "^1.19.2",
|
|
77
|
-
"@types/
|
|
87
|
+
"@types/express": "^4.17.13",
|
|
88
|
+
"@types/hapi": "^18.0.7",
|
|
89
|
+
"@types/jest": "^28.1.6",
|
|
90
|
+
"@types/koa": "^2.13.5",
|
|
78
91
|
"@types/node": "12.20.43",
|
|
79
92
|
"@types/supertest": "^2.0.12",
|
|
80
93
|
"@typescript-eslint/eslint-plugin": "^5.12.1",
|
|
@@ -90,20 +103,28 @@
|
|
|
90
103
|
"eslint-plugin-node": "^11.1.0",
|
|
91
104
|
"eslint-plugin-prettier": "^4.0.0",
|
|
92
105
|
"eslint-plugin-tsdoc": "^0.2.14",
|
|
106
|
+
"express": "^4.18.1",
|
|
107
|
+
"fastify": "^4.3.0",
|
|
108
|
+
"fastify-3": "npm:fastify@3.29.0",
|
|
109
|
+
"firebase-admin": "^11.0.1",
|
|
110
|
+
"firebase-admin-8": "npm:firebase-admin@^8.0.0",
|
|
111
|
+
"firebase-functions": "^3.22.0",
|
|
93
112
|
"husky": "^6.0.0",
|
|
94
|
-
"jest": "^
|
|
113
|
+
"jest": "^28.1.3",
|
|
114
|
+
"koa": "^2.13.4",
|
|
95
115
|
"lint-staged": "^10.5.4",
|
|
96
116
|
"prettier": "^2.5.1",
|
|
97
117
|
"semantic-release": "^19.0.3",
|
|
98
118
|
"stream-mock": "^2.0.5",
|
|
99
119
|
"supertest": "^6.2.3",
|
|
100
|
-
"ts-jest": "^
|
|
120
|
+
"ts-jest": "^28.0.7",
|
|
101
121
|
"ts-node": "^10.4.0",
|
|
102
122
|
"typedoc": "^0.22.13",
|
|
103
123
|
"typescript": "^4.5.5"
|
|
104
124
|
},
|
|
105
125
|
"peerDependencies": {
|
|
106
126
|
"@azure/functions": ">= 2.0.0",
|
|
127
|
+
"@deepkit/http": ">= 1.0.1-alpha.74",
|
|
107
128
|
"@hapi/hapi": ">= 20.0.0",
|
|
108
129
|
"@trpc/server": ">= 9.0.0",
|
|
109
130
|
"@types/aws-lambda": ">= 8.10.92",
|
|
@@ -116,12 +137,16 @@
|
|
|
116
137
|
"firebase-admin": ">= 8.0.0",
|
|
117
138
|
"firebase-admin-8": "npm:firebase-admin@^8.0.0",
|
|
118
139
|
"firebase-functions": ">= 3.0.0",
|
|
119
|
-
"koa": ">= 2.5.1"
|
|
140
|
+
"koa": ">= 2.5.1",
|
|
141
|
+
"reflect-metadata": "^0.1.13"
|
|
120
142
|
},
|
|
121
143
|
"peerDependenciesMeta": {
|
|
122
144
|
"@azure/functions": {
|
|
123
145
|
"optional": true
|
|
124
146
|
},
|
|
147
|
+
"@deepkit/http": {
|
|
148
|
+
"optional": true
|
|
149
|
+
},
|
|
125
150
|
"@hapi/hapi": {
|
|
126
151
|
"optional": true
|
|
127
152
|
},
|