@or-sdk/base
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -17,4 +17,4 @@ import { Method } from 'axios'; | ||
method?: Method; | ||
params?: any; | ||
data?: any; | ||
params?: unknown; | ||
data?: unknown; | ||
signal?: AbortSignal; | ||
@@ -21,0 +21,0 @@ } |
@@ -1,2 +0,2 @@ | ||
declare function paramsSerializer(params: any): string; | ||
declare function paramsSerializer(params: unknown): string; | ||
export default paramsSerializer; |
{ | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"name": "@or-sdk/base", | ||
@@ -31,3 +31,3 @@ "main": "dist/cjs/index.js", | ||
}, | ||
"gitHead": "1ff2df6f74e5cc7ceacdc3f8eafeeed9f417a882" | ||
"gitHead": "26a6532bede3f10b83865957ae21e4d19240019f" | ||
} |
@@ -39,4 +39,4 @@ import { Method } from 'axios'; | ||
method?: Method; | ||
params?: any; | ||
data?: any; | ||
params?: unknown; | ||
data?: unknown; | ||
signal?: AbortSignal; | ||
@@ -43,0 +43,0 @@ } |
import { stringify } from 'qs'; | ||
function paramsSerializer(params: any): string { | ||
function paramsSerializer(params: unknown): string { | ||
return stringify(params, { arrayFormat: 'brackets' }); | ||
@@ -5,0 +5,0 @@ } |
@@ -1,1 +0,1 @@ | ||
export default async (delay: number): Promise<void> => new Promise((res) => { setTimeout(res, delay) }); | ||
export default async (delay: number): Promise<void> => new Promise((res) => { setTimeout(res, delay); }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
37727