@deepkit/http 1.0.1-alpha.68 → 1.0.1-alpha.70
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/cjs/src/http.js +2 -2
- package/dist/esm/src/http.js +2 -2
- package/package.json +9 -9
package/dist/cjs/src/http.js
CHANGED
|
@@ -319,7 +319,7 @@ class BaseResponse {
|
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
exports.BaseResponse = BaseResponse;
|
|
322
|
-
BaseResponse.__type = ['autoSerializing', function () { return true; }, '_statusCode', '_headers', () => ({}), 'constructor', 'code', 'status', 'disableAutoSerializing', 'name', 'value', 'header', 'headers', 'type', 'contentType', ')3!>"P\'2#8
|
|
322
|
+
BaseResponse.__type = ['autoSerializing', function () { return true; }, '_statusCode', '_headers', () => ({}), 'constructor', 'code', 'status', 'disableAutoSerializing', 'name', 'value', 'header', 'headers', 'type', 'contentType', ')3!>"P\'2#8:"2$:>%"0&P\'2\'!0(P"0)P&2*P&\'J2+!0,P"2-!0-P&2.!0/5'];
|
|
323
323
|
class HtmlResponse extends BaseResponse {
|
|
324
324
|
constructor(html, statusCode) {
|
|
325
325
|
super(statusCode);
|
|
@@ -336,7 +336,7 @@ class JSONResponse extends BaseResponse {
|
|
|
336
336
|
}
|
|
337
337
|
exports.JSONResponse = JSONResponse;
|
|
338
338
|
JSONResponse.__type = ['json', 'statusCode', 'constructor', 'P"2!:\'2"8"0#5'];
|
|
339
|
-
const __ΩSupportedHttpResult = [() => JSONResponse, () => HtmlResponse, () => model_1.HttpResponse, () => Redirect, () => __ΩError, 'P-,\'&P7!P7"P7
|
|
339
|
+
const __ΩSupportedHttpResult = [() => JSONResponse, () => HtmlResponse, () => model_1.HttpResponse, () => http_1.ServerResponse, () => Redirect, () => __ΩError, 'P-,\'&P7!P7"P7#P7$P7%Wn&J'];
|
|
340
340
|
exports.__ΩSupportedHttpResult = __ΩSupportedHttpResult;
|
|
341
341
|
const __ΩHttpResultFormatterContext = [() => model_1.HttpRequest, 'request', () => model_1.HttpResponse, 'response', () => router_1.RouteConfig, 'route', 'PP7!4"P7#4$P7%4&8M'];
|
|
342
342
|
exports.__ΩHttpResultFormatterContext = __ΩHttpResultFormatterContext;
|
package/dist/esm/src/http.js
CHANGED
|
@@ -299,7 +299,7 @@ export class BaseResponse {
|
|
|
299
299
|
return this;
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
BaseResponse.__type = ['autoSerializing', function () { return true; }, '_statusCode', '_headers', () => ({}), 'constructor', 'code', 'status', 'disableAutoSerializing', 'name', 'value', 'header', 'headers', 'type', 'contentType', ')3!>"P\'2#8
|
|
302
|
+
BaseResponse.__type = ['autoSerializing', function () { return true; }, '_statusCode', '_headers', () => ({}), 'constructor', 'code', 'status', 'disableAutoSerializing', 'name', 'value', 'header', 'headers', 'type', 'contentType', ')3!>"P\'2#8:"2$:>%"0&P\'2\'!0(P"0)P&2*P&\'J2+!0,P"2-!0-P&2.!0/5'];
|
|
303
303
|
export class HtmlResponse extends BaseResponse {
|
|
304
304
|
constructor(html, statusCode) {
|
|
305
305
|
super(statusCode);
|
|
@@ -314,7 +314,7 @@ export class JSONResponse extends BaseResponse {
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
JSONResponse.__type = ['json', 'statusCode', 'constructor', 'P"2!:\'2"8"0#5'];
|
|
317
|
-
const __ΩSupportedHttpResult = [() => JSONResponse, () => HtmlResponse, () => HttpResponse, () => Redirect, () => __ΩError, 'P-,\'&P7!P7"P7
|
|
317
|
+
const __ΩSupportedHttpResult = [() => JSONResponse, () => HtmlResponse, () => HttpResponse, () => ServerResponse, () => Redirect, () => __ΩError, 'P-,\'&P7!P7"P7#P7$P7%Wn&J'];
|
|
318
318
|
export { __ΩSupportedHttpResult as __ΩSupportedHttpResult };
|
|
319
319
|
const __ΩHttpResultFormatterContext = [() => HttpRequest, 'request', () => HttpResponse, 'response', () => RouteConfig, 'route', 'PP7!4"P7#4$P7%4&8M'];
|
|
320
320
|
export { __ΩHttpResultFormatterContext as __ΩHttpResultFormatterContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepkit/http",
|
|
3
|
-
"version": "1.0.1-alpha.
|
|
3
|
+
"version": "1.0.1-alpha.70",
|
|
4
4
|
"description": "Deepkit HTTP server and router.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"send": "^0.17.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@deepkit/app": "^1.0.1-alpha.
|
|
41
|
+
"@deepkit/app": "^1.0.1-alpha.70",
|
|
42
42
|
"@deepkit/core": "^1.0.1-alpha.65",
|
|
43
|
-
"@deepkit/event": "^1.0.1-alpha.
|
|
44
|
-
"@deepkit/injector": "^1.0.1-alpha.
|
|
43
|
+
"@deepkit/event": "^1.0.1-alpha.70",
|
|
44
|
+
"@deepkit/injector": "^1.0.1-alpha.70",
|
|
45
45
|
"@deepkit/logger": "^1.0.1-alpha.65",
|
|
46
|
-
"@deepkit/stopwatch": "^1.0.1-alpha.
|
|
47
|
-
"@deepkit/template": "^1.0.1-alpha.
|
|
48
|
-
"@deepkit/type": "^1.0.1-alpha.
|
|
49
|
-
"@deepkit/workflow": "^1.0.1-alpha.
|
|
46
|
+
"@deepkit/stopwatch": "^1.0.1-alpha.70",
|
|
47
|
+
"@deepkit/template": "^1.0.1-alpha.70",
|
|
48
|
+
"@deepkit/type": "^1.0.1-alpha.70",
|
|
49
|
+
"@deepkit/workflow": "^1.0.1-alpha.70",
|
|
50
50
|
"@types/node": "14.14.28",
|
|
51
51
|
"@types/send": "^0.14.6"
|
|
52
52
|
},
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"**/tests/**/*.spec.ts"
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "faeaa99b94e02341127b747e9f05103b7651b79a"
|
|
63
63
|
}
|