@readyfor/api-client-pigeon 0.155.0-pr912.becd9db → 0.155.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-V2EIWQUV.mjs → chunk-DX53K7VW.mjs} +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks/useV1Example.d.mts +2 -2
- package/dist/hooks/useV1Example.d.ts +2 -2
- package/dist/hooks/useV1Example.js +2 -2
- package/dist/hooks/useV1Example.mjs +1 -1
- package/package.json +10 -9
|
@@ -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
|
-
|
|
15
|
+
v1ExampleGetFetcher,
|
|
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
|
-
|
|
24
|
+
v1ExampleGetFetcher,
|
|
25
25
|
swrConfig
|
|
26
26
|
);
|
|
27
27
|
return { key, ...result };
|
package/dist/hooks/index.js
CHANGED
|
@@ -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
|
-
|
|
59
|
+
v1ExampleGetFetcher,
|
|
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
|
-
|
|
68
|
+
v1ExampleGetFetcher,
|
|
69
69
|
swrConfig
|
|
70
70
|
);
|
|
71
71
|
return { key, ...result };
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
57
|
+
v1ExampleGetFetcher,
|
|
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
|
-
|
|
66
|
+
v1ExampleGetFetcher,
|
|
67
67
|
swrConfig
|
|
68
68
|
);
|
|
69
69
|
return { key, ...result };
|
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.155.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.155.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.155.0-pr912.becd9db"
|
|
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.155.0-pr912.becd9db"
|
|
43
|
+
"zod": "^3"
|
|
41
44
|
},
|
|
42
45
|
"peerDependenciesMeta": {
|
|
43
46
|
"react": {
|
|
@@ -62,7 +65,5 @@
|
|
|
62
65
|
"src"
|
|
63
66
|
]
|
|
64
67
|
},
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
68
|
+
"gitHead": "21fc605f4dafdd6c9dce6be563d4246e4f76b359"
|
|
69
|
+
}
|