@extk/expressive 0.1.0 → 0.2.0
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/index.js +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -243,9 +243,10 @@ function buildExpressive(container, swaggerDoc) {
|
|
|
243
243
|
} else {
|
|
244
244
|
pathItem.parameters.push(...tryParsePathParameters(route));
|
|
245
245
|
}
|
|
246
|
-
swaggerDoc.paths[route]
|
|
247
|
-
[
|
|
248
|
-
}
|
|
246
|
+
if (!swaggerDoc.paths[route]) {
|
|
247
|
+
swaggerDoc.paths[route] = {};
|
|
248
|
+
}
|
|
249
|
+
swaggerDoc.paths[route][context.method] = pathItem;
|
|
249
250
|
return router;
|
|
250
251
|
}
|
|
251
252
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -178,9 +178,10 @@ function buildExpressive(container, swaggerDoc) {
|
|
|
178
178
|
} else {
|
|
179
179
|
pathItem.parameters.push(...tryParsePathParameters(route));
|
|
180
180
|
}
|
|
181
|
-
swaggerDoc.paths[route]
|
|
182
|
-
[
|
|
183
|
-
}
|
|
181
|
+
if (!swaggerDoc.paths[route]) {
|
|
182
|
+
swaggerDoc.paths[route] = {};
|
|
183
|
+
}
|
|
184
|
+
swaggerDoc.paths[route][context.method] = pathItem;
|
|
184
185
|
return router;
|
|
185
186
|
}
|
|
186
187
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extk/expressive",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -20,11 +20,13 @@
|
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "tsup",
|
|
23
|
+
"prepublishOnly": "npm run build",
|
|
23
24
|
"test": "node --import=tsx --test 'test/**/*.test.ts'",
|
|
24
25
|
"lint": "eslint ./"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@extk/eslint-config": "^0.2.0",
|
|
29
|
+
"@extk/tsconfig": "0.1.1",
|
|
28
30
|
"@types/chance": "^1.1.7",
|
|
29
31
|
"@types/express": "^5.0.1",
|
|
30
32
|
"@types/morgan": "^1.9.9",
|