@sebspark/openapi-client 2.2.2 → 2.3.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 CHANGED
@@ -44,6 +44,9 @@ var import_axios_auth_refresh = __toESM(require("axios-auth-refresh"));
44
44
  // src/paramsSerializer.ts
45
45
  var encodeParam = (param) => encodeURIComponent(param);
46
46
  var encodeValue = (param, encodeCommas = false) => {
47
+ if (param instanceof Date) {
48
+ return encodeURIComponent(param.toISOString());
49
+ }
47
50
  if (typeof param === "number" || typeof param === "string" || typeof param === "boolean") {
48
51
  if (encodeCommas) {
49
52
  return encodeURIComponent(param);
package/dist/index.mjs CHANGED
@@ -9,6 +9,9 @@ import createAuthRefreshInterceptor from "axios-auth-refresh";
9
9
  // src/paramsSerializer.ts
10
10
  var encodeParam = (param) => encodeURIComponent(param);
11
11
  var encodeValue = (param, encodeCommas = false) => {
12
+ if (param instanceof Date) {
13
+ return encodeURIComponent(param.toISOString());
14
+ }
12
15
  if (typeof param === "number" || typeof param === "string" || typeof param === "boolean") {
13
16
  if (encodeCommas) {
14
17
  return encodeURIComponent(param);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/openapi-client",
3
- "version": "2.2.2",
3
+ "version": "2.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -19,14 +19,14 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@sebspark/openapi-typegen": "*",
22
- "nock": "14.0.1",
22
+ "nock": "14.0.4",
23
23
  "tsconfig": "*",
24
- "vitest": "^3.0.8"
24
+ "vitest": "3.1.2"
25
25
  },
26
26
  "dependencies": {
27
27
  "@sebspark/openapi-core": "*",
28
28
  "@sebspark/retry": "*",
29
- "axios": "1.8.2",
29
+ "axios": "1.9.0",
30
30
  "axios-auth-refresh": "3.3.6"
31
31
  }
32
32
  }