@sebspark/openapi-core 2.1.0 → 2.1.2
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.ts +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -186,8 +186,8 @@ type RequestOptions = {
|
|
|
186
186
|
type ArrayFormat = 'indices' | 'brackets' | 'repeat' | 'comma';
|
|
187
187
|
type ClientOptions = RequestOptions & {
|
|
188
188
|
arrayFormat?: ArrayFormat;
|
|
189
|
-
authorizationTokenGenerator?: (url: string
|
|
190
|
-
authorizationTokenRefresh?: (url: string
|
|
189
|
+
authorizationTokenGenerator?: (url: string) => Promise<Record<string, string>> | undefined;
|
|
190
|
+
authorizationTokenRefresh?: (url: string) => Promise<void> | undefined;
|
|
191
191
|
};
|
|
192
192
|
type BaseClient = {
|
|
193
193
|
get: <U extends string, A extends RequestArgs | never, R extends APIResponse<unknown | undefined, Record<string, string> | undefined>>(url: U, args?: A, opts?: RequestOptions) => Promise<R>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebspark/openapi-core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@types/node": "20.17.17",
|
|
20
20
|
"tsconfig": "*",
|
|
21
21
|
"tsup-node": "0.1.0",
|
|
22
|
-
"typescript": "5.
|
|
22
|
+
"typescript": "5.7.3",
|
|
23
23
|
"vitest": "3.0.8"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|