@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-HKKQOEV3.js.map
791
+ //# sourceMappingURL=chunk-4GZUUWYJ.js.map
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  prepareAuth,
7
7
  prepareParams,
8
8
  prepareServer
9
- } from "./chunk-HKKQOEV3.js";
9
+ } from "./chunk-4GZUUWYJ.js";
10
10
  import {
11
11
  __name
12
12
  } from "./chunk-7QVYU63E.js";
package/dist/lib/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  prepareAuth,
5
5
  prepareParams,
6
6
  prepareServer
7
- } from "../chunk-HKKQOEV3.js";
7
+ } from "../chunk-4GZUUWYJ.js";
8
8
  import "../chunk-7QVYU63E.js";
9
9
  export {
10
10
  getJSONSchemaDefaults,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bfra.me/api-core",
3
- "version": "0.1.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": "^23.2.0",
43
- "caseless": "^0.12.0",
44
- "datauri": "^4.1.0",
45
- "fetch-har": "^11.0.1",
46
- "json-schema-to-ts": "^3.0.0",
47
- "json-schema-traverse": "^1.0.0",
48
- "lodash.merge": "^4.6.2",
49
- "oas": "^24.0.0",
50
- "remove-undefined-objects": "^5.0.0"
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": "^5.12.0",
53
+ "@readme/oas-examples": "5.18.2",
54
54
  "@types/caseless": "0.12.5",
55
- "@types/lodash.merge": "^4.6.9",
55
+ "@types/lodash.merge": "4.6.9",
56
56
  "@vitest/coverage-v8": "2.1.3",
57
- "fetch-mock": "^11.1.3",
58
- "get-stream": "^9.0.1",
59
- "typescript": "5.6.2",
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/test-utils": "0.1.0"
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"