@readyfor/api-client-pigeon 0.155.0 → 0.156.0-pr911.6160ee9

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.
@@ -12,7 +12,7 @@ var useV1Example = (swrConfig) => {
12
12
  const key = __internal__requestUrl("/api/v1/example");
13
13
  const result = useSWR(
14
14
  swrConfig?.shouldNotFetch ? null : key,
15
- v1ExampleGetFetcher,
15
+ buildV1ExampleGetFetcher(),
16
16
  swrConfig
17
17
  );
18
18
  return { key, ...result };
@@ -21,7 +21,7 @@ var useV1ExampleImmutable = (swrConfig) => {
21
21
  const key = __internal__requestUrl("/api/v1/example");
22
22
  const result = useSWRImmutable(
23
23
  swrConfig?.shouldNotFetch ? null : key,
24
- v1ExampleGetFetcher,
24
+ buildV1ExampleGetFetcher(),
25
25
  swrConfig
26
26
  );
27
27
  return { key, ...result };
@@ -56,7 +56,7 @@ var useV1Example = (swrConfig) => {
56
56
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
57
57
  const result = (0, import_swr.default)(
58
58
  swrConfig?.shouldNotFetch ? null : key,
59
- v1ExampleGetFetcher,
59
+ buildV1ExampleGetFetcher(),
60
60
  swrConfig
61
61
  );
62
62
  return { key, ...result };
@@ -65,7 +65,7 @@ var useV1ExampleImmutable = (swrConfig) => {
65
65
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
66
66
  const result = (0, import_immutable.default)(
67
67
  swrConfig?.shouldNotFetch ? null : key,
68
- v1ExampleGetFetcher,
68
+ buildV1ExampleGetFetcher(),
69
69
  swrConfig
70
70
  );
71
71
  return { key, ...result };
@@ -2,7 +2,7 @@ import {
2
2
  useV1Example,
3
3
  useV1ExampleImmutable,
4
4
  useV1ExampleInfinite
5
- } from "../chunk-DX53K7VW.mjs";
5
+ } from "../chunk-V2EIWQUV.mjs";
6
6
  import "../chunk-WY7GF7TX.mjs";
7
7
  import "../chunk-BPM425IG.mjs";
8
8
  import "../chunk-77MRBHHK.mjs";
@@ -6,7 +6,7 @@ import { Configuration } from '@readyfor/api-client-base/react';
6
6
  import { V1ExampleGetResponse } from '../fetch/v1Example.mjs';
7
7
  import '../schemaType.mjs';
8
8
 
9
- declare const useV1Example: (swrConfig: Configuration<V1ExampleGetResponse>) => {
9
+ declare const useV1Example: (swrConfig?: Configuration<V1ExampleGetResponse>) => {
10
10
  data: {
11
11
  value: string;
12
12
  } | undefined;
@@ -18,7 +18,7 @@ declare const useV1Example: (swrConfig: Configuration<V1ExampleGetResponse>) =>
18
18
  isLoading: boolean;
19
19
  key: string;
20
20
  };
21
- declare const useV1ExampleImmutable: (swrConfig: Configuration<V1ExampleGetResponse>) => {
21
+ declare const useV1ExampleImmutable: (swrConfig?: Configuration<V1ExampleGetResponse>) => {
22
22
  data: {
23
23
  value: string;
24
24
  } | undefined;
@@ -6,7 +6,7 @@ import { Configuration } from '@readyfor/api-client-base/react';
6
6
  import { V1ExampleGetResponse } from '../fetch/v1Example.js';
7
7
  import '../schemaType.js';
8
8
 
9
- declare const useV1Example: (swrConfig: Configuration<V1ExampleGetResponse>) => {
9
+ declare const useV1Example: (swrConfig?: Configuration<V1ExampleGetResponse>) => {
10
10
  data: {
11
11
  value: string;
12
12
  } | undefined;
@@ -18,7 +18,7 @@ declare const useV1Example: (swrConfig: Configuration<V1ExampleGetResponse>) =>
18
18
  isLoading: boolean;
19
19
  key: string;
20
20
  };
21
- declare const useV1ExampleImmutable: (swrConfig: Configuration<V1ExampleGetResponse>) => {
21
+ declare const useV1ExampleImmutable: (swrConfig?: Configuration<V1ExampleGetResponse>) => {
22
22
  data: {
23
23
  value: string;
24
24
  } | undefined;
@@ -54,7 +54,7 @@ var useV1Example = (swrConfig) => {
54
54
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
55
55
  const result = (0, import_swr.default)(
56
56
  swrConfig?.shouldNotFetch ? null : key,
57
- v1ExampleGetFetcher,
57
+ buildV1ExampleGetFetcher(),
58
58
  swrConfig
59
59
  );
60
60
  return { key, ...result };
@@ -63,7 +63,7 @@ var useV1ExampleImmutable = (swrConfig) => {
63
63
  const key = (0, import_api_client_base2.__internal__requestUrl)("/api/v1/example");
64
64
  const result = (0, import_immutable.default)(
65
65
  swrConfig?.shouldNotFetch ? null : key,
66
- v1ExampleGetFetcher,
66
+ buildV1ExampleGetFetcher(),
67
67
  swrConfig
68
68
  );
69
69
  return { key, ...result };
@@ -2,7 +2,7 @@ import {
2
2
  useV1Example,
3
3
  useV1ExampleImmutable,
4
4
  useV1ExampleInfinite
5
- } from "../chunk-DX53K7VW.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.155.0",
3
+ "version": "0.156.0-pr911.6160ee9",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -20,11 +20,7 @@
20
20
  "require": "./dist/hooks/index.js"
21
21
  }
22
22
  },
23
- "scripts": {
24
- "build": "tsup"
25
- },
26
23
  "devDependencies": {
27
- "@readyfor/api-client-base": "0.155.0",
28
24
  "@types/qs": "6.9.17",
29
25
  "@types/react": "^18.3.12",
30
26
  "@types/use-sync-external-store": "0.0.6",
@@ -32,15 +28,16 @@
32
28
  "react": "^18.3.1",
33
29
  "swr": "^2.2.5",
34
30
  "use-sync-external-store": "^1.2.2",
35
- "zod": "^3.23.8"
31
+ "zod": "^3.23.8",
32
+ "@readyfor/api-client-base": "0.156.0-pr911.6160ee9"
36
33
  },
37
34
  "peerDependencies": {
38
- "@readyfor/api-client-base": "*",
39
35
  "qs": "^6",
40
36
  "react": "^18",
41
37
  "swr": "^2",
42
38
  "use-sync-external-store": "1.2.2",
43
- "zod": "^3"
39
+ "zod": "^3",
40
+ "@readyfor/api-client-base": "0.156.0-pr911.6160ee9"
44
41
  },
45
42
  "peerDependenciesMeta": {
46
43
  "react": {
@@ -65,5 +62,7 @@
65
62
  "src"
66
63
  ]
67
64
  },
68
- "gitHead": "21fc605f4dafdd6c9dce6be563d4246e4f76b359"
69
- }
65
+ "scripts": {
66
+ "build": "tsup"
67
+ }
68
+ }