@celljs/web 3.0.0 → 3.1.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/lib/common/index.js +5 -18
- package/lib/common/index.js.map +1 -1
- package/lib/common/pipe/index.js +6 -19
- package/lib/common/pipe/index.js.map +1 -1
- package/lib/common/pipe/pipe-manager.js +4 -12
- package/lib/common/pipe/pipe-manager.js.map +1 -1
- package/lib/common/pipe/pipe-provider.js +5 -16
- package/lib/common/pipe/pipe-provider.js.map +1 -1
- package/lib/common/pipe/pipe-transtorm.js +4 -12
- package/lib/common/pipe/pipe-transtorm.js.map +1 -1
- package/lib/common/resolver/index.js +3 -16
- package/lib/common/resolver/index.js.map +1 -1
- package/lib/common/resolver/path-resolver.js +4 -12
- package/lib/common/resolver/path-resolver.js.map +1 -1
- package/lib/common/utils/index.js +2 -15
- package/lib/common/utils/index.js.map +1 -1
- package/lib/hooks/serve.d.ts.map +1 -1
- package/lib/hooks/serve.js +9 -13
- package/lib/hooks/serve.js.map +1 -1
- package/lib/node/application/dev-application-entry.js +7 -20
- package/lib/node/application/dev-application-entry.js.map +1 -1
- package/lib/node/body/body-middleware.js +10 -18
- package/lib/node/body/body-middleware.js.map +1 -1
- package/lib/node/body/index.js +3 -16
- package/lib/node/body/index.js.map +1 -1
- package/lib/node/cookies/cookies-factory.js +6 -14
- package/lib/node/cookies/cookies-factory.js.map +1 -1
- package/lib/node/cookies/cookies-middleware.js +4 -12
- package/lib/node/cookies/cookies-middleware.js.map +1 -1
- package/lib/node/cookies/index.js +4 -17
- package/lib/node/cookies/index.js.map +1 -1
- package/lib/node/cors/cors-middleware.js +8 -16
- package/lib/node/cors/cors-middleware.js.map +1 -1
- package/lib/node/cors/index.js +3 -16
- package/lib/node/cors/index.js.map +1 -1
- package/lib/node/dispatcher/dispatcher.js +12 -20
- package/lib/node/dispatcher/dispatcher.js.map +1 -1
- package/lib/node/dispatcher/index.js +3 -16
- package/lib/node/dispatcher/index.js.map +1 -1
- package/lib/node/error/error-hander-provider.js +8 -19
- package/lib/node/error/error-hander-provider.js.map +1 -1
- package/lib/node/error/index.js +5 -18
- package/lib/node/error/index.js.map +1 -1
- package/lib/node/handler/handler-execution-chain.js +2 -7
- package/lib/node/handler/handler-execution-chain.js.map +1 -1
- package/lib/node/handler/handler-mapping.js +5 -16
- package/lib/node/handler/handler-mapping.js.map +1 -1
- package/lib/node/handler/index.js +4 -17
- package/lib/node/handler/index.js.map +1 -1
- package/lib/node/health/health-executor.js +6 -14
- package/lib/node/health/health-executor.js.map +1 -1
- package/lib/node/health/health-indicator.js +2 -7
- package/lib/node/health/health-indicator.js.map +1 -1
- package/lib/node/health/health-middleware.js +10 -18
- package/lib/node/health/health-middleware.js.map +1 -1
- package/lib/node/health/health-status-aggregator.js +2 -7
- package/lib/node/health/health-status-aggregator.js.map +1 -1
- package/lib/node/health/index.js +7 -20
- package/lib/node/health/index.js.map +1 -1
- package/lib/node/http/http-middleware.js +4 -12
- package/lib/node/http/http-middleware.js.map +1 -1
- package/lib/node/http/index.js +4 -17
- package/lib/node/http/index.js.map +1 -1
- package/lib/node/http/server-aware.js +2 -7
- package/lib/node/http/server-aware.js.map +1 -1
- package/lib/node/index.js +15 -28
- package/lib/node/index.js.map +1 -1
- package/lib/node/matcher/index.js +3 -16
- package/lib/node/matcher/index.js.map +1 -1
- package/lib/node/matcher/request-matcher.js +4 -12
- package/lib/node/matcher/request-matcher.js.map +1 -1
- package/lib/node/middleware/index.js +4 -17
- package/lib/node/middleware/index.js.map +1 -1
- package/lib/node/middleware/middleware-provider.js +5 -16
- package/lib/node/middleware/middleware-provider.js.map +1 -1
- package/lib/node/redirect/index.js +3 -16
- package/lib/node/redirect/index.js.map +1 -1
- package/lib/node/redirect/redirect-strategy.js +4 -12
- package/lib/node/redirect/redirect-strategy.js.map +1 -1
- package/lib/node/session/index.js +6 -19
- package/lib/node/session/index.js.map +1 -1
- package/lib/node/session/session-manager.js +10 -18
- package/lib/node/session/session-manager.js.map +1 -1
- package/lib/node/session/session-middleware.js +6 -14
- package/lib/node/session/session-middleware.js.map +1 -1
- package/lib/node/session/session-store.js +8 -16
- package/lib/node/session/session-store.js.map +1 -1
- package/lib/node/session/session-strategy.js +4 -12
- package/lib/node/session/session-strategy.js.map +1 -1
- package/lib/node/trace/index.js +5 -18
- package/lib/node/trace/index.js.map +1 -1
- package/lib/node/trace/trace-id-provider.js +2 -7
- package/lib/node/trace/trace-id-provider.js.map +1 -1
- package/lib/node/trace/trace-id-resolver.js +4 -12
- package/lib/node/trace/trace-id-resolver.js.map +1 -1
- package/lib/node/trace/trace-middleware.js +6 -14
- package/lib/node/trace/trace-middleware.js.map +1 -1
- package/package.json +7 -6
- package/src/hooks/serve.ts +8 -12
package/lib/common/index.js
CHANGED
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./resolver"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./constants"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./utils"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./pipe"), exports);
|
|
21
8
|
//# sourceMappingURL=index.js.map
|
package/lib/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,sDAA4B;AAC5B,kDAAwB;AACxB,iDAAuB"}
|
package/lib/common/pipe/index.js
CHANGED
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./pipe-
|
|
19
|
-
__exportStar(require("./pipe-
|
|
20
|
-
__exportStar(require("./pipe-
|
|
21
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./pipe-manager"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./pipe-protocol"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./pipe-provider"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./pipe-transtorm"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./validation-errors"), exports);
|
|
22
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/pipe/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/pipe/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,0DAAgC;AAChC,0DAAgC;AAChC,2DAAiC;AACjC,8DAAoC"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.PipeManagerImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const core_1 = require("@celljs/core");
|
|
14
6
|
const pipe_protocol_1 = require("./pipe-protocol");
|
|
15
7
|
let PipeManagerImpl = class PipeManagerImpl {
|
|
@@ -26,11 +18,11 @@ let PipeManagerImpl = class PipeManagerImpl {
|
|
|
26
18
|
}
|
|
27
19
|
}
|
|
28
20
|
};
|
|
29
|
-
__decorate([
|
|
21
|
+
tslib_1.__decorate([
|
|
30
22
|
(0, core_1.Autowired)(pipe_protocol_1.PipeProvider),
|
|
31
|
-
__metadata("design:type", Object)
|
|
23
|
+
tslib_1.__metadata("design:type", Object)
|
|
32
24
|
], PipeManagerImpl.prototype, "pipeProvider", void 0);
|
|
33
|
-
PipeManagerImpl = __decorate([
|
|
25
|
+
PipeManagerImpl = tslib_1.__decorate([
|
|
34
26
|
(0, core_1.Component)(pipe_protocol_1.PipeManager)
|
|
35
27
|
], PipeManagerImpl);
|
|
36
28
|
exports.PipeManagerImpl = PipeManagerImpl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipe-manager.js","sourceRoot":"","sources":["../../../src/common/pipe/pipe-manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pipe-manager.js","sourceRoot":"","sources":["../../../src/common/pipe/pipe-manager.ts"],"names":[],"mappings":";;;;AAAA,uCAA+D;AAC/D,mDAA4E;AAGrE,IAAM,eAAe,GAArB,MAAM,eAAe;IAKxB,KAAK,CAAC,KAAK,CAAC,QAAwB,EAAE,IAAW;QAC7C,MAAM,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,IAAA,gBAAS,EAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;QACzG,IAAI,UAAU,EAAE;YACZ,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;gBAC9C,IAAI,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;gBACtB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE;oBAC5C,GAAG,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC;iBAC3G;gBACD,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC;aACrB;SACJ;IACL,CAAC;CAEJ,CAAA;AAhBG;IAAC,IAAA,gBAAS,EAAC,4BAAY,CAAC;;qDACsB;AAHrC,eAAe;IAD3B,IAAA,gBAAS,EAAC,2BAAW,CAAC;GACV,eAAe,CAkB3B;AAlBY,0CAAe"}
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.PipeProviderImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
16
5
|
const core_1 = require("@celljs/core");
|
|
17
6
|
const pipe_protocol_1 = require("./pipe-protocol");
|
|
18
7
|
let PipeProviderImpl = class PipeProviderImpl {
|
|
@@ -26,11 +15,11 @@ let PipeProviderImpl = class PipeProviderImpl {
|
|
|
26
15
|
return this.prioritized;
|
|
27
16
|
}
|
|
28
17
|
};
|
|
29
|
-
PipeProviderImpl = __decorate([
|
|
18
|
+
PipeProviderImpl = tslib_1.__decorate([
|
|
30
19
|
(0, core_1.Component)(pipe_protocol_1.PipeProvider),
|
|
31
|
-
__param(0, (0, core_1.Autowired)(pipe_protocol_1.PipeTransform)),
|
|
32
|
-
__param(0, (0, core_1.Optional)()),
|
|
33
|
-
__metadata("design:paramtypes", [Array])
|
|
20
|
+
tslib_1.__param(0, (0, core_1.Autowired)(pipe_protocol_1.PipeTransform)),
|
|
21
|
+
tslib_1.__param(0, (0, core_1.Optional)()),
|
|
22
|
+
tslib_1.__metadata("design:paramtypes", [Array])
|
|
34
23
|
], PipeProviderImpl);
|
|
35
24
|
exports.PipeProviderImpl = PipeProviderImpl;
|
|
36
25
|
//# sourceMappingURL=pipe-provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipe-provider.js","sourceRoot":"","sources":["../../../src/common/pipe/pipe-provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pipe-provider.js","sourceRoot":"","sources":["../../../src/common/pipe/pipe-provider.ts"],"names":[],"mappings":";;;;AAAA,uCAA8E;AAC9E,mDAA8D;AAGvD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAIzB,YAEuB,KAAsB;QAAtB,UAAK,GAAL,KAAK,CAAiB;IACzC,CAAC;IAEL,OAAO;QACH,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;YACnB,IAAI,CAAC,WAAW,GAAG,qBAAc,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SACrF;QACD,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;CAEJ,CAAA;AAhBY,gBAAgB;IAD5B,IAAA,gBAAS,EAAC,4BAAY,CAAC;IAMf,mBAAA,IAAA,gBAAS,EAAC,6BAAa,CAAC,CAAA;IAAE,mBAAA,IAAA,eAAQ,GAAE,CAAA;;GALhC,gBAAgB,CAgB5B;AAhBY,4CAAgB"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.ValidationPipe = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const core_1 = require("@celljs/core");
|
|
14
6
|
const pipe_protocol_1 = require("./pipe-protocol");
|
|
15
7
|
const validation_errors_1 = require("./validation-errors");
|
|
@@ -86,11 +78,11 @@ let ValidationPipe = class ValidationPipe {
|
|
|
86
78
|
return ['number', 'boolean', 'string'].indexOf(typeof value) !== -1;
|
|
87
79
|
}
|
|
88
80
|
};
|
|
89
|
-
__decorate([
|
|
81
|
+
tslib_1.__decorate([
|
|
90
82
|
(0, core_1.Value)('cell.web.validationPipeOptions'),
|
|
91
|
-
__metadata("design:type", Object)
|
|
83
|
+
tslib_1.__metadata("design:type", Object)
|
|
92
84
|
], ValidationPipe.prototype, "options", void 0);
|
|
93
|
-
ValidationPipe = __decorate([
|
|
85
|
+
ValidationPipe = tslib_1.__decorate([
|
|
94
86
|
(0, core_1.Component)(pipe_protocol_1.PipeTransform)
|
|
95
87
|
], ValidationPipe);
|
|
96
88
|
exports.ValidationPipe = ValidationPipe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipe-transtorm.js","sourceRoot":"","sources":["../../../src/common/pipe/pipe-transtorm.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pipe-transtorm.js","sourceRoot":"","sources":["../../../src/common/pipe/pipe-transtorm.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./resolver-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./path-resolver"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/resolver/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/resolver/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,0DAAgC"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.PathResolverImpl = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const resolver_protocol_1 = require("./resolver-protocol");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
const constants_1 = require("../constants");
|
|
@@ -29,11 +21,11 @@ let PathResolverImpl = class PathResolverImpl {
|
|
|
29
21
|
return core_1.UrlUtil.join(this.serverPath, ...[first, ...rest]);
|
|
30
22
|
}
|
|
31
23
|
};
|
|
32
|
-
__decorate([
|
|
24
|
+
tslib_1.__decorate([
|
|
33
25
|
(0, core_1.Value)(constants_1.SERVER_PATH),
|
|
34
|
-
__metadata("design:type", String)
|
|
26
|
+
tslib_1.__metadata("design:type", String)
|
|
35
27
|
], PathResolverImpl.prototype, "serverPath", void 0);
|
|
36
|
-
PathResolverImpl = __decorate([
|
|
28
|
+
PathResolverImpl = tslib_1.__decorate([
|
|
37
29
|
(0, core_1.Component)(resolver_protocol_1.PathResolver)
|
|
38
30
|
], PathResolverImpl);
|
|
39
31
|
exports.PathResolverImpl = PathResolverImpl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path-resolver.js","sourceRoot":"","sources":["../../../src/common/resolver/path-resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"path-resolver.js","sourceRoot":"","sources":["../../../src/common/resolver/path-resolver.ts"],"names":[],"mappings":";;;;AAAA,2DAAmD;AACnD,uCAAwE;AACxE,4CAA2C;AAC3C,oCAAmC;AAG5B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAKzB,KAAK,CAAC,OAAO,CAAC,GAAG,KAAe;QAC5B,MAAM,CAAE,KAAK,EAAE,GAAG,IAAI,CAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAClD,IAAI,CAAC,KAAK,EAAE;YACR,OAAO,IAAI,CAAC,UAAU,CAAC;SAC1B;aAAM,IAAI,eAAO,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE;YACrC,OAAO,cAAW,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;SAC3C;aAAM,IAAI,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;YAC1C,OAAO,cAAW,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,CAAC;SAC3C;QACD,OAAO,cAAW,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,CAAE,KAAK,EAAE,GAAG,IAAI,CAAE,CAAC,CAAC;IACpE,CAAC;CACJ,CAAA;AAdG;IAAC,IAAA,YAAK,EAAC,uBAAW,CAAC;;oDACmB;AAH7B,gBAAgB;IAD5B,IAAA,gBAAS,EAAC,gCAAY,CAAC;GACX,gBAAgB,CAgB5B;AAhBY,4CAAgB"}
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./url-util"), exports);
|
|
18
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B"}
|
package/lib/hooks/serve.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/hooks/serve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,qBAAa,QAAQ;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAE5B,OAAO,gBAGJ;CACN;
|
|
1
|
+
{"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/hooks/serve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,qBAAa,QAAQ;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAE5B,OAAO,gBAGJ;CACN;AAID,wBAAsB,KAAK,CAAC,OAAO,EAAE,YAAY,iBAsChD"}
|
package/lib/hooks/serve.js
CHANGED
|
@@ -12,7 +12,6 @@ class Deferred {
|
|
|
12
12
|
exports.Deferred = Deferred;
|
|
13
13
|
let application;
|
|
14
14
|
let doDispatch;
|
|
15
|
-
let initialized = false;
|
|
16
15
|
async function after(context) {
|
|
17
16
|
const { app, entryContextProvider, stats } = context;
|
|
18
17
|
if (!entryContextProvider || !stats) {
|
|
@@ -42,18 +41,15 @@ async function after(context) {
|
|
|
42
41
|
console.error(err);
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
doDispatch(req, res);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
44
|
+
app.all('*', async (req, res) => {
|
|
45
|
+
try {
|
|
46
|
+
await compileDeferred.promise;
|
|
47
|
+
}
|
|
48
|
+
catch (err) {
|
|
49
|
+
res.status(500).send(err);
|
|
50
|
+
}
|
|
51
|
+
doDispatch(req, res);
|
|
52
|
+
});
|
|
57
53
|
}
|
|
58
54
|
exports.after = after;
|
|
59
55
|
;
|
package/lib/hooks/serve.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serve.js","sourceRoot":"","sources":["../../src/hooks/serve.ts"],"names":[],"mappings":";;;AACA,MAAa,QAAQ;IAArB;QAII,YAAO,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACzB,CAAC,CAAC,CAAC;IACP,CAAC;CAAA;AARD,4BAQC;AAED,IAAI,WAAgB,CAAC;AACrB,IAAI,UAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"serve.js","sourceRoot":"","sources":["../../src/hooks/serve.ts"],"names":[],"mappings":";;;AACA,MAAa,QAAQ;IAArB;QAII,YAAO,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC5C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACzB,CAAC,CAAC,CAAC;IACP,CAAC;CAAA;AARD,4BAQC;AAED,IAAI,WAAgB,CAAC;AACrB,IAAI,UAAwC,CAAC;AACtC,KAAK,UAAU,KAAK,CAAC,OAAqB;IAC7C,MAAM,EAAE,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC;IAErD,IAAI,CAAC,oBAAoB,IAAI,CAAC,KAAK,EAAE;QACjC,OAAO;KACV;IACD,MAAM,eAAe,GAAG,IAAI,QAAQ,EAAE,CAAC;IACvC,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,EAAE,CAAC;IACpB,oBAAoB,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,GAAQ,EAAE,EAAE;QAC3C,IAAI;YACA,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,GAAG,CAAC;YAC5F,MAAM,CAAC,GAAG,MAAM,SAAS,CAAC;YAC1B,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;YACzB,WAAW,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YACvC,MAAM,WAAW,CAAC,KAAK,EAAE,CAAC;YAC1B,MAAM,UAAU,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACrC,UAAU,GAAG,CAAC,GAAQ,EAAE,GAAQ,EAAE,EAAE;gBAChC,MAAM,WAAW,GAAG,IAAI,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;gBAC1C,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;YACxD,CAAC,CAAC;YACF,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACpC,KAAK,MAAM,WAAW,IAAI,KAAK,EAAE;gBAC7B,MAAM,WAAW,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;aAC/C;YACD,eAAe,CAAC,OAAO,EAAE,CAAC;SAC7B;QAAC,OAAO,GAAG,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SACtB;IACL,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,GAAQ,EAAE,GAAQ,EAAE,EAAE;QACtC,IAAI;YACA,MAAM,eAAe,CAAC,OAAO,CAAC;SACjC;QAAC,OAAO,GAAG,EAAE;YACV,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SAC7B;QACD,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AAEP,CAAC;AAtCD,sBAsCC;AAAA,CAAC"}
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("@celljs/core/lib/common/container/container
|
|
19
|
-
__exportStar(require("
|
|
20
|
-
__exportStar(require("../
|
|
21
|
-
__exportStar(require("
|
|
22
|
-
__exportStar(require("
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("@celljs/core/lib/common/container/dynamic-container"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("@celljs/core/lib/common/container/container-provider"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("../context"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("../dispatcher"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("@celljs/core/lib/common/application"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("../http/http-protocol"), exports);
|
|
23
10
|
//# sourceMappingURL=dev-application-entry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-application-entry.js","sourceRoot":"","sources":["../../../src/node/application/dev-application-entry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev-application-entry.js","sourceRoot":"","sources":["../../../src/node/application/dev-application-entry.ts"],"names":[],"mappings":";;;AAAA,8FAAoE;AACpE,+FAAqE;AACrE,qDAA2B;AAC3B,wDAA8B;AAC9B,8EAAoD;AACpD,gEAAsC"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.BodyMiddleware = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const middleware_1 = require("../middleware");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
const body_parser_1 = require("body-parser");
|
|
@@ -21,22 +13,22 @@ let BodyMiddleware = class BodyMiddleware {
|
|
|
21
13
|
}
|
|
22
14
|
async handle(ctx, next) {
|
|
23
15
|
return this.handlerExecutionChain.execute([
|
|
24
|
-
(0, middleware_1.convertExpressMiddleware)((0, body_parser_1.json)(
|
|
25
|
-
(0, middleware_1.convertExpressMiddleware)((0, body_parser_1.text)(
|
|
26
|
-
(0, middleware_1.convertExpressMiddleware)((0, body_parser_1.raw)(
|
|
27
|
-
(0, middleware_1.convertExpressMiddleware)((0, body_parser_1.urlencoded)(
|
|
16
|
+
(0, middleware_1.convertExpressMiddleware)((0, body_parser_1.json)({ ...this.options })),
|
|
17
|
+
(0, middleware_1.convertExpressMiddleware)((0, body_parser_1.text)({ ...this.options })),
|
|
18
|
+
(0, middleware_1.convertExpressMiddleware)((0, body_parser_1.raw)({ ...this.options })),
|
|
19
|
+
(0, middleware_1.convertExpressMiddleware)((0, body_parser_1.urlencoded)({ ...this.options, ...{ extended: true } }))
|
|
28
20
|
], next);
|
|
29
21
|
}
|
|
30
22
|
};
|
|
31
|
-
__decorate([
|
|
23
|
+
tslib_1.__decorate([
|
|
32
24
|
(0, core_1.Autowired)(handler_1.HandlerExecutionChain),
|
|
33
|
-
__metadata("design:type", Object)
|
|
25
|
+
tslib_1.__metadata("design:type", Object)
|
|
34
26
|
], BodyMiddleware.prototype, "handlerExecutionChain", void 0);
|
|
35
|
-
__decorate([
|
|
27
|
+
tslib_1.__decorate([
|
|
36
28
|
(0, core_1.Value)('cell.web.body'),
|
|
37
|
-
__metadata("design:type", Object)
|
|
29
|
+
tslib_1.__metadata("design:type", Object)
|
|
38
30
|
], BodyMiddleware.prototype, "options", void 0);
|
|
39
|
-
BodyMiddleware = __decorate([
|
|
31
|
+
BodyMiddleware = tslib_1.__decorate([
|
|
40
32
|
(0, core_1.Component)(middleware_1.Middleware)
|
|
41
33
|
], BodyMiddleware);
|
|
42
34
|
exports.BodyMiddleware = BodyMiddleware;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"body-middleware.js","sourceRoot":"","sources":["../../../src/node/body/body-middleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"body-middleware.js","sourceRoot":"","sources":["../../../src/node/body/body-middleware.ts"],"names":[],"mappings":";;;;AAAA,8CAAqE;AAErE,uCAA2D;AAC3D,6CAAmE;AACnE,mDAA2D;AAC3D,wCAAmD;AAG5C,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;QAiBM,aAAQ,GAAG,wCAAwB,CAAC;IAEjD,CAAC;IAXG,KAAK,CAAC,MAAM,CAAC,GAAY,EAAE,IAAyB;QAChD,OAAO,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC;YACtC,IAAA,qCAAwB,EAAC,IAAA,kBAAI,EAAC,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;YACnD,IAAA,qCAAwB,EAAC,IAAA,kBAAI,EAAC,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;YACnD,IAAA,qCAAwB,EAAC,IAAA,iBAAG,EAAC,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;YAClD,IAAA,qCAAwB,EAAC,IAAA,wBAAU,EAAC,EAAE,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;SACnF,EAAE,IAAI,CAAC,CAAC;IACb,CAAC;CAIJ,CAAA;AAjBG;IAAC,IAAA,gBAAS,EAAC,+BAAqB,CAAC;;6DACsB;AAEvD;IAAC,IAAA,YAAK,EAAC,eAAe,CAAC;;+CACa;AAN3B,cAAc;IAD1B,IAAA,gBAAS,EAAC,uBAAU,CAAC;GACT,cAAc,CAmB1B;AAnBY,wCAAc"}
|
package/lib/node/body/index.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./body-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./body-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./body-middleware"), exports);
|
|
19
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/body/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/body/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,4DAAkC"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.CookiesFactory = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const context_1 = require("../context");
|
|
14
6
|
const core_1 = require("@celljs/core");
|
|
15
7
|
const _Cookies = require("cookies");
|
|
@@ -22,15 +14,15 @@ let CookiesFactory = class CookiesFactory {
|
|
|
22
14
|
return cookies;
|
|
23
15
|
}
|
|
24
16
|
};
|
|
25
|
-
__decorate([
|
|
17
|
+
tslib_1.__decorate([
|
|
26
18
|
(0, core_1.Value)('cell.cookies.keys'),
|
|
27
|
-
__metadata("design:type", Array)
|
|
19
|
+
tslib_1.__metadata("design:type", Array)
|
|
28
20
|
], CookiesFactory.prototype, "keys", void 0);
|
|
29
|
-
__decorate([
|
|
21
|
+
tslib_1.__decorate([
|
|
30
22
|
(0, core_1.Value)('cell.cookies.secure'),
|
|
31
|
-
__metadata("design:type", Boolean)
|
|
23
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
32
24
|
], CookiesFactory.prototype, "secure", void 0);
|
|
33
|
-
CookiesFactory = __decorate([
|
|
25
|
+
CookiesFactory = tslib_1.__decorate([
|
|
34
26
|
(0, core_1.Component)()
|
|
35
27
|
], CookiesFactory);
|
|
36
28
|
exports.CookiesFactory = CookiesFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookies-factory.js","sourceRoot":"","sources":["../../../src/node/cookies/cookies-factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cookies-factory.js","sourceRoot":"","sources":["../../../src/node/cookies/cookies-factory.ts"],"names":[],"mappings":";;;;AAAA,wCAAqC;AACrC,uCAAgD;AAChD,oCAAoC;AAI7B,IAAM,cAAc,GAApB,MAAM,cAAc;IAQvB,KAAK,CAAC,MAAM;QACR,MAAM,OAAO,GAAG,IAAI,QAAQ,CAAC,iBAAO,CAAC,UAAU,EAAS,EAAE,iBAAO,CAAC,WAAW,EAAS,EAAE;YACpF,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACtB,CAAC,CAAC;QACH,OAAgB,OAAO,CAAC;IAC5B,CAAC;CACJ,CAAA;AAbG;IAAC,IAAA,YAAK,EAAC,mBAAmB,CAAC;;4CACD;AAE1B;IAAC,IAAA,YAAK,EAAC,qBAAqB,CAAC;;8CACF;AANlB,cAAc;IAD1B,IAAA,gBAAS,GAAE;GACC,cAAc,CAe1B;AAfY,wCAAc"}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.CookiesMiddleware = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const middleware_1 = require("../middleware");
|
|
14
6
|
const context_1 = require("../context");
|
|
15
7
|
const core_1 = require("@celljs/core");
|
|
@@ -26,11 +18,11 @@ let CookiesMiddleware = class CookiesMiddleware {
|
|
|
26
18
|
await next();
|
|
27
19
|
}
|
|
28
20
|
};
|
|
29
|
-
__decorate([
|
|
21
|
+
tslib_1.__decorate([
|
|
30
22
|
(0, core_1.Autowired)(cookies_factory_1.CookiesFactory),
|
|
31
|
-
__metadata("design:type", cookies_factory_1.CookiesFactory)
|
|
23
|
+
tslib_1.__metadata("design:type", cookies_factory_1.CookiesFactory)
|
|
32
24
|
], CookiesMiddleware.prototype, "cookiesFactory", void 0);
|
|
33
|
-
CookiesMiddleware = __decorate([
|
|
25
|
+
CookiesMiddleware = tslib_1.__decorate([
|
|
34
26
|
(0, core_1.Component)(middleware_1.Middleware)
|
|
35
27
|
], CookiesMiddleware);
|
|
36
28
|
exports.CookiesMiddleware = CookiesMiddleware;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookies-middleware.js","sourceRoot":"","sources":["../../../src/node/cookies/cookies-middleware.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cookies-middleware.js","sourceRoot":"","sources":["../../../src/node/cookies/cookies-middleware.ts"],"names":[],"mappings":";;;;AAAA,8CAA2C;AAC3C,wCAAqC;AACrC,uCAAoD;AAEpD,uDAAmD;AACnD,yDAAiE;AAG1D,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QAYM,aAAQ,GAAG,8CAA2B,CAAC;IAEpD,CAAC;IATG,KAAK,CAAC,MAAM,CAAC,GAAY,EAAE,IAAyB;QAChD,IAAI,GAAG,CAAC,OAAO,EAAE;YACb,iBAAO,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC;SAC1D;QACD,MAAM,IAAI,EAAE,CAAC;IACjB,CAAC;CAIJ,CAAA;AAZG;IAAC,IAAA,gBAAS,EAAC,gCAAc,CAAC;sCACS,gCAAc;yDAAC;AAHzC,iBAAiB;IAD7B,IAAA,gBAAS,EAAC,uBAAU,CAAC;GACT,iBAAiB,CAc7B;AAdY,8CAAiB"}
|
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./cookies-
|
|
19
|
-
__exportStar(require("./cookies-
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./cookies-protocol"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./cookies-middleware"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./cookies-factory"), exports);
|
|
20
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/cookies/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/cookies/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,+DAAqC;AACrC,4DAAkC"}
|