nuxt-custom-fetch 1.1.5 → 1.1.6

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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  ```ts
10
10
  {
11
11
  baseURL?: string
12
- paramsHandler?: (params: FetchOptions['params']) => FetchOptions & HTTPConfig
12
+ paramsHandler?: (params: Record<string, any>) => Record<string, any>
13
13
  offline?: () => void
14
14
  }
15
15
  ```
@@ -136,7 +136,7 @@ const ajax = new CustomFetch({
136
136
  }
137
137
  })
138
138
 
139
- export const getInfo = (params: FetchOptions['params']) =>
139
+ export const getInfo = (params: Record<string, any>) =>
140
140
  ajax.get<DataT>('/api/get-ip', { params }, options?: AsyncDataOptions<DataT>)
141
141
  ```
142
142
 
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-custom-fetch",
3
3
  "configKey": "customFetch",
4
- "version": "1.1.5"
4
+ "version": "1.1.6"
5
5
  }
@@ -24,7 +24,7 @@ export type FetchMethod = 'options' | 'GET' | 'POST' | 'get' | 'HEAD' | 'PATCH'
24
24
  export interface HTTPConfig extends Omit<FetchOptions, 'method'> {
25
25
  baseURL?: string;
26
26
  useParamsHandler?: boolean;
27
- paramsHandler?: (params: Record<any, string>) => Record<any, string>;
27
+ paramsHandler?: (params: Record<string, any>) => Record<string, any>;
28
28
  offline?: () => void;
29
29
  method?: FetchMethod;
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-custom-fetch",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {