@readyfor/api-client-base 0.208.0 → 0.210.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/dist/{chunk-L2MQCMVH.mjs → chunk-5ZI7SAUQ.mjs} +1 -1
- package/dist/{chunk-FPT75RJM.mjs → chunk-DH33ZDBG.mjs} +2 -2
- package/dist/{chunk-R2UFZQ2K.mjs → chunk-JOSDYCJN.mjs} +1 -1
- package/dist/react/ApiClientConfigProvider.js +2 -2
- package/dist/react/ApiClientConfigProvider.mjs +2 -2
- package/dist/react/index.js +2 -2
- package/dist/react/index.mjs +3 -3
- package/dist/react/swr.js +2 -2
- package/dist/react/swr.mjs +1 -1
- package/dist/react/useApiClientConfig.mjs +3 -3
- package/package.json +2 -2
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
var abortMiddleware = (useSWRNext) => (key, fetcher, config) => {
|
|
4
4
|
const ctrlRef = useRef(void 0);
|
|
5
|
-
const extendedFetcher = fetcher ? (key2) => {
|
|
5
|
+
const extendedFetcher = fetcher ? (key2, params) => {
|
|
6
6
|
ctrlRef.current?.abort();
|
|
7
7
|
ctrlRef.current = new AbortController();
|
|
8
|
-
return fetcher(key2, { signal: ctrlRef.current.signal });
|
|
8
|
+
return fetcher(key2, { ...params, signal: ctrlRef.current.signal });
|
|
9
9
|
} : fetcher;
|
|
10
10
|
return useSWRNext(key, extendedFetcher, config);
|
|
11
11
|
};
|
|
@@ -57,10 +57,10 @@ var import_swr = require("swr");
|
|
|
57
57
|
var import_react = require("react");
|
|
58
58
|
var abortMiddleware = (useSWRNext) => (key, fetcher, config) => {
|
|
59
59
|
const ctrlRef = (0, import_react.useRef)(void 0);
|
|
60
|
-
const extendedFetcher = fetcher ? (key2) => {
|
|
60
|
+
const extendedFetcher = fetcher ? (key2, params) => {
|
|
61
61
|
ctrlRef.current?.abort();
|
|
62
62
|
ctrlRef.current = new AbortController();
|
|
63
|
-
return fetcher(key2, { signal: ctrlRef.current.signal });
|
|
63
|
+
return fetcher(key2, { ...params, signal: ctrlRef.current.signal });
|
|
64
64
|
} : fetcher;
|
|
65
65
|
return useSWRNext(key, extendedFetcher, config);
|
|
66
66
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApiClientConfigProvider,
|
|
3
3
|
useApiClientConfigContext
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5ZI7SAUQ.mjs";
|
|
5
|
+
import "../chunk-DH33ZDBG.mjs";
|
|
6
6
|
import "../chunk-472P3XVV.mjs";
|
|
7
7
|
import "../chunk-3SEO7S3Q.mjs";
|
|
8
8
|
export {
|
package/dist/react/index.js
CHANGED
|
@@ -63,10 +63,10 @@ var import_swr = require("swr");
|
|
|
63
63
|
var import_react = require("react");
|
|
64
64
|
var abortMiddleware = (useSWRNext) => (key, fetcher, config) => {
|
|
65
65
|
const ctrlRef = (0, import_react.useRef)(void 0);
|
|
66
|
-
const extendedFetcher = fetcher ? (key2) => {
|
|
66
|
+
const extendedFetcher = fetcher ? (key2, params) => {
|
|
67
67
|
ctrlRef.current?.abort();
|
|
68
68
|
ctrlRef.current = new AbortController();
|
|
69
|
-
return fetcher(key2, { signal: ctrlRef.current.signal });
|
|
69
|
+
return fetcher(key2, { ...params, signal: ctrlRef.current.signal });
|
|
70
70
|
} : fetcher;
|
|
71
71
|
return useSWRNext(key, extendedFetcher, config);
|
|
72
72
|
};
|
package/dist/react/index.mjs
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
useApiClientConfig,
|
|
3
3
|
useApiClientConfigWithSelector,
|
|
4
4
|
useRequestInit
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JOSDYCJN.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ApiClientConfigProvider,
|
|
8
8
|
useApiClientConfigContext
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-5ZI7SAUQ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
createSwrConfig
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-DH33ZDBG.mjs";
|
|
13
13
|
import "../chunk-472P3XVV.mjs";
|
|
14
14
|
import "../chunk-3SEO7S3Q.mjs";
|
|
15
15
|
export {
|
package/dist/react/swr.js
CHANGED
|
@@ -26,10 +26,10 @@ module.exports = __toCommonJS(swr_exports);
|
|
|
26
26
|
var import_react = require("react");
|
|
27
27
|
var abortMiddleware = (useSWRNext) => (key, fetcher, config) => {
|
|
28
28
|
const ctrlRef = (0, import_react.useRef)(void 0);
|
|
29
|
-
const extendedFetcher = fetcher ? (key2) => {
|
|
29
|
+
const extendedFetcher = fetcher ? (key2, params) => {
|
|
30
30
|
ctrlRef.current?.abort();
|
|
31
31
|
ctrlRef.current = new AbortController();
|
|
32
|
-
return fetcher(key2, { signal: ctrlRef.current.signal });
|
|
32
|
+
return fetcher(key2, { ...params, signal: ctrlRef.current.signal });
|
|
33
33
|
} : fetcher;
|
|
34
34
|
return useSWRNext(key, extendedFetcher, config);
|
|
35
35
|
};
|
package/dist/react/swr.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
useApiClientConfig,
|
|
3
3
|
useApiClientConfigWithSelector,
|
|
4
4
|
useRequestInit
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-JOSDYCJN.mjs";
|
|
6
|
+
import "../chunk-5ZI7SAUQ.mjs";
|
|
7
|
+
import "../chunk-DH33ZDBG.mjs";
|
|
8
8
|
import "../chunk-472P3XVV.mjs";
|
|
9
9
|
import "../chunk-3SEO7S3Q.mjs";
|
|
10
10
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@readyfor/api-client-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.210.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"src"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "18ccc1a020eb888fe9e7a0aa4461acce1bcd122e"
|
|
67
67
|
}
|