@spinajs/http 2.0.148 → 2.0.150
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/cjs/response-methods/badRequest.d.ts +2 -2
- package/lib/cjs/response-methods/badRequest.d.ts.map +1 -1
- package/lib/cjs/response-methods/badRequest.js +2 -1
- package/lib/cjs/response-methods/badRequest.js.map +1 -1
- package/lib/cjs/response-methods/conflict.d.ts +2 -2
- package/lib/cjs/response-methods/conflict.d.ts.map +1 -1
- package/lib/cjs/response-methods/conflict.js +2 -1
- package/lib/cjs/response-methods/conflict.js.map +1 -1
- package/lib/cjs/response-methods/errorResponse.d.ts +8 -0
- package/lib/cjs/response-methods/errorResponse.d.ts.map +1 -0
- package/lib/cjs/response-methods/errorResponse.js +25 -0
- package/lib/cjs/response-methods/errorResponse.js.map +1 -0
- package/lib/cjs/response-methods/forbidden.d.ts +2 -2
- package/lib/cjs/response-methods/forbidden.d.ts.map +1 -1
- package/lib/cjs/response-methods/forbidden.js +2 -1
- package/lib/cjs/response-methods/forbidden.js.map +1 -1
- package/lib/cjs/response-methods/noContent.d.ts +2 -2
- package/lib/cjs/response-methods/noContent.d.ts.map +1 -1
- package/lib/cjs/response-methods/noContent.js +2 -1
- package/lib/cjs/response-methods/noContent.js.map +1 -1
- package/lib/cjs/response-methods/notAcceptable.d.ts +2 -2
- package/lib/cjs/response-methods/notAcceptable.d.ts.map +1 -1
- package/lib/cjs/response-methods/notAcceptable.js +2 -1
- package/lib/cjs/response-methods/notAcceptable.js.map +1 -1
- package/lib/cjs/response-methods/notAllowed.d.ts +2 -2
- package/lib/cjs/response-methods/notAllowed.d.ts.map +1 -1
- package/lib/cjs/response-methods/notAllowed.js +2 -1
- package/lib/cjs/response-methods/notAllowed.js.map +1 -1
- package/lib/cjs/response-methods/notFound.d.ts +2 -2
- package/lib/cjs/response-methods/notFound.d.ts.map +1 -1
- package/lib/cjs/response-methods/notFound.js +2 -1
- package/lib/cjs/response-methods/notFound.js.map +1 -1
- package/lib/cjs/response-methods/serverError.d.ts +2 -2
- package/lib/cjs/response-methods/serverError.d.ts.map +1 -1
- package/lib/cjs/response-methods/serverError.js +2 -1
- package/lib/cjs/response-methods/serverError.js.map +1 -1
- package/lib/cjs/response-methods/unauthorized.d.ts +2 -2
- package/lib/cjs/response-methods/unauthorized.d.ts.map +1 -1
- package/lib/cjs/response-methods/unauthorized.js +2 -1
- package/lib/cjs/response-methods/unauthorized.js.map +1 -1
- package/lib/cjs/response-methods/validationError.d.ts +2 -2
- package/lib/cjs/response-methods/validationError.d.ts.map +1 -1
- package/lib/cjs/response-methods/validationError.js +2 -1
- package/lib/cjs/response-methods/validationError.js.map +1 -1
- package/lib/cjs/route-args/FromForm.d.ts.map +1 -1
- package/lib/cjs/route-args/FromForm.js +8 -1
- package/lib/cjs/route-args/FromForm.js.map +1 -1
- package/lib/cjs/route-args/RouteArgs.d.ts +4 -1
- package/lib/cjs/route-args/RouteArgs.d.ts.map +1 -1
- package/lib/cjs/route-args/RouteArgs.js +32 -18
- package/lib/cjs/route-args/RouteArgs.js.map +1 -1
- package/lib/mjs/response-methods/badRequest.d.ts +2 -2
- package/lib/mjs/response-methods/badRequest.d.ts.map +1 -1
- package/lib/mjs/response-methods/badRequest.js +3 -2
- package/lib/mjs/response-methods/badRequest.js.map +1 -1
- package/lib/mjs/response-methods/conflict.d.ts +2 -2
- package/lib/mjs/response-methods/conflict.d.ts.map +1 -1
- package/lib/mjs/response-methods/conflict.js +3 -2
- package/lib/mjs/response-methods/conflict.js.map +1 -1
- package/lib/mjs/response-methods/errorResponse.d.ts +8 -0
- package/lib/mjs/response-methods/errorResponse.d.ts.map +1 -0
- package/lib/mjs/response-methods/errorResponse.js +18 -0
- package/lib/mjs/response-methods/errorResponse.js.map +1 -0
- package/lib/mjs/response-methods/forbidden.d.ts +2 -2
- package/lib/mjs/response-methods/forbidden.d.ts.map +1 -1
- package/lib/mjs/response-methods/forbidden.js +3 -2
- package/lib/mjs/response-methods/forbidden.js.map +1 -1
- package/lib/mjs/response-methods/noContent.d.ts +2 -2
- package/lib/mjs/response-methods/noContent.d.ts.map +1 -1
- package/lib/mjs/response-methods/noContent.js +3 -2
- package/lib/mjs/response-methods/noContent.js.map +1 -1
- package/lib/mjs/response-methods/notAcceptable.d.ts +2 -2
- package/lib/mjs/response-methods/notAcceptable.d.ts.map +1 -1
- package/lib/mjs/response-methods/notAcceptable.js +3 -2
- package/lib/mjs/response-methods/notAcceptable.js.map +1 -1
- package/lib/mjs/response-methods/notAllowed.d.ts +2 -2
- package/lib/mjs/response-methods/notAllowed.d.ts.map +1 -1
- package/lib/mjs/response-methods/notAllowed.js +3 -2
- package/lib/mjs/response-methods/notAllowed.js.map +1 -1
- package/lib/mjs/response-methods/notFound.d.ts +2 -2
- package/lib/mjs/response-methods/notFound.d.ts.map +1 -1
- package/lib/mjs/response-methods/notFound.js +3 -2
- package/lib/mjs/response-methods/notFound.js.map +1 -1
- package/lib/mjs/response-methods/serverError.d.ts +2 -2
- package/lib/mjs/response-methods/serverError.d.ts.map +1 -1
- package/lib/mjs/response-methods/serverError.js +3 -2
- package/lib/mjs/response-methods/serverError.js.map +1 -1
- package/lib/mjs/response-methods/unauthorized.d.ts +2 -2
- package/lib/mjs/response-methods/unauthorized.d.ts.map +1 -1
- package/lib/mjs/response-methods/unauthorized.js +3 -2
- package/lib/mjs/response-methods/unauthorized.js.map +1 -1
- package/lib/mjs/response-methods/validationError.d.ts +2 -2
- package/lib/mjs/response-methods/validationError.d.ts.map +1 -1
- package/lib/mjs/response-methods/validationError.js +3 -2
- package/lib/mjs/response-methods/validationError.js.map +1 -1
- package/lib/mjs/route-args/FromForm.d.ts.map +1 -1
- package/lib/mjs/route-args/FromForm.js +8 -1
- package/lib/mjs/route-args/FromForm.js.map +1 -1
- package/lib/mjs/route-args/RouteArgs.d.ts +4 -1
- package/lib/mjs/route-args/RouteArgs.d.ts.map +1 -1
- package/lib/mjs/route-args/RouteArgs.js +32 -18
- package/lib/mjs/route-args/RouteArgs.js.map +1 -1
- package/lib/tsconfig.cjs.tsbuildinfo +1 -1
- package/lib/tsconfig.mjs.tsbuildinfo +1 -1
- package/lib/views/responses/validationError.pug +1 -1
- package/package.json +10 -10
|
@@ -20,6 +20,7 @@ class RouteArgs {
|
|
|
20
20
|
async tryHydrateParam(arg, routeParameter, route) {
|
|
21
21
|
let result = null;
|
|
22
22
|
let schema = null;
|
|
23
|
+
let hydrator = null;
|
|
23
24
|
// first validate route parameter / body params etc
|
|
24
25
|
if (route.Schema && route.Schema[routeParameter.Name]) {
|
|
25
26
|
schema = route.Schema[routeParameter.Name];
|
|
@@ -32,22 +33,33 @@ class RouteArgs {
|
|
|
32
33
|
}
|
|
33
34
|
else {
|
|
34
35
|
schema = this.Validator.extractSchema(routeParameter.RuntimeType);
|
|
35
|
-
if (!schema) {
|
|
36
|
+
if (!schema && routeParameter.RuntimeType.prototype) {
|
|
36
37
|
schema = this.Validator.extractSchema(routeParameter.RuntimeType.prototype);
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
|
-
|
|
40
|
-
// raw data
|
|
41
|
-
if (schema) {
|
|
42
|
-
this.Validator.validate(schema, arg);
|
|
43
|
-
}
|
|
44
|
-
result = await this.tryHydrateObject(arg, routeParameter);
|
|
45
|
-
if (!result) {
|
|
40
|
+
if (this.isRuntimeType(routeParameter)) {
|
|
46
41
|
result = this.fromRuntimeType(routeParameter, arg);
|
|
42
|
+
if (schema) {
|
|
43
|
+
this.Validator.validate(schema, result);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
hydrator = this.getHydrator(routeParameter);
|
|
48
|
+
result = hydrator ? arg : this.tryExtractObject(arg, routeParameter);
|
|
49
|
+
if (schema) {
|
|
50
|
+
this.Validator.validate(schema, arg);
|
|
51
|
+
}
|
|
52
|
+
if (hydrator) {
|
|
53
|
+
result = await this.tryHydrateObject(result, routeParameter, hydrator);
|
|
54
|
+
}
|
|
47
55
|
}
|
|
48
56
|
return result;
|
|
49
57
|
}
|
|
50
|
-
async tryHydrateObject(arg,
|
|
58
|
+
async tryHydrateObject(arg, route, hydrator) {
|
|
59
|
+
const hInstance = await di_1.DI.resolve(hydrator.hydrator, hydrator.options);
|
|
60
|
+
return await hInstance.hydrate(arg, route);
|
|
61
|
+
}
|
|
62
|
+
getHydrator(param) {
|
|
51
63
|
let hydrator = null;
|
|
52
64
|
if (param.RuntimeType instanceof di_1.TypedArray) {
|
|
53
65
|
hydrator = Reflect.getMetadata('custom:arg_hydrator', param.RuntimeType.Type);
|
|
@@ -55,22 +67,24 @@ class RouteArgs {
|
|
|
55
67
|
else {
|
|
56
68
|
hydrator = Reflect.getMetadata('custom:arg_hydrator', param.RuntimeType);
|
|
57
69
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
else if ((0, di_1.isClass)(param.RuntimeType)) {
|
|
70
|
+
return hydrator;
|
|
71
|
+
}
|
|
72
|
+
tryExtractObject(arg, param) {
|
|
73
|
+
if ((0, di_1.isClass)(param.RuntimeType)) {
|
|
63
74
|
return new param.RuntimeType(lodash_1.default.isString(arg) ? JSON.parse(arg) : arg);
|
|
64
75
|
}
|
|
65
|
-
else if (param.RuntimeType.name === 'Object' || param.RuntimeType.name === 'Array') {
|
|
66
|
-
return lodash_1.default.isString(arg) ? JSON.parse(arg) : arg;
|
|
67
|
-
}
|
|
68
76
|
else if (param.RuntimeType instanceof di_1.TypedArray) {
|
|
69
77
|
const type = param.RuntimeType.Type;
|
|
70
78
|
const arrData = lodash_1.default.isString(arg) ? JSON.parse(arg) : arg;
|
|
71
79
|
return arrData ? arrData.map((x) => new type(x)) : [];
|
|
72
80
|
}
|
|
73
|
-
|
|
81
|
+
else if (param.RuntimeType.name === 'Object' || param.RuntimeType.name === 'Array') {
|
|
82
|
+
return lodash_1.default.isString(arg) ? JSON.parse(arg) : arg;
|
|
83
|
+
}
|
|
84
|
+
return arg;
|
|
85
|
+
}
|
|
86
|
+
isRuntimeType(param) {
|
|
87
|
+
return ['String', 'Number', 'BigInt', 'Boolean', 'Undefined', 'Null'].indexOf(param.RuntimeType.name) !== -1;
|
|
74
88
|
}
|
|
75
89
|
fromRuntimeType(param, arg) {
|
|
76
90
|
switch (param.RuntimeType.name) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouteArgs.js","sourceRoot":"","sources":["../../../src/route-args/RouteArgs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oCAAkE;AAIlE,oDAAuB;AACvB,oDAAoD;AAapD,MAAsB,SAAS;IAQnB,KAAK,CAAC,eAAe,CAAC,GAAQ,EAAE,cAA+B,EAAE,KAAa;QACtF,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,IAAI,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"RouteArgs.js","sourceRoot":"","sources":["../../../src/route-args/RouteArgs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oCAAkE;AAIlE,oDAAuB;AACvB,oDAAoD;AAapD,MAAsB,SAAS;IAQnB,KAAK,CAAC,eAAe,CAAC,GAAQ,EAAE,cAA+B,EAAE,KAAa;QACtF,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,IAAI,QAAQ,GAAG,IAAI,CAAC;QAEpB,mDAAmD;QACnD,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;YACrD,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;SAC5C;aAAM,IAAI,cAAc,CAAC,MAAM,EAAE;YAChC,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;SAChC;aAAM,IAAI,cAAc,CAAC,gBAAgB,EAAE;YAC1C,MAAM,GAAG,cAAc,CAAC,gBAAgB,CAAC;SAC1C;aAAM;YACL,MAAM,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12 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import * as express from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
4
4
|
/**
|
|
5
5
|
* Internall response function.
|
|
6
6
|
* Returns HTTP 400 BAD REQUEST ERROR
|
|
7
7
|
* @param err - error to send
|
|
8
8
|
*/
|
|
9
|
-
export declare class BadRequest extends
|
|
9
|
+
export declare class BadRequest extends ErrorResponse {
|
|
10
10
|
constructor(data: any);
|
|
11
11
|
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badRequest.d.ts","sourceRoot":"","sources":["../../../src/response-methods/badRequest.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"badRequest.d.ts","sourceRoot":"","sources":["../../../src/response-methods/badRequest.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,qBAAa,UAAW,SAAQ,aAAa;gBAC/B,IAAI,EAAE,GAAG;IAIR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { HTTP_STATUS_CODE
|
|
1
|
+
import { HTTP_STATUS_CODE } from '../interfaces.js';
|
|
2
2
|
import { httpResponse } from '../responses.js';
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
3
4
|
/**
|
|
4
5
|
* Internall response function.
|
|
5
6
|
* Returns HTTP 400 BAD REQUEST ERROR
|
|
6
7
|
* @param err - error to send
|
|
7
8
|
*/
|
|
8
|
-
export class BadRequest extends
|
|
9
|
+
export class BadRequest extends ErrorResponse {
|
|
9
10
|
constructor(data) {
|
|
10
11
|
super(data);
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badRequest.js","sourceRoot":"","sources":["../../../src/response-methods/badRequest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"badRequest.js","sourceRoot":"","sources":["../../../src/response-methods/badRequest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,MAAM,OAAO,UAAW,SAAQ,aAAa;IAC3C,YAAY,IAAS;QACnB,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import * as express from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
4
4
|
/**
|
|
5
5
|
* Internall response function.
|
|
6
6
|
* Returns HTTP 409 Conflict
|
|
7
7
|
* @param err - error to send
|
|
8
8
|
*/
|
|
9
|
-
export declare class Conflict extends
|
|
9
|
+
export declare class Conflict extends ErrorResponse {
|
|
10
10
|
constructor(data: any);
|
|
11
11
|
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conflict.d.ts","sourceRoot":"","sources":["../../../src/response-methods/conflict.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"conflict.d.ts","sourceRoot":"","sources":["../../../src/response-methods/conflict.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,qBAAa,QAAS,SAAQ,aAAa;gBAC7B,IAAI,EAAE,GAAG;IAIR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { HTTP_STATUS_CODE
|
|
1
|
+
import { HTTP_STATUS_CODE } from '../interfaces.js';
|
|
2
2
|
import { httpResponse } from '../responses.js';
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
3
4
|
/**
|
|
4
5
|
* Internall response function.
|
|
5
6
|
* Returns HTTP 409 Conflict
|
|
6
7
|
* @param err - error to send
|
|
7
8
|
*/
|
|
8
|
-
export class Conflict extends
|
|
9
|
+
export class Conflict extends ErrorResponse {
|
|
9
10
|
constructor(data) {
|
|
10
11
|
super(data);
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conflict.js","sourceRoot":"","sources":["../../../src/response-methods/conflict.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"conflict.js","sourceRoot":"","sources":["../../../src/response-methods/conflict.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,MAAM,OAAO,QAAS,SAAQ,aAAa;IACzC,YAAY,IAAS;QACnB,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAC1F,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="qs" />
|
|
2
|
+
import * as express from 'express';
|
|
3
|
+
import { Response } from '../interfaces.js';
|
|
4
|
+
export declare class ErrorResponse extends Response {
|
|
5
|
+
constructor(error: any);
|
|
6
|
+
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=errorResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorResponse.d.ts","sourceRoot":"","sources":["../../../src/response-methods/errorResponse.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAoB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAM9D,qBAAa,aAAc,SAAQ,QAAQ;gBAC7B,KAAK,EAAE,GAAG;IAST,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTTP_STATUS_CODE, Response } from '../interfaces.js';
|
|
2
|
+
import { httpResponse } from '../responses.js';
|
|
3
|
+
import _ from 'lodash';
|
|
4
|
+
import { DI } from '@spinajs/di';
|
|
5
|
+
import { Configuration } from '@spinajs/configuration';
|
|
6
|
+
export class ErrorResponse extends Response {
|
|
7
|
+
constructor(error) {
|
|
8
|
+
super(error);
|
|
9
|
+
const isDev = DI.get(Configuration).get('configuration.isDevelopment');
|
|
10
|
+
if (isDev) {
|
|
11
|
+
this.responseData = _.omit(this.responseData, ['stack']);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
async execute(_req, _res) {
|
|
15
|
+
return await httpResponse(this.responseData, HTTP_STATUS_CODE.BAD_REQUEST, 'badRequest.pug');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=errorResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorResponse.js","sourceRoot":"","sources":["../../../src/response-methods/errorResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,YAAY,KAAU;QACpB,KAAK,CAAC,KAAK,CAAC,CAAC;QAEb,MAAM,KAAK,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;QACvE,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;SAC1D;IACH,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;IAC/F,CAAC;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import * as express from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
4
4
|
/**
|
|
5
5
|
* Internall response function.
|
|
6
6
|
* Returns HTTP 403 FORBIDDEN ERROR
|
|
7
7
|
* @param err - error to send
|
|
8
8
|
*/
|
|
9
|
-
export declare class Forbidden extends
|
|
9
|
+
export declare class Forbidden extends ErrorResponse {
|
|
10
10
|
constructor(data: any);
|
|
11
11
|
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forbidden.d.ts","sourceRoot":"","sources":["../../../src/response-methods/forbidden.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"forbidden.d.ts","sourceRoot":"","sources":["../../../src/response-methods/forbidden.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,qBAAa,SAAU,SAAQ,aAAa;gBAC9B,IAAI,EAAE,GAAG;IAIR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { HTTP_STATUS_CODE
|
|
1
|
+
import { HTTP_STATUS_CODE } from '../interfaces.js';
|
|
2
2
|
import { httpResponse } from '../responses.js';
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
3
4
|
/**
|
|
4
5
|
* Internall response function.
|
|
5
6
|
* Returns HTTP 403 FORBIDDEN ERROR
|
|
6
7
|
* @param err - error to send
|
|
7
8
|
*/
|
|
8
|
-
export class Forbidden extends
|
|
9
|
+
export class Forbidden extends ErrorResponse {
|
|
9
10
|
constructor(data) {
|
|
10
11
|
super(data);
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forbidden.js","sourceRoot":"","sources":["../../../src/response-methods/forbidden.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"forbidden.js","sourceRoot":"","sources":["../../../src/response-methods/forbidden.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,MAAM,OAAO,SAAU,SAAQ,aAAa;IAC1C,YAAY,IAAS;QACnB,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;IAC5F,CAAC;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import * as express from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
4
4
|
/**
|
|
5
5
|
* Internall response function.
|
|
6
6
|
* Returns HTTP 204 NO CONTENT
|
|
7
7
|
* @param err - error to send
|
|
8
8
|
*/
|
|
9
|
-
export declare class NoContent extends
|
|
9
|
+
export declare class NoContent extends ErrorResponse {
|
|
10
10
|
constructor(data: any);
|
|
11
11
|
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noContent.d.ts","sourceRoot":"","sources":["../../../src/response-methods/noContent.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"noContent.d.ts","sourceRoot":"","sources":["../../../src/response-methods/noContent.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AACH,qBAAa,SAAU,SAAQ,aAAa;gBAC9B,IAAI,EAAE,GAAG;IAIR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { HTTP_STATUS_CODE
|
|
1
|
+
import { HTTP_STATUS_CODE } from '../interfaces.js';
|
|
2
2
|
import { httpResponse } from '../responses.js';
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
3
4
|
/**
|
|
4
5
|
* Internall response function.
|
|
5
6
|
* Returns HTTP 204 NO CONTENT
|
|
6
7
|
* @param err - error to send
|
|
7
8
|
*/
|
|
8
|
-
export class NoContent extends
|
|
9
|
+
export class NoContent extends ErrorResponse {
|
|
9
10
|
constructor(data) {
|
|
10
11
|
super(data);
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"noContent.js","sourceRoot":"","sources":["../../../src/response-methods/noContent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"noContent.js","sourceRoot":"","sources":["../../../src/response-methods/noContent.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,OAAO,SAAU,SAAQ,aAAa;IAC1C,YAAY,IAAS;QACnB,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import * as express from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
4
4
|
/**
|
|
5
5
|
* Internall response function.
|
|
6
6
|
* Returns HTTP 406 NOT ACCEPTABLE
|
|
7
7
|
* When content requested in accept header format cannot be returned.
|
|
8
8
|
* @param err - error to send
|
|
9
9
|
*/
|
|
10
|
-
export declare class NotAcceptable extends
|
|
10
|
+
export declare class NotAcceptable extends ErrorResponse {
|
|
11
11
|
constructor(data: any);
|
|
12
12
|
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notAcceptable.d.ts","sourceRoot":"","sources":["../../../src/response-methods/notAcceptable.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"notAcceptable.d.ts","sourceRoot":"","sources":["../../../src/response-methods/notAcceptable.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,aAAa;gBAClC,IAAI,EAAE,GAAG;IAIR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { HTTP_STATUS_CODE
|
|
1
|
+
import { HTTP_STATUS_CODE } from '../interfaces.js';
|
|
2
2
|
import { httpResponse } from '../responses.js';
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
3
4
|
/**
|
|
4
5
|
* Internall response function.
|
|
5
6
|
* Returns HTTP 406 NOT ACCEPTABLE
|
|
6
7
|
* When content requested in accept header format cannot be returned.
|
|
7
8
|
* @param err - error to send
|
|
8
9
|
*/
|
|
9
|
-
export class NotAcceptable extends
|
|
10
|
+
export class NotAcceptable extends ErrorResponse {
|
|
10
11
|
constructor(data) {
|
|
11
12
|
super(data);
|
|
12
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notAcceptable.js","sourceRoot":"","sources":["../../../src/response-methods/notAcceptable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"notAcceptable.js","sourceRoot":"","sources":["../../../src/response-methods/notAcceptable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;;GAKG;AACH,MAAM,OAAO,aAAc,SAAQ,aAAa;IAC9C,YAAY,IAAS;QACnB,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,cAAc,EAAE,mBAAmB,CAAC,CAAC;IACrG,CAAC;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import * as express from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
4
4
|
/**
|
|
5
5
|
* Internall response function.
|
|
6
6
|
* Returns HTTP 403 FORBIDDEN ERROR
|
|
7
7
|
* @param err - error to send
|
|
8
8
|
*/
|
|
9
|
-
export declare class NotAllowed extends
|
|
9
|
+
export declare class NotAllowed extends ErrorResponse {
|
|
10
10
|
constructor(data: any);
|
|
11
11
|
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notAllowed.d.ts","sourceRoot":"","sources":["../../../src/response-methods/notAllowed.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"notAllowed.d.ts","sourceRoot":"","sources":["../../../src/response-methods/notAllowed.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,qBAAa,UAAW,SAAQ,aAAa;gBAC/B,IAAI,EAAE,GAAG;IAIR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { HTTP_STATUS_CODE
|
|
1
|
+
import { HTTP_STATUS_CODE } from '../interfaces.js';
|
|
2
2
|
import { httpResponse } from '../responses.js';
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
3
4
|
/**
|
|
4
5
|
* Internall response function.
|
|
5
6
|
* Returns HTTP 403 FORBIDDEN ERROR
|
|
6
7
|
* @param err - error to send
|
|
7
8
|
*/
|
|
8
|
-
export class NotAllowed extends
|
|
9
|
+
export class NotAllowed extends ErrorResponse {
|
|
9
10
|
constructor(data) {
|
|
10
11
|
super(data);
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notAllowed.js","sourceRoot":"","sources":["../../../src/response-methods/notAllowed.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"notAllowed.js","sourceRoot":"","sources":["../../../src/response-methods/notAllowed.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,MAAM,OAAO,UAAW,SAAQ,aAAa;IAC3C,YAAY,IAAS;QACnB,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;IAChG,CAAC;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import * as express from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
4
4
|
/**
|
|
5
5
|
* Internall response function.
|
|
6
6
|
* Returns HTTP 404 NOT FOUND ERROR
|
|
7
7
|
* @param err - error to send
|
|
8
8
|
*/
|
|
9
|
-
export declare class NotFound extends
|
|
9
|
+
export declare class NotFound extends ErrorResponse {
|
|
10
10
|
constructor(data?: any);
|
|
11
11
|
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notFound.d.ts","sourceRoot":"","sources":["../../../src/response-methods/notFound.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"notFound.d.ts","sourceRoot":"","sources":["../../../src/response-methods/notFound.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AACH,qBAAa,QAAS,SAAQ,aAAa;gBAC7B,IAAI,CAAC,EAAE,GAAG;IAIT,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { HTTP_STATUS_CODE
|
|
1
|
+
import { HTTP_STATUS_CODE } from '../interfaces.js';
|
|
2
2
|
import { httpResponse } from '../responses.js';
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
3
4
|
/**
|
|
4
5
|
* Internall response function.
|
|
5
6
|
* Returns HTTP 404 NOT FOUND ERROR
|
|
6
7
|
* @param err - error to send
|
|
7
8
|
*/
|
|
8
|
-
export class NotFound extends
|
|
9
|
+
export class NotFound extends ErrorResponse {
|
|
9
10
|
constructor(data) {
|
|
10
11
|
super(data);
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notFound.js","sourceRoot":"","sources":["../../../src/response-methods/notFound.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"notFound.js","sourceRoot":"","sources":["../../../src/response-methods/notFound.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,OAAO,QAAS,SAAQ,aAAa;IACzC,YAAY,IAAU;QACpB,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import * as express from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
4
4
|
/**
|
|
5
5
|
* Internall response function.
|
|
6
6
|
* Returns HTTP 500 INTERNAL SERVER ERROR
|
|
7
7
|
* @param err - error to send
|
|
8
8
|
*/
|
|
9
|
-
export declare class ServerError extends
|
|
9
|
+
export declare class ServerError extends ErrorResponse {
|
|
10
10
|
constructor(data: any);
|
|
11
11
|
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverError.d.ts","sourceRoot":"","sources":["../../../src/response-methods/serverError.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"serverError.d.ts","sourceRoot":"","sources":["../../../src/response-methods/serverError.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,qBAAa,WAAY,SAAQ,aAAa;gBAChC,IAAI,EAAE,GAAG;IAKR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { HTTP_STATUS_CODE
|
|
1
|
+
import { HTTP_STATUS_CODE } from '../interfaces.js';
|
|
2
2
|
import { httpResponse } from '../responses.js';
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
3
4
|
/**
|
|
4
5
|
* Internall response function.
|
|
5
6
|
* Returns HTTP 500 INTERNAL SERVER ERROR
|
|
6
7
|
* @param err - error to send
|
|
7
8
|
*/
|
|
8
|
-
export class ServerError extends
|
|
9
|
+
export class ServerError extends ErrorResponse {
|
|
9
10
|
constructor(data) {
|
|
10
11
|
super(data);
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverError.js","sourceRoot":"","sources":["../../../src/response-methods/serverError.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"serverError.js","sourceRoot":"","sources":["../../../src/response-methods/serverError.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,MAAM,OAAO,WAAY,SAAQ,aAAa;IAC5C,YAAY,IAAS;QACnB,KAAK,CAAC,IAAI,CAAC,CAAC;IAEd,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,EAAE,gBAAgB,CAAC,cAAc,EAAE,iBAAiB,CAAC,CAAC;IAC9G,CAAC;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import * as express from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
4
4
|
/**
|
|
5
5
|
* Internall response function.
|
|
6
6
|
* Returns HTTP 401 UNAHTORIZED response with json content
|
|
7
7
|
* @param data - data to send
|
|
8
8
|
*/
|
|
9
|
-
export declare class Unauthorized extends
|
|
9
|
+
export declare class Unauthorized extends ErrorResponse {
|
|
10
10
|
constructor(data: any);
|
|
11
11
|
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unauthorized.d.ts","sourceRoot":"","sources":["../../../src/response-methods/unauthorized.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"unauthorized.d.ts","sourceRoot":"","sources":["../../../src/response-methods/unauthorized.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,qBAAa,YAAa,SAAQ,aAAa;gBACjC,IAAI,EAAE,GAAG;IAIR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { HTTP_STATUS_CODE
|
|
1
|
+
import { HTTP_STATUS_CODE } from '../interfaces.js';
|
|
2
2
|
import { httpResponse } from '../responses.js';
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
3
4
|
/**
|
|
4
5
|
* Internall response function.
|
|
5
6
|
* Returns HTTP 401 UNAHTORIZED response with json content
|
|
6
7
|
* @param data - data to send
|
|
7
8
|
*/
|
|
8
|
-
export class Unauthorized extends
|
|
9
|
+
export class Unauthorized extends ErrorResponse {
|
|
9
10
|
constructor(data) {
|
|
10
11
|
super(data);
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unauthorized.js","sourceRoot":"","sources":["../../../src/response-methods/unauthorized.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"unauthorized.js","sourceRoot":"","sources":["../../../src/response-methods/unauthorized.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,MAAM,OAAO,YAAa,SAAQ,aAAa;IAC7C,YAAY,IAAS;QACnB,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,YAAY,EAAE,wBAAwB,CAAC,CAAC;IACxG,CAAC;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
import * as express from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
4
4
|
/**
|
|
5
5
|
* Internall response function.
|
|
6
6
|
* Returns HTTP 400 BAD REQUEST ERROR
|
|
7
7
|
* @param err - error to send
|
|
8
8
|
*/
|
|
9
|
-
export declare class ValidationError extends
|
|
9
|
+
export declare class ValidationError extends ErrorResponse {
|
|
10
10
|
constructor(data: any);
|
|
11
11
|
execute(_req: express.Request, _res: express.Response): Promise<(req: express.Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: express.Response<any, Record<string, any>>) => void>;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationError.d.ts","sourceRoot":"","sources":["../../../src/response-methods/validationError.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"validationError.d.ts","sourceRoot":"","sources":["../../../src/response-methods/validationError.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAGnC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,qBAAa,eAAgB,SAAQ,aAAa;gBACpC,IAAI,EAAE,GAAG;IAIR,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,QAAQ;CAGnE"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { HTTP_STATUS_CODE
|
|
1
|
+
import { HTTP_STATUS_CODE } from '../interfaces.js';
|
|
2
2
|
import { httpResponse } from '../responses.js';
|
|
3
|
+
import { ErrorResponse } from './errorResponse.js';
|
|
3
4
|
/**
|
|
4
5
|
* Internall response function.
|
|
5
6
|
* Returns HTTP 400 BAD REQUEST ERROR
|
|
6
7
|
* @param err - error to send
|
|
7
8
|
*/
|
|
8
|
-
export class ValidationError extends
|
|
9
|
+
export class ValidationError extends ErrorResponse {
|
|
9
10
|
constructor(data) {
|
|
10
11
|
super(data);
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationError.js","sourceRoot":"","sources":["../../../src/response-methods/validationError.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"validationError.js","sourceRoot":"","sources":["../../../src/response-methods/validationError.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;;;GAIG;AAEH,MAAM,OAAO,eAAgB,SAAQ,aAAa;IAChD,YAAY,IAAS;QACnB,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,IAAqB,EAAE,IAAsB;QAChE,OAAO,MAAM,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,gBAAgB,CAAC,WAAW,EAAE,qBAAqB,CAAC,CAAC;IACpG,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FromForm.d.ts","sourceRoot":"","sources":["../../../src/route-args/FromForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAsB,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAU,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG/D,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAIjC,UAAU,QAAQ;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;AAEhF,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;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