query-harbor 0.0.7 → 0.0.8
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/hooks/apiHandler.d.ts +1 -0
- package/dist/hooks/apiHandler.d.ts.map +1 -0
- package/dist/hooks/useCookie.d.ts +1 -0
- package/dist/hooks/useCookie.d.ts.map +1 -0
- package/dist/hooks/useGlobalInfiniteQuery.d.ts +2 -1
- package/dist/hooks/useGlobalInfiniteQuery.d.ts.map +1 -0
- package/dist/hooks/useGlobalMutation.d.ts +2 -1
- package/dist/hooks/useGlobalMutation.d.ts.map +1 -0
- package/dist/hooks/useGlobalQuery.d.ts +1 -0
- package/dist/hooks/useGlobalQuery.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/package.json +5 -4
|
@@ -22,3 +22,4 @@ type ApiResponse = ApiSuccessResponse | ApiErrorResponse;
|
|
|
22
22
|
export declare const ActionHandler: ({ action, url, data, headers }: ActionHandlerParams) => Promise<AxiosResponse>;
|
|
23
23
|
export declare const APIHandler: ({ action, url, data, headers }: ActionHandlerParams) => Promise<ApiResponse>;
|
|
24
24
|
export {};
|
|
25
|
+
//# sourceMappingURL=apiHandler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apiHandler.d.ts","sourceRoot":"","sources":["../../src/hooks/apiHandler.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAGlE,UAAU,mBAAmB;IACzB,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAGD,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,IAAI,CAAC;IACb,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,gBAAgB;IACtB,MAAM,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,WAAW,GAAG,kBAAkB,GAAG,gBAAgB,CAAC;AAGzD,eAAO,MAAM,aAAa,mCAA0C,mBAAmB,KAAG,OAAO,CAAC,aAAa,CAiB9G,CAAC;AAGF,eAAO,MAAM,UAAU,mCAA0C,mBAAmB,KAAG,OAAO,CAAC,WAAW,CA8CzG,CAAC"}
|
|
@@ -22,3 +22,4 @@ export declare const useCookie: ({ cookieName }: {
|
|
|
22
22
|
setCookie: (name: string, value: import('universal-cookie').Cookie, options?: import('universal-cookie').CookieSetOptions) => void;
|
|
23
23
|
removeCookie: (name: string, options?: import('universal-cookie').CookieSetOptions) => void;
|
|
24
24
|
};
|
|
25
|
+
//# sourceMappingURL=useCookie.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCookie.d.ts","sourceRoot":"","sources":["../../src/hooks/useCookie.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,SAAS,mBAAoB;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE;;;;;;CAI/D,CAAC"}
|
|
@@ -20,9 +20,10 @@ export declare const useGlobalInfiniteQuery: <T>({ url, queryKey, methodType, da
|
|
|
20
20
|
queryData: any[];
|
|
21
21
|
isLoading: boolean;
|
|
22
22
|
isError: boolean;
|
|
23
|
-
error: Error;
|
|
23
|
+
error: Error | null;
|
|
24
24
|
fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<import('@tanstack/react-query').InfiniteData<QueryResult<T>, unknown>, Error>>;
|
|
25
25
|
hasNextPage: boolean;
|
|
26
26
|
totalCount: number;
|
|
27
27
|
};
|
|
28
28
|
export {};
|
|
29
|
+
//# sourceMappingURL=useGlobalInfiniteQuery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGlobalInfiniteQuery.d.ts","sourceRoot":"","sources":["../../src/hooks/useGlobalInfiniteQuery.ts"],"names":[],"mappings":"AAIA,UAAU,4BAA4B,CAAC,CAAC;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC9C,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AASD,UAAU,WAAW,CAAC,CAAC;IACnB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,CAAC,4DAOrC,4BAA4B,CAAC,CAAC,CAAC;;;;;;;;;CAqEjC,CAAC"}
|
|
@@ -26,7 +26,8 @@ export declare const useGlobalMutation: <T extends Record<string, any>>({ url, q
|
|
|
26
26
|
runMutation: (params?: MutationFunctionParams<T>) => void;
|
|
27
27
|
mutationLoading: boolean;
|
|
28
28
|
mutationData: any;
|
|
29
|
-
mutationError: string;
|
|
29
|
+
mutationError: string | undefined;
|
|
30
30
|
isMutationSucceeded: boolean;
|
|
31
31
|
};
|
|
32
32
|
export {};
|
|
33
|
+
//# sourceMappingURL=useGlobalMutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGlobalMutation.d.ts","sourceRoot":"","sources":["../../src/hooks/useGlobalMutation.ts"],"names":[],"mappings":"AAIA,UAAU,uBAAuB,CAAC,CAAC;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,UAAU,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IACtC,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED,UAAU,sBAAsB,CAAC,CAAC;IAC9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,YAAY,CAAC,EAAE,CAAC,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,8FAQ5D,uBAAuB,CAAC,CAAC,CAAC;2BA6FK,sBAAsB,CAAC,CAAC,CAAC;;;;;CAe1D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGlobalQuery.d.ts","sourceRoot":"","sources":["../../src/hooks/useGlobalQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK3F,UAAU,oBAAoB;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,QAAQ,CAAC;IACnB,UAAU,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC9C,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,OAAO,CAAA;CACjC;AAGD,UAAU,oBAAoB;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,EAAE,GAAG,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,eAAO,MAAM,cAAc,kFAQxB,oBAAoB,KAAG,oBAgDzB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { useGlobalQuery } from './hooks/useGlobalQuery';
|
|
|
2
2
|
export { useGlobalMutation } from './hooks/useGlobalMutation';
|
|
3
3
|
export { useGlobalInfiniteQuery } from './hooks/useGlobalInfiniteQuery';
|
|
4
4
|
export { useCookie } from './hooks/useCookie';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "query-harbor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
8
|
-
"main": "
|
|
9
|
-
"module": "
|
|
10
|
-
"types": "
|
|
8
|
+
"main": "dist/query-harbor.umd.js",
|
|
9
|
+
"module": "dist/query-harbor.es.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
11
|
"keywords": [
|
|
12
12
|
"react",
|
|
13
13
|
"react-query",
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"exports": {
|
|
31
31
|
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
32
33
|
"import": "./dist/query-harbor.es.js",
|
|
33
34
|
"require": "./dist/query-harbor.umd.js"
|
|
34
35
|
}
|