@tsed/platform-router 8.0.0-alpha.3 → 8.0.0-alpha.5
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.
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.formatMethod = void 0;
|
|
4
4
|
const schema_1 = require("@tsed/schema");
|
|
5
5
|
function formatMethod(method) {
|
|
6
|
-
return (method === schema_1.
|
|
6
|
+
return (method === schema_1.OperationVerbs.CUSTOM ? "use" : method || "use").toLowerCase();
|
|
7
7
|
}
|
|
8
8
|
exports.formatMethod = formatMethod;
|
|
9
9
|
//# sourceMappingURL=formatMethod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatMethod.js","sourceRoot":"","sources":["../../../src/utils/formatMethod.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"formatMethod.js","sourceRoot":"","sources":["../../../src/utils/formatMethod.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAE5C,SAAgB,YAAY,CAAC,MAA0B;IACrD,OAAO,CAAC,MAAM,KAAK,uBAAc,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;AACpF,CAAC;AAFD,oCAEC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OperationVerbs } from "@tsed/schema";
|
|
2
2
|
export function formatMethod(method) {
|
|
3
|
-
return (method ===
|
|
3
|
+
return (method === OperationVerbs.CUSTOM ? "use" : method || "use").toLowerCase();
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=formatMethod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatMethod.js","sourceRoot":"","sources":["../../../src/utils/formatMethod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"formatMethod.js","sourceRoot":"","sources":["../../../src/utils/formatMethod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAE5C,MAAM,UAAU,YAAY,CAAC,MAA0B;IACrD,OAAO,CAAC,MAAM,KAAK,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;AACpF,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/platform-router",
|
|
3
3
|
"description": "Router",
|
|
4
4
|
"type": "commonjs",
|
|
5
|
-
"version": "8.0.0-alpha.
|
|
5
|
+
"version": "8.0.0-alpha.5",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/cjs/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
@@ -26,25 +26,25 @@
|
|
|
26
26
|
"tslib": "2.6.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@tsed/barrels": "8.0.0-alpha.
|
|
30
|
-
"@tsed/core": "8.0.0-alpha.
|
|
31
|
-
"@tsed/di": "8.0.0-alpha.
|
|
32
|
-
"@tsed/exceptions": "8.0.0-alpha.
|
|
33
|
-
"@tsed/json-mapper": "8.0.0-alpha.
|
|
34
|
-
"@tsed/platform-params": "8.0.0-alpha.
|
|
35
|
-
"@tsed/schema": "8.0.0-alpha.
|
|
36
|
-
"@tsed/typescript": "8.0.0-alpha.
|
|
29
|
+
"@tsed/barrels": "8.0.0-alpha.5",
|
|
30
|
+
"@tsed/core": "8.0.0-alpha.5",
|
|
31
|
+
"@tsed/di": "8.0.0-alpha.5",
|
|
32
|
+
"@tsed/exceptions": "8.0.0-alpha.5",
|
|
33
|
+
"@tsed/json-mapper": "8.0.0-alpha.5",
|
|
34
|
+
"@tsed/platform-params": "8.0.0-alpha.5",
|
|
35
|
+
"@tsed/schema": "8.0.0-alpha.5",
|
|
36
|
+
"@tsed/typescript": "8.0.0-alpha.5",
|
|
37
37
|
"eslint": "^8.57.0",
|
|
38
38
|
"typescript": "4.9.5",
|
|
39
39
|
"vitest": "2.0.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@tsed/core": "8.0.0-alpha.
|
|
43
|
-
"@tsed/di": "8.0.0-alpha.
|
|
44
|
-
"@tsed/exceptions": "8.0.0-alpha.
|
|
45
|
-
"@tsed/json-mapper": "8.0.0-alpha.
|
|
46
|
-
"@tsed/platform-params": "8.0.0-alpha.
|
|
47
|
-
"@tsed/schema": "8.0.0-alpha.
|
|
42
|
+
"@tsed/core": "8.0.0-alpha.5",
|
|
43
|
+
"@tsed/di": "8.0.0-alpha.5",
|
|
44
|
+
"@tsed/exceptions": "8.0.0-alpha.5",
|
|
45
|
+
"@tsed/json-mapper": "8.0.0-alpha.5",
|
|
46
|
+
"@tsed/platform-params": "8.0.0-alpha.5",
|
|
47
|
+
"@tsed/schema": "8.0.0-alpha.5"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"@tsed/core": {
|