frappe-react-sdk 1.13.0 → 1.15.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/README.md +4 -7
- package/dist/frappe-react-sdk.es.js +3282 -2917
- package/dist/frappe-react-sdk.umd.js +11 -8
- package/dist/lib/index.d.ts +2 -4
- package/package.json +3 -3
package/dist/lib/index.d.ts
CHANGED
|
@@ -253,7 +253,6 @@ export declare const useFrappeDeleteDoc: () => {
|
|
|
253
253
|
*
|
|
254
254
|
* @param doctype - The doctype to fetch
|
|
255
255
|
* @param filters - filters to apply to the query
|
|
256
|
-
* @param cache - Whether to cache the result or not. Defaults to false
|
|
257
256
|
* @param debug - Whether to log debug messages or not. Defaults to false
|
|
258
257
|
* @param options [Optional] SWRConfiguration options for fetching data
|
|
259
258
|
* @returns an object (SWRResponse) with the following properties: data (number), error, isValidating, and mutate
|
|
@@ -263,12 +262,11 @@ export declare const useFrappeDeleteDoc: () => {
|
|
|
263
262
|
* const { data, error, isLoading, mutate } = useFrappeGetDocCount("User")
|
|
264
263
|
*
|
|
265
264
|
*/
|
|
266
|
-
export declare const useFrappeGetDocCount: <T = any>(doctype: string, filters?: Filter<T>[] | undefined,
|
|
265
|
+
export declare const useFrappeGetDocCount: <T = any>(doctype: string, filters?: Filter<T>[] | undefined, debug?: boolean, swrKey?: Key, options?: SWRConfiguration) => SWRResponse<number, Error>;
|
|
267
266
|
/**
|
|
268
267
|
* Hook to prefetch the number of documents from the database
|
|
269
268
|
* @param doctype - The doctype to fetch
|
|
270
269
|
* @param filters - filters to apply to the query
|
|
271
|
-
* @param cache - Whether to cache the result or not. Defaults to false
|
|
272
270
|
* @param debug - Whether to log debug messages or not. Defaults to false
|
|
273
271
|
* @param swrKey - The SWRKey to use for caching the result - optional
|
|
274
272
|
* @returns A function to prefetch the number of documents
|
|
@@ -282,7 +280,7 @@ export declare const useFrappeGetDocCount: <T = any>(doctype: string, filters?:
|
|
|
282
280
|
* preloadCount()
|
|
283
281
|
* }
|
|
284
282
|
*/
|
|
285
|
-
export declare const useFrappePrefetchDocCount: <T = any>(doctype: string, filters?: Filter<T>[] | undefined,
|
|
283
|
+
export declare const useFrappePrefetchDocCount: <T = any>(doctype: string, filters?: Filter<T>[] | undefined, debug?: boolean, swrKey?: Key) => () => void;
|
|
286
284
|
/**
|
|
287
285
|
* Hook to make a GET request to the server
|
|
288
286
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frappe-react-sdk",
|
|
3
3
|
"description": "React hooks for Frappe Framework",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.15.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "The Commit Company",
|
|
@@ -82,8 +82,8 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"frappe-js-sdk": "^1.
|
|
85
|
+
"frappe-js-sdk": "^1.13.0",
|
|
86
86
|
"socket.io-client": "4.7.1",
|
|
87
|
-
"swr": "^2.
|
|
87
|
+
"swr": "^2.4.1"
|
|
88
88
|
}
|
|
89
89
|
}
|