@readyfor/api-client-pigeon 0.157.0-pr916.931c3b9 → 0.158.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.
@@ -7,24 +7,21 @@ import useSWRImmutable from "swr/immutable";
7
7
  import useSWRInfinite from "swr/infinite";
8
8
  import useSWR from "swr";
9
9
  import { __internal__requestUrl } from "@readyfor/api-client-base";
10
- import { useRequestInit } from "@readyfor/api-client-base/react";
11
10
  var v1ExampleGetFetcher = buildV1ExampleGetFetcher();
12
11
  var useV1Example = (swrConfig) => {
13
12
  const key = __internal__requestUrl("/api/v1/example");
14
- const requestInit = useRequestInit();
15
13
  const result = useSWR(
16
14
  swrConfig?.shouldNotFetch ? null : key,
17
- buildV1ExampleGetFetcher(requestInit),
15
+ buildV1ExampleGetFetcher(),
18
16
  swrConfig
19
17
  );
20
18
  return { key, ...result };
21
19
  };
22
20
  var useV1ExampleImmutable = (swrConfig) => {
23
21
  const key = __internal__requestUrl("/api/v1/example");
24
- const requestInit = useRequestInit();
25
22
  const result = useSWRImmutable(
26
23
  swrConfig?.shouldNotFetch ? null : key,
27
- buildV1ExampleGetFetcher(requestInit),
24
+ buildV1ExampleGetFetcher(),
28
25
  swrConfig
29
26
  );
30
27
  return { key, ...result };
@@ -41,7 +41,6 @@ var import_immutable = __toESM(require("swr/immutable"));
41
41
  var import_infinite = __toESM(require("swr/infinite"));
42
42
  var import_swr = __toESM(require("swr"));
43
43
  var import_api_client_base2 = require("@readyfor/api-client-base");
44
- var import_react = require("@readyfor/api-client-base/react");
45
44
 
46
45
  // src/components.ts
47
46
  var import_zod = require("zod");
@@ -55,20 +54,18 @@ var buildV1ExampleGetFetcher = (requestInit) => (0, import_api_client_base.creat
55
54
  var v1ExampleGetFetcher = buildV1ExampleGetFetcher();
56
55
  var useV1Example = (swrConfig) => {
57
56
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
58
- const requestInit = (0, import_react.useRequestInit)();
59
57
  const result = (0, import_swr.default)(
60
58
  swrConfig?.shouldNotFetch ? null : key,
61
- buildV1ExampleGetFetcher(requestInit),
59
+ buildV1ExampleGetFetcher(),
62
60
  swrConfig
63
61
  );
64
62
  return { key, ...result };
65
63
  };
66
64
  var useV1ExampleImmutable = (swrConfig) => {
67
65
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
68
- const requestInit = (0, import_react.useRequestInit)();
69
66
  const result = (0, import_immutable.default)(
70
67
  swrConfig?.shouldNotFetch ? null : key,
71
- buildV1ExampleGetFetcher(requestInit),
68
+ buildV1ExampleGetFetcher(),
72
69
  swrConfig
73
70
  );
74
71
  return { key, ...result };
@@ -2,7 +2,7 @@ import {
2
2
  useV1Example,
3
3
  useV1ExampleImmutable,
4
4
  useV1ExampleInfinite
5
- } from "../chunk-J5RHLJQH.mjs";
5
+ } from "../chunk-V2EIWQUV.mjs";
6
6
  import "../chunk-WY7GF7TX.mjs";
7
7
  import "../chunk-BPM425IG.mjs";
8
8
  import "../chunk-77MRBHHK.mjs";
@@ -39,7 +39,6 @@ var import_immutable = __toESM(require("swr/immutable"));
39
39
  var import_infinite = __toESM(require("swr/infinite"));
40
40
  var import_swr = __toESM(require("swr"));
41
41
  var import_api_client_base2 = require("@readyfor/api-client-base");
42
- var import_react = require("@readyfor/api-client-base/react");
43
42
 
44
43
  // src/components.ts
45
44
  var import_zod = require("zod");
@@ -53,20 +52,18 @@ var buildV1ExampleGetFetcher = (requestInit) => (0, import_api_client_base.creat
53
52
  var v1ExampleGetFetcher = buildV1ExampleGetFetcher();
54
53
  var useV1Example = (swrConfig) => {
55
54
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
56
- const requestInit = (0, import_react.useRequestInit)();
57
55
  const result = (0, import_swr.default)(
58
56
  swrConfig?.shouldNotFetch ? null : key,
59
- buildV1ExampleGetFetcher(requestInit),
57
+ buildV1ExampleGetFetcher(),
60
58
  swrConfig
61
59
  );
62
60
  return { key, ...result };
63
61
  };
64
62
  var useV1ExampleImmutable = (swrConfig) => {
65
63
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
66
- const requestInit = (0, import_react.useRequestInit)();
67
64
  const result = (0, import_immutable.default)(
68
65
  swrConfig?.shouldNotFetch ? null : key,
69
- buildV1ExampleGetFetcher(requestInit),
66
+ buildV1ExampleGetFetcher(),
70
67
  swrConfig
71
68
  );
72
69
  return { key, ...result };
@@ -2,7 +2,7 @@ import {
2
2
  useV1Example,
3
3
  useV1ExampleImmutable,
4
4
  useV1ExampleInfinite
5
- } from "../chunk-J5RHLJQH.mjs";
5
+ } from "../chunk-V2EIWQUV.mjs";
6
6
  import "../chunk-WY7GF7TX.mjs";
7
7
  import "../chunk-BPM425IG.mjs";
8
8
  import "../chunk-77MRBHHK.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readyfor/api-client-pigeon",
3
- "version": "0.157.0-pr916.931c3b9",
3
+ "version": "0.158.0",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,7 +20,11 @@
20
20
  "require": "./dist/hooks/index.js"
21
21
  }
22
22
  },
23
+ "scripts": {
24
+ "build": "tsup"
25
+ },
23
26
  "devDependencies": {
27
+ "@readyfor/api-client-base": "0.158.0",
24
28
  "@types/qs": "6.9.17",
25
29
  "@types/react": "^18.3.12",
26
30
  "@types/use-sync-external-store": "0.0.6",
@@ -28,16 +32,15 @@
28
32
  "react": "^18.3.1",
29
33
  "swr": "^2.2.5",
30
34
  "use-sync-external-store": "^1.2.2",
31
- "zod": "^3.23.8",
32
- "@readyfor/api-client-base": "0.157.0-pr916.931c3b9"
35
+ "zod": "^3.23.8"
33
36
  },
34
37
  "peerDependencies": {
38
+ "@readyfor/api-client-base": "*",
35
39
  "qs": "^6",
36
40
  "react": "^18",
37
41
  "swr": "^2",
38
42
  "use-sync-external-store": "1.2.2",
39
- "zod": "^3",
40
- "@readyfor/api-client-base": "0.157.0-pr916.931c3b9"
43
+ "zod": "^3"
41
44
  },
42
45
  "peerDependenciesMeta": {
43
46
  "react": {
@@ -62,7 +65,5 @@
62
65
  "src"
63
66
  ]
64
67
  },
65
- "scripts": {
66
- "build": "tsup"
67
- }
68
- }
68
+ "gitHead": "022fb39a23ef52195d65be92a61ece07edd24a51"
69
+ }