@bfra.me/api-core 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -681,18 +681,22 @@ async function prepareParams(operation, body, metadata) {
|
|
681
681
|
}
|
682
682
|
switch (param.in) {
|
683
683
|
case "path":
|
684
|
+
;
|
684
685
|
params.path[paramName] = value;
|
685
686
|
if (metadata?.[paramName]) delete metadata[paramName];
|
686
687
|
break;
|
687
688
|
case "query":
|
689
|
+
;
|
688
690
|
params.query[paramName] = value;
|
689
691
|
if (metadata?.[paramName]) delete metadata[paramName];
|
690
692
|
break;
|
691
693
|
case "header":
|
694
|
+
;
|
692
695
|
params.header[paramName.toLowerCase()] = value;
|
693
696
|
if (metadataHeaderParam && metadata?.[metadataHeaderParam]) delete metadata[metadataHeaderParam];
|
694
697
|
break;
|
695
698
|
case "cookie":
|
699
|
+
;
|
696
700
|
params.cookie[paramName] = value;
|
697
701
|
if (metadata?.[paramName]) delete metadata[paramName];
|
698
702
|
break;
|
@@ -724,6 +728,7 @@ async function prepareParams(operation, body, metadata) {
|
|
724
728
|
}
|
725
729
|
}
|
726
730
|
}
|
731
|
+
;
|
727
732
|
[
|
728
733
|
"body",
|
729
734
|
"cookie",
|
@@ -783,4 +788,4 @@ export {
|
|
783
788
|
prepareParams,
|
784
789
|
prepareServer
|
785
790
|
};
|
786
|
-
//# sourceMappingURL=chunk-
|
791
|
+
//# sourceMappingURL=chunk-4GZUUWYJ.js.map
|
package/dist/index.js
CHANGED
package/dist/lib/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bfra.me/api-core",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.2",
|
4
4
|
"description": "The magic behind `api` 🧙",
|
5
5
|
"homepage": "https://api.readme.dev",
|
6
6
|
"bugs": {
|
@@ -39,26 +39,28 @@
|
|
39
39
|
"!**/*.map"
|
40
40
|
],
|
41
41
|
"dependencies": {
|
42
|
-
"@readme/oas-to-har": "
|
43
|
-
"caseless": "
|
44
|
-
"datauri": "
|
45
|
-
"fetch-har": "
|
46
|
-
"json-schema-to-ts": "
|
47
|
-
"json-schema-traverse": "
|
48
|
-
"lodash.merge": "
|
49
|
-
"oas": "
|
50
|
-
"remove-undefined-objects": "
|
42
|
+
"@readme/oas-to-har": "24.0.1",
|
43
|
+
"caseless": "0.12.0",
|
44
|
+
"datauri": "4.1.0",
|
45
|
+
"fetch-har": "11.1.1",
|
46
|
+
"json-schema-to-ts": "3.1.1",
|
47
|
+
"json-schema-traverse": "1.0.0",
|
48
|
+
"lodash.merge": "4.6.2",
|
49
|
+
"oas": "25.0.3",
|
50
|
+
"remove-undefined-objects": "5.0.0"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
53
|
-
"@readme/oas-examples": "
|
53
|
+
"@readme/oas-examples": "5.18.2",
|
54
54
|
"@types/caseless": "0.12.5",
|
55
|
-
"@types/lodash.merge": "
|
55
|
+
"@types/lodash.merge": "4.6.9",
|
56
56
|
"@vitest/coverage-v8": "2.1.3",
|
57
|
-
"fetch-mock": "
|
58
|
-
"get-stream": "
|
59
|
-
"typescript": "5.6.
|
57
|
+
"fetch-mock": "11.1.5",
|
58
|
+
"get-stream": "9.0.1",
|
59
|
+
"typescript": "5.6.3",
|
60
60
|
"vitest": "2.1.3",
|
61
|
-
"@api
|
61
|
+
"@bfra.me/api-core": "0.1.2",
|
62
|
+
"@bfra.me/eslint-config": "0.3.1",
|
63
|
+
"@api/test-utils": "0.1.1"
|
62
64
|
},
|
63
65
|
"engines": {
|
64
66
|
"node": ">=18"
|