@readyfor/api-client-base 0.255.0 → 0.255.1-pr1004.bd03fea

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.
@@ -11,14 +11,14 @@ import { useSyncExternalStore } from "use-sync-external-store/shim/index.js";
11
11
  import { useSyncExternalStoreWithSelector } from "use-sync-external-store/shim/with-selector.js";
12
12
  var useApiClientConfig = () => {
13
13
  const store = useApiClientConfigContext();
14
- return useSyncExternalStore(store.subscribe, store.getState);
14
+ return useSyncExternalStore(store.subscribe, store.getState, store.getState);
15
15
  };
16
16
  var useApiClientConfigWithSelector = (selector) => {
17
17
  const store = useApiClientConfigContext();
18
18
  return useSyncExternalStoreWithSelector(
19
19
  store.subscribe,
20
20
  store.getState,
21
- null,
21
+ store.getState,
22
22
  selector
23
23
  );
24
24
  };
@@ -2,7 +2,7 @@ import {
2
2
  useApiClientConfig,
3
3
  useApiClientConfigWithSelector,
4
4
  useRequestInit
5
- } from "../chunk-X4CTIU5H.mjs";
5
+ } from "../chunk-D7M2674Q.mjs";
6
6
  import {
7
7
  ApiClientConfigProvider,
8
8
  useApiClientConfigContext
@@ -30,14 +30,14 @@ var import_shim = require("use-sync-external-store/shim/index.js");
30
30
  var import_with_selector = require("use-sync-external-store/shim/with-selector.js");
31
31
  const useApiClientConfig = () => {
32
32
  const store = (0, import_ApiClientConfigProvider.useApiClientConfigContext)();
33
- return (0, import_shim.useSyncExternalStore)(store.subscribe, store.getState);
33
+ return (0, import_shim.useSyncExternalStore)(store.subscribe, store.getState, store.getState);
34
34
  };
35
35
  const useApiClientConfigWithSelector = (selector) => {
36
36
  const store = (0, import_ApiClientConfigProvider.useApiClientConfigContext)();
37
37
  return (0, import_with_selector.useSyncExternalStoreWithSelector)(
38
38
  store.subscribe,
39
39
  store.getState,
40
- null,
40
+ store.getState,
41
41
  selector
42
42
  );
43
43
  };
@@ -2,7 +2,7 @@ import {
2
2
  useApiClientConfig,
3
3
  useApiClientConfigWithSelector,
4
4
  useRequestInit
5
- } from "../chunk-X4CTIU5H.mjs";
5
+ } from "../chunk-D7M2674Q.mjs";
6
6
  import "../chunk-T2LQ4KT5.mjs";
7
7
  import "../chunk-DH33ZDBG.mjs";
8
8
  import "../chunk-Z2IX5DM2.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-base",
3
- "version": "0.255.0",
3
+ "version": "0.255.1-pr1004.bd03fea",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -27,9 +27,6 @@
27
27
  ]
28
28
  }
29
29
  },
30
- "scripts": {
31
- "build": "tsup && resolve-tspaths"
32
- },
33
30
  "dependencies": {
34
31
  "qs": "6.14.0",
35
32
  "zod": "^3.24.1"
@@ -38,10 +35,10 @@
38
35
  "@types/qs": "6.9.18",
39
36
  "@types/react": "19.1.2",
40
37
  "@types/use-sync-external-store": "1.5.0",
41
- "react": "catalog:react19",
38
+ "react": "19.1.0",
42
39
  "resolve-tspaths": "^0.8.23",
43
- "swr": "catalog:",
44
- "use-sync-external-store": "catalog:use-sync-external-store"
40
+ "swr": "2.3.3",
41
+ "use-sync-external-store": "1.5.0"
45
42
  },
46
43
  "peerDependencies": {
47
44
  "react": ">=18.x <=19.x",
@@ -75,5 +72,7 @@
75
72
  "!src/**/*.test.tsx"
76
73
  ]
77
74
  },
78
- "gitHead": "23571d2cb46beb2c5bf8e20da24ea6dd2bafd8af"
79
- }
75
+ "scripts": {
76
+ "build": "tsup && resolve-tspaths"
77
+ }
78
+ }