@sebspark/openapi-core 1.4.0 → 1.4.1
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.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosError } from 'axios';
|
|
2
|
-
import { OutgoingHttpHeaders } from 'http';
|
|
2
|
+
import { OutgoingHttpHeaders } from 'node:http';
|
|
3
3
|
import { RetrySettings } from '@sebspark/retry';
|
|
4
4
|
import { Request, Response, NextFunction } from 'express';
|
|
5
5
|
|
|
@@ -144,7 +144,7 @@ declare const fromAxiosError: (axiosError: AxiosError) => HttpError;
|
|
|
144
144
|
|
|
145
145
|
type Empty = Record<never, never>;
|
|
146
146
|
type Serialized<T> = {
|
|
147
|
-
[P in keyof T]: T[P] extends Date ? string : T[P] extends Array<infer U> ? Array<Serialized<U>> : T[P] extends (...args: any) => any ? T[P] : T[P] extends object ? Serialized<T[P]> : T[P];
|
|
147
|
+
[P in keyof T]: T[P] extends Date ? string : T[P] extends Date | undefined ? string | undefined : T[P] extends Array<infer U> ? Array<Serialized<U>> : T[P] extends (...args: any) => any ? T[P] : T[P] extends object ? Serialized<T[P]> : T[P] extends object | undefined ? Serialized<NonNullable<T[P]>> | undefined : T[P];
|
|
148
148
|
};
|
|
149
149
|
type PartiallySerialized<T> = T | Serialized<T>;
|
|
150
150
|
type LowerCaseHeaders<T> = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosError } from 'axios';
|
|
2
|
-
import { OutgoingHttpHeaders } from 'http';
|
|
2
|
+
import { OutgoingHttpHeaders } from 'node:http';
|
|
3
3
|
import { RetrySettings } from '@sebspark/retry';
|
|
4
4
|
import { Request, Response, NextFunction } from 'express';
|
|
5
5
|
|
|
@@ -144,7 +144,7 @@ declare const fromAxiosError: (axiosError: AxiosError) => HttpError;
|
|
|
144
144
|
|
|
145
145
|
type Empty = Record<never, never>;
|
|
146
146
|
type Serialized<T> = {
|
|
147
|
-
[P in keyof T]: T[P] extends Date ? string : T[P] extends Array<infer U> ? Array<Serialized<U>> : T[P] extends (...args: any) => any ? T[P] : T[P] extends object ? Serialized<T[P]> : T[P];
|
|
147
|
+
[P in keyof T]: T[P] extends Date ? string : T[P] extends Date | undefined ? string | undefined : T[P] extends Array<infer U> ? Array<Serialized<U>> : T[P] extends (...args: any) => any ? T[P] : T[P] extends object ? Serialized<T[P]> : T[P] extends object | undefined ? Serialized<NonNullable<T[P]>> | undefined : T[P];
|
|
148
148
|
};
|
|
149
149
|
type PartiallySerialized<T> = T | Serialized<T>;
|
|
150
150
|
type LowerCaseHeaders<T> = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebspark/openapi-core",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@sebspark/retry": "*",
|
|
23
|
-
"axios": "1.6.
|
|
23
|
+
"axios": "1.6.8"
|
|
24
24
|
}
|
|
25
25
|
}
|