@agnostack/next-shopify 1.13.11 → 1.14.0-beta.10
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/CHANGELOG.md +96 -44
- package/dist/lib/handlers/api/graph.d.ts.map +1 -1
- package/dist/lib/handlers/api/graph.js +84 -79
- package/dist/lib/handlers/api/graph.js.map +1 -1
- package/dist/lib/handlers/api/proxy.d.ts.map +1 -1
- package/dist/lib/handlers/api/proxy.js +115 -156
- package/dist/lib/handlers/api/proxy.js.map +1 -1
- package/dist/lib/handlers/api/rest.d.ts.map +1 -1
- package/dist/lib/handlers/api/rest.js +70 -65
- package/dist/lib/handlers/api/rest.js.map +1 -1
- package/dist/lib/handlers/api/token.js +2 -3
- package/dist/lib/handlers/api/token.js.map +1 -1
- package/dist/lib/handlers/api/verifiable/index.d.ts +1 -0
- package/dist/lib/handlers/api/verifiable/index.d.ts.map +1 -0
- package/dist/lib/handlers/api/verifiable/index.js +6 -0
- package/dist/lib/handlers/api/verifiable/index.js.map +1 -0
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +5 -4
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/index.js +1 -0
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/session.d.ts.map +1 -1
- package/dist/lib/utils/session.js +2 -2
- package/dist/lib/utils/session.js.map +1 -1
- package/dist/lib/utils/verification.d.ts +2 -0
- package/dist/lib/utils/verification.d.ts.map +1 -0
- package/dist/lib/utils/verification.js +80 -0
- package/dist/lib/utils/verification.js.map +1 -0
- package/dist/react/hooks/index.d.ts +2 -0
- package/dist/react/hooks/index.d.ts.map +1 -0
- package/dist/react/hooks/index.js +5 -0
- package/dist/react/hooks/index.js.map +1 -0
- package/dist/react/hooks/useVerification.d.ts +12 -0
- package/dist/react/hooks/useVerification.d.ts.map +1 -0
- package/dist/react/hooks/useVerification.js +74 -0
- package/dist/react/hooks/useVerification.js.map +1 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +5 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/types.d.ts +1 -0
- package/dist/react/types.d.ts.map +1 -0
- package/dist/react/types.js +1 -0
- package/dist/react/types.js.map +1 -0
- package/dist/shared/datetime.d.ts +96 -0
- package/dist/shared/datetime.d.ts.map +1 -0
- package/dist/shared/datetime.js +285 -0
- package/dist/shared/datetime.js.map +1 -0
- package/dist/shared/display.d.ts +88 -23
- package/dist/shared/display.d.ts.map +1 -1
- package/dist/shared/display.js +409 -104
- package/dist/shared/display.js.map +1 -1
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/index.js +1 -0
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/shopify.d.ts +0 -6
- package/dist/shared/shopify.d.ts.map +1 -1
- package/dist/shared/shopify.js +1 -28
- package/dist/shared/shopify.js.map +1 -1
- package/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,75 +1,80 @@
|
|
|
1
|
-
|
|
1
|
+
# [1.14.0-beta.10](https://github.com/agnostack/next-shopify/compare/v1.14.0-beta.9...v1.14.0-beta.10) (2023-12-04)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* wip ([
|
|
6
|
+
* wip ([6aead6b](https://github.com/agnostack/next-shopify/commit/6aead6bf360e71eb0277713b42463b871c8c9175))
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# [1.14.0-beta.9](https://github.com/agnostack/next-shopify/compare/v1.14.0-beta.8...v1.14.0-beta.9) (2023-12-04)
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
### Bug Fixes
|
|
12
12
|
|
|
13
|
-
* wip ([
|
|
13
|
+
* wip ([7f122f5](https://github.com/agnostack/next-shopify/commit/7f122f5ea42da4fb90c2f192f8db3ad7530270d4))
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
# [1.14.0-beta.8](https://github.com/agnostack/next-shopify/compare/v1.14.0-beta.7...v1.14.0-beta.8) (2023-12-04)
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
### Bug Fixes
|
|
19
19
|
|
|
20
|
-
* wip ([
|
|
21
|
-
* wip ([dedb65e](https://github.com/agnostack/next-shopify/commit/dedb65ebe3b8f8d5448453f3fbd0b807a123428a))
|
|
22
|
-
* wip ([2c4239b](https://github.com/agnostack/next-shopify/commit/2c4239b60e1c44419f67e1ebc45cf85452917841))
|
|
23
|
-
* wip ([dafcf36](https://github.com/agnostack/next-shopify/commit/dafcf366101eeeb89b862616bdb505e6a0fcdd0f))
|
|
24
|
-
* wip ([2f1e033](https://github.com/agnostack/next-shopify/commit/2f1e0332e8df38c91ad1e65209b6c40589d154f1))
|
|
20
|
+
* wip ([6269ccc](https://github.com/agnostack/next-shopify/commit/6269ccc0ac80e47d75e8dd491af68b758e34d91a))
|
|
25
21
|
|
|
26
|
-
|
|
22
|
+
# [1.14.0-beta.7](https://github.com/agnostack/next-shopify/compare/v1.14.0-beta.6...v1.14.0-beta.7) (2023-12-04)
|
|
27
23
|
|
|
28
24
|
|
|
29
25
|
### Bug Fixes
|
|
30
26
|
|
|
31
|
-
* wip ([
|
|
27
|
+
* wip ([88ff531](https://github.com/agnostack/next-shopify/commit/88ff531191e82c7f0735257f9cc98b2eea4b7092))
|
|
32
28
|
|
|
33
|
-
|
|
29
|
+
# [1.14.0-beta.6](https://github.com/agnostack/next-shopify/compare/v1.14.0-beta.5...v1.14.0-beta.6) (2023-12-04)
|
|
34
30
|
|
|
35
31
|
|
|
36
32
|
### Bug Fixes
|
|
37
33
|
|
|
38
|
-
* wip ([
|
|
34
|
+
* wip ([bb5fa6a](https://github.com/agnostack/next-shopify/commit/bb5fa6a859ea8358fb4683c1f6d7d77f994f2d1e))
|
|
39
35
|
|
|
40
|
-
|
|
36
|
+
# [1.14.0-beta.5](https://github.com/agnostack/next-shopify/compare/v1.14.0-beta.4...v1.14.0-beta.5) (2023-12-04)
|
|
41
37
|
|
|
42
38
|
|
|
43
39
|
### Bug Fixes
|
|
44
40
|
|
|
45
|
-
* wip ([
|
|
41
|
+
* wip ([40a4d13](https://github.com/agnostack/next-shopify/commit/40a4d13b1186042e2c1983a826f04a742448e745))
|
|
46
42
|
|
|
47
|
-
|
|
43
|
+
# [1.14.0-beta.4](https://github.com/agnostack/next-shopify/compare/v1.14.0-beta.3...v1.14.0-beta.4) (2023-12-04)
|
|
48
44
|
|
|
49
45
|
|
|
50
46
|
### Bug Fixes
|
|
51
47
|
|
|
52
|
-
* wip ([
|
|
48
|
+
* wip ([789493b](https://github.com/agnostack/next-shopify/commit/789493bbaba440b63688b4e99784ea8b0c7c65c9))
|
|
53
49
|
|
|
54
|
-
## [1.13.10
|
|
50
|
+
## [1.13.10](https://github.com/agnostack/next-shopify/compare/v1.13.9...v1.13.10) (2023-12-02)
|
|
55
51
|
|
|
56
52
|
|
|
57
53
|
### Bug Fixes
|
|
58
54
|
|
|
55
|
+
* wip ([dd5746f](https://github.com/agnostack/next-shopify/commit/dd5746f77eaed59406b1981124de97199009e424))
|
|
56
|
+
* wip ([dedb65e](https://github.com/agnostack/next-shopify/commit/dedb65ebe3b8f8d5448453f3fbd0b807a123428a))
|
|
57
|
+
* wip ([2c4239b](https://github.com/agnostack/next-shopify/commit/2c4239b60e1c44419f67e1ebc45cf85452917841))
|
|
58
|
+
* wip ([dafcf36](https://github.com/agnostack/next-shopify/commit/dafcf366101eeeb89b862616bdb505e6a0fcdd0f))
|
|
59
59
|
* wip ([2f1e033](https://github.com/agnostack/next-shopify/commit/2f1e0332e8df38c91ad1e65209b6c40589d154f1))
|
|
60
60
|
|
|
61
|
-
## [1.13.
|
|
61
|
+
## [1.13.10](https://github.com/agnostack/next-shopify/compare/v1.13.9...v1.13.10) (2023-12-02)
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
### Bug Fixes
|
|
65
65
|
|
|
66
|
-
* wip ([
|
|
66
|
+
* wip ([dd5746f](https://github.com/agnostack/next-shopify/commit/dd5746f77eaed59406b1981124de97199009e424))
|
|
67
|
+
* wip ([dedb65e](https://github.com/agnostack/next-shopify/commit/dedb65ebe3b8f8d5448453f3fbd0b807a123428a))
|
|
68
|
+
* wip ([2c4239b](https://github.com/agnostack/next-shopify/commit/2c4239b60e1c44419f67e1ebc45cf85452917841))
|
|
69
|
+
* wip ([dafcf36](https://github.com/agnostack/next-shopify/commit/dafcf366101eeeb89b862616bdb505e6a0fcdd0f))
|
|
70
|
+
* wip ([2f1e033](https://github.com/agnostack/next-shopify/commit/2f1e0332e8df38c91ad1e65209b6c40589d154f1))
|
|
67
71
|
|
|
68
|
-
## [1.13.9
|
|
72
|
+
## [1.13.9](https://github.com/agnostack/next-shopify/compare/v1.13.8...v1.13.9) (2023-12-01)
|
|
69
73
|
|
|
70
74
|
|
|
71
75
|
### Bug Fixes
|
|
72
76
|
|
|
77
|
+
* wip ([dab5398](https://github.com/agnostack/next-shopify/commit/dab5398a3f20fd0c8c61289fe88011d10b762e5d))
|
|
73
78
|
* wip ([dab5398](https://github.com/agnostack/next-shopify/commit/dab5398a3f20fd0c8c61289fe88011d10b762e5d))
|
|
74
79
|
|
|
75
80
|
## [1.13.8](https://github.com/agnostack/next-shopify/compare/v1.13.7...v1.13.8) (2023-12-01)
|
|
@@ -77,57 +82,85 @@
|
|
|
77
82
|
|
|
78
83
|
### Bug Fixes
|
|
79
84
|
|
|
80
|
-
* wip ([
|
|
81
|
-
* wip ([c53a4dc](https://github.com/agnostack/next-shopify/commit/c53a4dcdffe9fc7252ad4e3584b9f8a23da6697a))
|
|
82
|
-
|
|
83
|
-
## [1.13.8-alpha.2](https://github.com/agnostack/next-shopify/compare/v1.13.8-alpha.1...v1.13.8-alpha.2) (2023-12-01)
|
|
85
|
+
* wip ([c28c0a0](https://github.com/agnostack/next-shopify/commit/c28c0a0c5416b0dcb7040fb9e12583a44916e1a1))
|
|
84
86
|
|
|
85
87
|
|
|
86
|
-
###
|
|
88
|
+
### Features
|
|
87
89
|
|
|
88
|
-
*
|
|
90
|
+
* separated out verifiable helpers ([9db80b9](https://github.com/agnostack/next-shopify/commit/9db80b90debc1712259d95afd8c82ac6822049ef))
|
|
89
91
|
|
|
90
|
-
## [1.13.
|
|
92
|
+
## [1.13.9-beta.2](https://github.com/agnostack/next-shopify/compare/v1.13.9-beta.1...v1.13.9-beta.2) (2023-12-01)
|
|
91
93
|
|
|
92
94
|
|
|
93
95
|
### Bug Fixes
|
|
94
96
|
|
|
95
|
-
* wip ([
|
|
97
|
+
* wip ([4b5f06c](https://github.com/agnostack/next-shopify/commit/4b5f06cdeb2e6faa6cfd7f40c8962b8f9312cfc3))
|
|
96
98
|
|
|
97
|
-
## [1.13.
|
|
99
|
+
## [1.13.9-beta.1](https://github.com/agnostack/next-shopify/compare/v1.13.8...v1.13.9-beta.1) (2023-12-01)
|
|
98
100
|
|
|
99
101
|
|
|
100
102
|
### Bug Fixes
|
|
101
103
|
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
+
* added react export and useVerification ([7131369](https://github.com/agnostack/next-shopify/commit/71313698da5b30b94a0b28fa9a0d6e595e16c5bd))
|
|
105
|
+
* reverted pubblic-key vs api-key ([b3b40ac](https://github.com/agnostack/next-shopify/commit/b3b40ace673090d321635e011818ea130b7ddd3c))
|
|
106
|
+
* wip ([088e2f8](https://github.com/agnostack/next-shopify/commit/088e2f84ecb27dc435f1d9a7e1a53eb955fc6fd6))
|
|
107
|
+
* wip ([b0eb414](https://github.com/agnostack/next-shopify/commit/b0eb414b9a3c3d02aaef66b72569dba6c1bdccb0))
|
|
108
|
+
* wip ([cd8d260](https://github.com/agnostack/next-shopify/commit/cd8d260f40672cc066da5695c7a72a790f71d4a1))
|
|
109
|
+
* wip ([f8d453a](https://github.com/agnostack/next-shopify/commit/f8d453a850ead76d6d2c536fe1f8f472f380c1c6))
|
|
110
|
+
* wip ([82e20e8](https://github.com/agnostack/next-shopify/commit/82e20e8e9878ac7f9424ff990e8959c3cbe66e9d))
|
|
111
|
+
* wip ([ecd3625](https://github.com/agnostack/next-shopify/commit/ecd36257e4cde1bbdea48b895934e82ecedf0612))
|
|
112
|
+
* wip ([825f688](https://github.com/agnostack/next-shopify/commit/825f688f614be631c13a70e1c652c45f742408ed))
|
|
113
|
+
* wip ([a66af1e](https://github.com/agnostack/next-shopify/commit/a66af1e574e9e1cc08b2718c4a49f46caf42db9f))
|
|
114
|
+
* wip ([ab11674](https://github.com/agnostack/next-shopify/commit/ab116749073075133350e46d272b5475bb6e9d1b))
|
|
104
115
|
|
|
105
|
-
## [1.13.
|
|
116
|
+
## [1.13.8](https://github.com/agnostack/next-shopify/compare/v1.13.7...v1.13.8) (2023-12-01)
|
|
106
117
|
|
|
107
118
|
|
|
108
119
|
### Bug Fixes
|
|
109
120
|
|
|
110
|
-
* wip ([
|
|
121
|
+
* wip ([a7931e0](https://github.com/agnostack/next-shopify/commit/a7931e064b5921e4bd469968f6a006c09cd4729d))
|
|
122
|
+
* wip ([c53a4dc](https://github.com/agnostack/next-shopify/commit/c53a4dcdffe9fc7252ad4e3584b9f8a23da6697a))
|
|
111
123
|
|
|
112
|
-
## [1.13.7
|
|
124
|
+
## [1.13.7](https://github.com/agnostack/next-shopify/compare/v1.13.6...v1.13.7) (2023-12-01)
|
|
113
125
|
|
|
114
126
|
|
|
115
127
|
### Bug Fixes
|
|
116
128
|
|
|
117
|
-
*
|
|
129
|
+
* added react export and useVerification ([7131369](https://github.com/agnostack/next-shopify/commit/71313698da5b30b94a0b28fa9a0d6e595e16c5bd))
|
|
130
|
+
* reverted pubblic-key vs api-key ([b3b40ac](https://github.com/agnostack/next-shopify/commit/b3b40ace673090d321635e011818ea130b7ddd3c))
|
|
131
|
+
* wip ([088e2f8](https://github.com/agnostack/next-shopify/commit/088e2f84ecb27dc435f1d9a7e1a53eb955fc6fd6))
|
|
132
|
+
* wip ([b0eb414](https://github.com/agnostack/next-shopify/commit/b0eb414b9a3c3d02aaef66b72569dba6c1bdccb0))
|
|
133
|
+
* wip ([cd8d260](https://github.com/agnostack/next-shopify/commit/cd8d260f40672cc066da5695c7a72a790f71d4a1))
|
|
134
|
+
* wip ([f8d453a](https://github.com/agnostack/next-shopify/commit/f8d453a850ead76d6d2c536fe1f8f472f380c1c6))
|
|
135
|
+
* wip ([82e20e8](https://github.com/agnostack/next-shopify/commit/82e20e8e9878ac7f9424ff990e8959c3cbe66e9d))
|
|
136
|
+
* wip ([ecd3625](https://github.com/agnostack/next-shopify/commit/ecd36257e4cde1bbdea48b895934e82ecedf0612))
|
|
137
|
+
* wip ([825f688](https://github.com/agnostack/next-shopify/commit/825f688f614be631c13a70e1c652c45f742408ed))
|
|
138
|
+
* wip ([a66af1e](https://github.com/agnostack/next-shopify/commit/a66af1e574e9e1cc08b2718c4a49f46caf42db9f))
|
|
139
|
+
* wip ([ab11674](https://github.com/agnostack/next-shopify/commit/ab116749073075133350e46d272b5475bb6e9d1b))
|
|
118
140
|
|
|
119
141
|
## [1.13.6](https://github.com/agnostack/next-shopify/compare/v1.13.5...v1.13.6) (2023-12-01)
|
|
120
142
|
|
|
121
143
|
|
|
122
144
|
### Bug Fixes
|
|
123
145
|
|
|
124
|
-
*
|
|
146
|
+
* added react export and useVerification ([7131369](https://github.com/agnostack/next-shopify/commit/71313698da5b30b94a0b28fa9a0d6e595e16c5bd))
|
|
147
|
+
* reverted pubblic-key vs api-key ([b3b40ac](https://github.com/agnostack/next-shopify/commit/b3b40ace673090d321635e011818ea130b7ddd3c))
|
|
148
|
+
* wip ([088e2f8](https://github.com/agnostack/next-shopify/commit/088e2f84ecb27dc435f1d9a7e1a53eb955fc6fd6))
|
|
149
|
+
* wip ([b0eb414](https://github.com/agnostack/next-shopify/commit/b0eb414b9a3c3d02aaef66b72569dba6c1bdccb0))
|
|
150
|
+
* wip ([cd8d260](https://github.com/agnostack/next-shopify/commit/cd8d260f40672cc066da5695c7a72a790f71d4a1))
|
|
151
|
+
* wip ([f8d453a](https://github.com/agnostack/next-shopify/commit/f8d453a850ead76d6d2c536fe1f8f472f380c1c6))
|
|
152
|
+
* wip ([82e20e8](https://github.com/agnostack/next-shopify/commit/82e20e8e9878ac7f9424ff990e8959c3cbe66e9d))
|
|
153
|
+
* wip ([ecd3625](https://github.com/agnostack/next-shopify/commit/ecd36257e4cde1bbdea48b895934e82ecedf0612))
|
|
154
|
+
* wip ([825f688](https://github.com/agnostack/next-shopify/commit/825f688f614be631c13a70e1c652c45f742408ed))
|
|
155
|
+
* wip ([a66af1e](https://github.com/agnostack/next-shopify/commit/a66af1e574e9e1cc08b2718c4a49f46caf42db9f))
|
|
156
|
+
* wip ([ab11674](https://github.com/agnostack/next-shopify/commit/ab116749073075133350e46d272b5475bb6e9d1b))
|
|
125
157
|
|
|
126
|
-
## [1.13.6
|
|
158
|
+
## [1.13.6](https://github.com/agnostack/next-shopify/compare/v1.13.5...v1.13.6) (2023-12-01)
|
|
127
159
|
|
|
128
160
|
|
|
129
161
|
### Bug Fixes
|
|
130
162
|
|
|
163
|
+
* wip ([a0e6d9b](https://github.com/agnostack/next-shopify/commit/a0e6d9b293964314160a9eb8f13d7992c7116af8))
|
|
131
164
|
* wip ([a0e6d9b](https://github.com/agnostack/next-shopify/commit/a0e6d9b293964314160a9eb8f13d7992c7116af8))
|
|
132
165
|
|
|
133
166
|
## [1.13.5](https://github.com/agnostack/next-shopify/compare/v1.13.4...v1.13.5) (2023-11-30)
|
|
@@ -135,21 +168,40 @@
|
|
|
135
168
|
|
|
136
169
|
### Bug Fixes
|
|
137
170
|
|
|
138
|
-
*
|
|
139
|
-
* wip ([
|
|
171
|
+
* added react export and useVerification ([7131369](https://github.com/agnostack/next-shopify/commit/71313698da5b30b94a0b28fa9a0d6e595e16c5bd))
|
|
172
|
+
* wip ([088e2f8](https://github.com/agnostack/next-shopify/commit/088e2f84ecb27dc435f1d9a7e1a53eb955fc6fd6))
|
|
173
|
+
* wip ([b0eb414](https://github.com/agnostack/next-shopify/commit/b0eb414b9a3c3d02aaef66b72569dba6c1bdccb0))
|
|
174
|
+
* wip ([cd8d260](https://github.com/agnostack/next-shopify/commit/cd8d260f40672cc066da5695c7a72a790f71d4a1))
|
|
175
|
+
* wip ([f8d453a](https://github.com/agnostack/next-shopify/commit/f8d453a850ead76d6d2c536fe1f8f472f380c1c6))
|
|
176
|
+
* wip ([82e20e8](https://github.com/agnostack/next-shopify/commit/82e20e8e9878ac7f9424ff990e8959c3cbe66e9d))
|
|
177
|
+
* wip ([ecd3625](https://github.com/agnostack/next-shopify/commit/ecd36257e4cde1bbdea48b895934e82ecedf0612))
|
|
178
|
+
* wip ([825f688](https://github.com/agnostack/next-shopify/commit/825f688f614be631c13a70e1c652c45f742408ed))
|
|
179
|
+
* wip ([a66af1e](https://github.com/agnostack/next-shopify/commit/a66af1e574e9e1cc08b2718c4a49f46caf42db9f))
|
|
180
|
+
* wip ([ab11674](https://github.com/agnostack/next-shopify/commit/ab116749073075133350e46d272b5475bb6e9d1b))
|
|
140
181
|
|
|
141
|
-
## [1.13.
|
|
182
|
+
## [1.13.6-beta.1](https://github.com/agnostack/next-shopify/compare/v1.13.5-beta.7...v1.13.5-beta.8) (2023-11-30)
|
|
142
183
|
|
|
143
184
|
|
|
144
185
|
### Bug Fixes
|
|
145
186
|
|
|
146
|
-
* wip ([
|
|
187
|
+
* wip ([b0eb414](https://github.com/agnostack/next-shopify/commit/b0eb414b9a3c3d02aaef66b72569dba6c1bdccb0))
|
|
188
|
+
* wip ([cd8d260](https://github.com/agnostack/next-shopify/commit/cd8d260f40672cc066da5695c7a72a790f71d4a1))
|
|
189
|
+
* wip ([f8d453a](https://github.com/agnostack/next-shopify/commit/f8d453a850ead76d6d2c536fe1f8f472f380c1c6))
|
|
190
|
+
* wip ([82e20e8](https://github.com/agnostack/next-shopify/commit/82e20e8e9878ac7f9424ff990e8959c3cbe66e9d))
|
|
191
|
+
* wip ([ecd3625](https://github.com/agnostack/next-shopify/commit/ecd36257e4cde1bbdea48b895934e82ecedf0612))
|
|
192
|
+
* wip ([825f688](https://github.com/agnostack/next-shopify/commit/825f688f614be631c13a70e1c652c45f742408ed))
|
|
193
|
+
* wip ([a66af1e](https://github.com/agnostack/next-shopify/commit/a66af1e574e9e1cc08b2718c4a49f46caf42db9f))
|
|
194
|
+
* added react export and useVerification ([7131369](https://github.com/agnostack/next-shopify/commit/71313698da5b30b94a0b28fa9a0d6e595e16c5bd))
|
|
195
|
+
* wip ([ab11674](https://github.com/agnostack/next-shopify/commit/ab116749073075133350e46d272b5475bb6e9d1b))
|
|
147
196
|
|
|
148
|
-
## [1.13.5
|
|
197
|
+
## [1.13.5](https://github.com/agnostack/next-shopify/compare/v1.13.4...v1.13.5) (2023-11-30)
|
|
149
198
|
|
|
150
199
|
|
|
151
200
|
### Bug Fixes
|
|
152
201
|
|
|
202
|
+
* wip ([d0e3583](https://github.com/agnostack/next-shopify/commit/d0e35831a73f4c8ffc0a8f073a25bf37f6877502))
|
|
203
|
+
* wip ([6bc1e78](https://github.com/agnostack/next-shopify/commit/6bc1e78c764fde2673669c80ad525f733f413d7f))
|
|
204
|
+
* wip ([d0e3583](https://github.com/agnostack/next-shopify/commit/d0e35831a73f4c8ffc0a8f073a25bf37f6877502))
|
|
153
205
|
* wip ([6bc1e78](https://github.com/agnostack/next-shopify/commit/6bc1e78c764fde2673669c80ad525f733f413d7f))
|
|
154
206
|
|
|
155
207
|
## [1.13.4](https://github.com/agnostack/next-shopify/compare/v1.13.3...v1.13.4) (2023-11-29)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../src/lib/handlers/api/graph.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../../../src/lib/handlers/api/graph.js"],"names":[],"mappings":"AAmBO,yGAiHN"}
|
|
@@ -5,89 +5,94 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const shopify_api_1 = require("@shopify/shopify-api");
|
|
6
6
|
const utils_1 = require("../../utils");
|
|
7
7
|
const shared_1 = require("../../../shared");
|
|
8
|
-
const handleGraph = (serverRuntimeConfig) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
query = (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
message = error.message
|
|
8
|
+
const handleGraph = (serverRuntimeConfig) => {
|
|
9
|
+
const _getVerifiedBody = (0, utils_1.getVerifiedBody)(serverRuntimeConfig);
|
|
10
|
+
return (req, res, params) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
+
var _a, _b, _c;
|
|
12
|
+
const [requestBody, processResponse] = yield _getVerifiedBody(req, res);
|
|
13
|
+
const _d = (_a = req.query) !== null && _a !== void 0 ? _a : {}, { shop, apiVersion } = _d, _query = tslib_1.__rest(_d, ["shop", "apiVersion"]);
|
|
14
|
+
const _e = params !== null && params !== void 0 ? params : requestBody, { isOnline, query: graphQuery, variables: graphVariables, transform = (_data) => _data } = _e, graphParams = tslib_1.__rest(_e, ["isOnline", "query", "variables", "transform"]);
|
|
15
|
+
let query = _query;
|
|
16
|
+
if ((0, shared_1.isType)(query, 'string')) {
|
|
17
|
+
query = (0, shared_1.querystringToObject)(query);
|
|
18
|
+
}
|
|
19
|
+
if ((0, shared_1.stringEmpty)(shop) || (0, shared_1.stringEmpty)(graphQuery)) {
|
|
20
|
+
return res.status(400).json({ message: 'Invalid arguments' });
|
|
21
|
+
}
|
|
22
|
+
let statusCode;
|
|
23
|
+
let response;
|
|
24
|
+
let headers = {};
|
|
25
|
+
let message = 'Error handling query call';
|
|
26
|
+
try {
|
|
27
|
+
const { getVerifiedClients } = yield (0, utils_1.getShopifyHelpers)(serverRuntimeConfig, { shop });
|
|
28
|
+
const { Graphql } = yield getVerifiedClients({ req, res, shop, apiVersion, isOnline });
|
|
29
|
+
response = yield Graphql.query(Object.assign(Object.assign({ data: graphVariables ? {
|
|
30
|
+
query: graphQuery,
|
|
31
|
+
variables: graphVariables,
|
|
32
|
+
} : graphQuery }, (0, shared_1.objectNotEmpty)(query) && { query }), graphParams))
|
|
33
|
+
.then(processResponse);
|
|
34
|
+
statusCode = 200;
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
statusCode = 500;
|
|
38
|
+
// TODO: clean up to share between rest and graph (pr at least keep in sync)
|
|
39
|
+
switch (true) {
|
|
40
|
+
case error instanceof shared_1.ShopifyAuthenticationError: {
|
|
41
|
+
console.error(`${message}. Authentication Error.`, error);
|
|
42
|
+
const errorResponse = (0, utils_1.getAuthErrorResponse)(serverRuntimeConfig, { error, shop });
|
|
43
|
+
statusCode = errorResponse.statusCode;
|
|
44
|
+
message = errorResponse.message;
|
|
45
|
+
// HMMMM, should this be:
|
|
46
|
+
// message = `${message}. Authentication Error - ${errroResponse.message}.`
|
|
47
|
+
headers = errorResponse.headers;
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
case error instanceof shopify_api_1.BillingError: {
|
|
51
|
+
// HMMMM, should this be:
|
|
52
|
+
// message = `${message}. Billing Error - ${error.message}.`
|
|
53
|
+
console.error(`${message}. Billing Error - ${error.message}.`, error.errorData);
|
|
54
|
+
statusCode = 402;
|
|
55
|
+
if (error === null || error === void 0 ? void 0 : error.message) {
|
|
56
|
+
message = error.message;
|
|
57
|
+
}
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
case error instanceof shopify_api_1.GraphqlQueryError: {
|
|
61
|
+
const errorMessages = (0, shared_1.ensureArray)((_b = error.response) === null || _b === void 0 ? void 0 : _b.errors).map(({ message }) => (0, shared_1.ensureString)(message));
|
|
62
|
+
console.error(`${message}. ${errorMessages.join('. ')}.`);
|
|
63
|
+
// HMMMM, should this be:
|
|
64
|
+
// message = `${message}. ${errorMessages.join('. ')}.`
|
|
65
|
+
// TODO: why are these not sending back different error codes?
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
default: {
|
|
69
|
+
console.error(`${message}. HandleGraph Error - ${error.message}.`);
|
|
70
|
+
break;
|
|
53
71
|
}
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
case error instanceof shopify_api_1.GraphqlQueryError: {
|
|
57
|
-
const errorMessages = (0, shared_1.ensureArray)((_a = error.response) === null || _a === void 0 ? void 0 : _a.errors).map(({ message }) => (0, shared_1.ensureString)(message));
|
|
58
|
-
console.error(`${message}. ${errorMessages.join('. ')}.`);
|
|
59
|
-
// HMMMM, should this be:
|
|
60
|
-
// message = `${message}. ${errorMessages.join('. ')}.`
|
|
61
|
-
// TODO: why are these not sending back different error codes?
|
|
62
|
-
break;
|
|
63
72
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
73
|
+
}
|
|
74
|
+
Object.entries(headers).forEach(([key, value]) => {
|
|
75
|
+
res.setHeader(key, value);
|
|
76
|
+
});
|
|
77
|
+
if (!(response === null || response === void 0 ? void 0 : response.body)) {
|
|
78
|
+
return res.status(statusCode).json({ message });
|
|
79
|
+
}
|
|
80
|
+
try {
|
|
81
|
+
const responseBody = (_c = response.body.data) !== null && _c !== void 0 ? _c : response.body;
|
|
82
|
+
const [_responseData] = Object.values((0, shared_1.ensureObject)(responseBody));
|
|
83
|
+
const _f = (0, shared_1.ensureObject)(_responseData), { userErrors } = _f, responseData = tslib_1.__rest(_f, ["userErrors"]);
|
|
84
|
+
if ((0, shared_1.arrayNotEmpty)(userErrors)) {
|
|
85
|
+
const errorMessages = (0, shared_1.ensureArray)(userErrors).map(({ message }) => (0, shared_1.ensureString)(message));
|
|
86
|
+
return res.status(500).json({ message: `${message}. ${errorMessages.join('. ')}.` });
|
|
67
87
|
}
|
|
88
|
+
// NOTE: sending in both to transform in case someone needs the userErrors
|
|
89
|
+
return res.status(statusCode).json(transform(responseData, responseBody));
|
|
68
90
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
73
|
-
if (!(response === null || response === void 0 ? void 0 : response.body)) {
|
|
74
|
-
return res.status(statusCode).json({ message });
|
|
75
|
-
}
|
|
76
|
-
try {
|
|
77
|
-
const responseBody = (_b = response.body.data) !== null && _b !== void 0 ? _b : response.body;
|
|
78
|
-
const [_responseData] = Object.values((0, shared_1.ensureObject)(responseBody));
|
|
79
|
-
const _f = (0, shared_1.ensureObject)(_responseData), { userErrors } = _f, responseData = tslib_1.__rest(_f, ["userErrors"]);
|
|
80
|
-
if ((0, shared_1.arrayNotEmpty)(userErrors)) {
|
|
81
|
-
const errorMessages = (0, shared_1.ensureArray)(userErrors).map(({ message }) => (0, shared_1.ensureString)(message));
|
|
82
|
-
return res.status(500).json({ message: `${message}. ${errorMessages.join('. ')}.` });
|
|
91
|
+
catch (error) {
|
|
92
|
+
console.error(`${message}. Transformation Error.`, error);
|
|
93
|
+
return res.status(500).json({ message });
|
|
83
94
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
catch (error) {
|
|
88
|
-
console.error(`${message}. Transformation Error.`, error);
|
|
89
|
-
return res.status(500).json({ message });
|
|
90
|
-
}
|
|
91
|
-
});
|
|
95
|
+
});
|
|
96
|
+
};
|
|
92
97
|
exports.handleGraph = handleGraph;
|
|
93
98
|
//# sourceMappingURL=graph.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../../../../src/lib/handlers/api/graph.js"],"names":[],"mappings":";;;;AAAA,sDAAsE;AAEtE,
|
|
1
|
+
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../../../../src/lib/handlers/api/graph.js"],"names":[],"mappings":";;;;AAAA,sDAAsE;AAEtE,uCAIoB;AACpB,4CAUwB;AAEjB,MAAM,WAAW,GAAG,CAAC,mBAAmB,EAAE,EAAE;IACjD,MAAM,gBAAgB,GAAG,IAAA,uBAAe,EAAC,mBAAmB,CAAC,CAAA;IAE7D,OAAO,CAAO,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE;;QAChC,MAAM,CAAC,WAAW,EAAE,eAAe,CAAC,GAAG,MAAM,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;QAEvE,MAAM,KAAkC,MAAA,GAAG,CAAC,KAAK,mCAAI,EAAE,EAAjD,EAAE,IAAI,EAAE,UAAU,OAA+B,EAA1B,MAAM,sBAA7B,sBAA+B,CAAkB,CAAA;QACvD,MAAM,KAMF,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,WAAW,EANnB,EACJ,QAAQ,EACR,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,cAAc,EACzB,SAAS,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,OAEL,EADpB,WAAW,sBALV,+CAML,CAAwB,CAAA;QAEzB,IAAI,KAAK,GAAG,MAAM,CAAA;QAClB,IAAI,IAAA,eAAM,EAAC,KAAK,EAAE,QAAQ,CAAC,EAAE;YAC3B,KAAK,GAAG,IAAA,4BAAmB,EAAC,KAAK,CAAC,CAAA;SACnC;QAED,IAAI,IAAA,oBAAW,EAAC,IAAI,CAAC,IAAI,IAAA,oBAAW,EAAC,UAAU,CAAC,EAAE;YAChD,OAAO,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO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Root":"","sources":["../../../../src/lib/handlers/api/proxy.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","sourceRoot":"","sources":["../../../../src/lib/handlers/api/proxy.js"],"names":[],"mappings":"AAmCO,sHAwLN"}
|