@yamato-daiwa/express-extensions 1.2.2 → 1.2.3
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.
|
@@ -8,6 +8,7 @@ const routing_controllers_1 = require("routing-controllers");
|
|
|
8
8
|
const es_extensions_1 = require("@yamato-daiwa/es-extensions");
|
|
9
9
|
const qs_1 = __importDefault(require("qs"));
|
|
10
10
|
class QueryParametersProcessor {
|
|
11
|
+
static defaultDeserializer = qs_1.default.parse;
|
|
11
12
|
static setDefaultDeserializer(deserializer) {
|
|
12
13
|
QueryParametersProcessor.defaultDeserializer = deserializer;
|
|
13
14
|
}
|
|
@@ -43,9 +44,14 @@ class QueryParametersProcessor {
|
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
exports.QueryParametersProcessor = QueryParametersProcessor;
|
|
46
|
-
QueryParametersProcessor.defaultDeserializer = qs_1.default.parse;
|
|
47
47
|
(function (QueryParametersProcessor) {
|
|
48
48
|
class QueryParametersDeserializingError extends routing_controllers_1.HttpError {
|
|
49
|
+
static NAME = "QueryParametersDeserializingError";
|
|
50
|
+
static localization = {
|
|
51
|
+
defaultTitle: "Query Parameters Deserializing Failed",
|
|
52
|
+
description: "The error has occurred during deserializing of query parameters"
|
|
53
|
+
};
|
|
54
|
+
args;
|
|
49
55
|
constructor(argumentsForInternalLogging = []) {
|
|
50
56
|
super(es_extensions_1.HTTP_StatusCodes.internalServerError);
|
|
51
57
|
Object.setPrototypeOf(this, QueryParametersDeserializingError.prototype);
|
|
@@ -62,10 +68,5 @@ QueryParametersProcessor.defaultDeserializer = qs_1.default.parse;
|
|
|
62
68
|
};
|
|
63
69
|
}
|
|
64
70
|
}
|
|
65
|
-
QueryParametersDeserializingError.NAME = "QueryParametersDeserializingError";
|
|
66
|
-
QueryParametersDeserializingError.localization = {
|
|
67
|
-
defaultTitle: "Query Parameters Deserializing Failed",
|
|
68
|
-
description: "The error has occurred during deserializing of query parameters"
|
|
69
|
-
};
|
|
70
71
|
QueryParametersProcessor.QueryParametersDeserializingError = QueryParametersDeserializingError;
|
|
71
72
|
})(QueryParametersProcessor || (exports.QueryParametersProcessor = QueryParametersProcessor = {}));
|
package/README.md
CHANGED
|
@@ -450,7 +450,9 @@ export default class UserController {
|
|
|
450
450
|
willBeFirstAmongOnesOfSameType,
|
|
451
451
|
currentContOfUsersOfSameType
|
|
452
452
|
}: Readonly<{
|
|
453
|
-
|
|
453
|
+
userType: UserTypes;
|
|
454
|
+
willBeFirstAmongOnesOfSameType: boolean;
|
|
455
|
+
currentContOfUsersOfSameType: number;
|
|
454
456
|
}>
|
|
455
457
|
): Promise<EditorForNewUserMVC_FragmentVariables> {
|
|
456
458
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/express-extensions",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Additional functionality for Express.js and also \"routing-controllers\" aimed to reduce the routine code.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nodejs",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@types/express": "5.0.6",
|
|
39
|
-
"@types/express-session": "1.
|
|
40
|
-
"@yamato-daiwa/es-extensions": "1.8.
|
|
41
|
-
"fundamental-constants": "0.
|
|
42
|
-
"qs": "6.15.
|
|
39
|
+
"@types/express-session": "1.19.0",
|
|
40
|
+
"@yamato-daiwa/es-extensions": "1.8.7",
|
|
41
|
+
"fundamental-constants": "0.9.0",
|
|
42
|
+
"qs": "6.15.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@yamato-daiwa/style_guides": "0.
|
|
45
|
+
"@yamato-daiwa/style_guides": "0.14.2",
|
|
46
46
|
"body-parser": "2.2.2",
|
|
47
47
|
"express": "5.1.0",
|
|
48
48
|
"express-session": "1.19.0",
|
|
49
49
|
"rimraf": "6.1.3",
|
|
50
50
|
"routing-controllers": "0.11.3",
|
|
51
|
-
"typescript": "
|
|
51
|
+
"typescript": "6.0.3"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"Rebuild Distributable Without Preliminary Cleaning": "tsc",
|
|
55
|
-
"Rebuild Distributable": "rimraf Distributable && tsc",
|
|
55
|
+
"Rebuild Distributable": "rimraf --glob Distributable/* && tsc",
|
|
56
56
|
"Rebuild Distributable and Realize Alpha": "npm run \"Rebuild Distributable\" && npm publish --tag alpha",
|
|
57
57
|
"Rebuild Distributable and Realize RC": "npm run \"Rebuild Distributable\" && npm publish --tag rc"
|
|
58
58
|
}
|