@agnostack/next-shopify 1.7.0-alpha.6 → 1.7.0-alpha.60

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.
Files changed (72) hide show
  1. package/dist/handlers/auth.d.ts +1 -0
  2. package/dist/handlers/auth.js +34 -0
  3. package/dist/handlers/auth.js.map +1 -0
  4. package/dist/handlers/callback.d.ts +1 -0
  5. package/dist/{helpers → handlers}/callback.js +25 -31
  6. package/dist/handlers/callback.js.map +1 -0
  7. package/dist/handlers/graph.d.ts +1 -0
  8. package/dist/handlers/graph.js +75 -0
  9. package/dist/handlers/graph.js.map +1 -0
  10. package/dist/handlers/index.d.ts +5 -1
  11. package/dist/handlers/index.js +5 -1
  12. package/dist/handlers/index.js.map +1 -1
  13. package/dist/handlers/rest.d.ts +1 -0
  14. package/dist/handlers/rest.js +83 -0
  15. package/dist/handlers/rest.js.map +1 -0
  16. package/dist/handlers/ssr.d.ts +1 -1
  17. package/dist/handlers/ssr.js +11 -17
  18. package/dist/handlers/ssr.js.map +1 -1
  19. package/dist/handlers/uninstall.d.ts +6 -0
  20. package/dist/handlers/uninstall.js +59 -0
  21. package/dist/handlers/uninstall.js.map +1 -0
  22. package/dist/index.d.ts +0 -1
  23. package/dist/index.js +0 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/utils/billing.d.ts +12 -17
  26. package/dist/utils/billing.js +44 -195
  27. package/dist/utils/billing.js.map +1 -1
  28. package/dist/utils/constants.d.ts +4 -5
  29. package/dist/utils/constants.js +4 -111
  30. package/dist/utils/constants.js.map +1 -1
  31. package/dist/utils/display.d.ts +5 -1
  32. package/dist/utils/display.js +28 -1
  33. package/dist/utils/display.js.map +1 -1
  34. package/dist/utils/firebase.d.ts +13 -6
  35. package/dist/utils/firebase.js +39 -39
  36. package/dist/utils/firebase.js.map +1 -1
  37. package/dist/utils/session.d.ts +16 -11
  38. package/dist/utils/session.js +53 -40
  39. package/dist/utils/session.js.map +1 -1
  40. package/dist/utils/shopify.d.ts +1 -7
  41. package/dist/utils/shopify.js +34 -51
  42. package/dist/utils/shopify.js.map +1 -1
  43. package/dist/withShopify.js +15 -24
  44. package/dist/withShopify.js.map +1 -1
  45. package/package.json +2 -1
  46. package/CHANGELOG.md +0 -497
  47. package/dist/handlers/api.d.ts +0 -10
  48. package/dist/handlers/api.js +0 -98
  49. package/dist/handlers/api.js.map +0 -1
  50. package/dist/helpers/auth.d.ts +0 -14
  51. package/dist/helpers/auth.js +0 -23
  52. package/dist/helpers/auth.js.map +0 -1
  53. package/dist/helpers/callback.d.ts +0 -9
  54. package/dist/helpers/callback.js.map +0 -1
  55. package/dist/helpers/graph.d.ts +0 -22
  56. package/dist/helpers/graph.js +0 -77
  57. package/dist/helpers/graph.js.map +0 -1
  58. package/dist/helpers/index.d.ts +0 -5
  59. package/dist/helpers/index.js +0 -17
  60. package/dist/helpers/index.js.map +0 -1
  61. package/dist/helpers/rest.d.ts +0 -22
  62. package/dist/helpers/rest.js +0 -71
  63. package/dist/helpers/rest.js.map +0 -1
  64. package/dist/helpers/uninstall.d.ts +0 -7
  65. package/dist/helpers/uninstall.js +0 -43
  66. package/dist/helpers/uninstall.js.map +0 -1
  67. package/dist/utils/shopify-api-node/beginAuth.d.ts +0 -6
  68. package/dist/utils/shopify-api-node/beginAuth.js +0 -45
  69. package/dist/utils/shopify-api-node/beginAuth.js.map +0 -1
  70. package/dist/utils/shopify-api-node/index.d.ts +0 -1
  71. package/dist/utils/shopify-api-node/index.js +0 -15
  72. package/dist/utils/shopify-api-node/index.js.map +0 -1
package/CHANGELOG.md DELETED
@@ -1,497 +0,0 @@
1
- # [1.7.0-alpha.6](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.5...v1.7.0-alpha.6) (2023-05-22)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * updated to add logs ([07e6d80](https://github.com/agnostack/next-shopify/commit/07e6d80743487bbb11d31ce5881ff435eaa3b154))
7
-
8
- # [1.7.0-alpha.5](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.4...v1.7.0-alpha.5) (2023-05-22)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * updates to add initializeShopify ([fa8c9c1](https://github.com/agnostack/next-shopify/commit/fa8c9c1f669d6d06916a6b41182df9282e4aeb35))
14
-
15
- # [1.7.0-alpha.4](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.3...v1.7.0-alpha.4) (2023-05-22)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * updates to webhook setup ([2411998](https://github.com/agnostack/next-shopify/commit/241199893654bd43234c771081c349ec47f9a00a))
21
-
22
- # [1.7.0-alpha.3](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.2...v1.7.0-alpha.3) (2023-05-22)
23
-
24
-
25
- ### Bug Fixes
26
-
27
- * updates APP_WEBHOOKS ([5d521f5](https://github.com/agnostack/next-shopify/commit/5d521f5eec42c9e885e4b8b1fd69ebc8345ef26f))
28
-
29
- # [1.7.0-alpha.2](https://github.com/agnostack/next-shopify/compare/v1.7.0-alpha.1...v1.7.0-alpha.2) (2023-05-22)
30
-
31
-
32
- ### Bug Fixes
33
-
34
- * updates for rawBodyConfig ([69a177b](https://github.com/agnostack/next-shopify/commit/69a177b014a1c28091047d5644f9ecee769893e8))
35
-
36
- # [1.7.0-alpha.1](https://github.com/agnostack/next-shopify/compare/v1.6.0...v1.7.0-alpha.1) (2023-05-22)
37
-
38
-
39
- ### Bug Fixes
40
-
41
- * add logging ([265411d](https://github.com/agnostack/next-shopify/commit/265411d490c58ea6bb7eef4e99af2f660f535903))
42
- * add logging ([705576c](https://github.com/agnostack/next-shopify/commit/705576cfd57e55e42e052a6c514c985d4807e751))
43
- * add logging ([de1a42a](https://github.com/agnostack/next-shopify/commit/de1a42a8d9419e368f1f03c7959b2182008484f8))
44
- * add logging ([de906bc](https://github.com/agnostack/next-shopify/commit/de906bc1c53bb925665e9b8e3fa6b0fe96d11015))
45
- * add logging ([f83f67c](https://github.com/agnostack/next-shopify/commit/f83f67c841008e89155c7daf524590c85f4434db))
46
- * add logging ([937c9b9](https://github.com/agnostack/next-shopify/commit/937c9b91c10438c770885cada2751acd41004686))
47
- * add logging ([129c949](https://github.com/agnostack/next-shopify/commit/129c9495989a3b4f0baa11a1b4fc413752af3998))
48
- * add logging ([d6ed80a](https://github.com/agnostack/next-shopify/commit/d6ed80a18daef00d78f4811d64ac166bef066261))
49
- * add logging ([d8b9c87](https://github.com/agnostack/next-shopify/commit/d8b9c878f6d547c57a601961ef74dd1d4fa99c56))
50
- * add logging ([7678d08](https://github.com/agnostack/next-shopify/commit/7678d08b51cfb5d744d61e7946f228adbc19db6f))
51
- * add logging ([6d615ed](https://github.com/agnostack/next-shopify/commit/6d615edc85b58b84e0055d04d1af6326ed4a34f0))
52
- * add logging ([cffd724](https://github.com/agnostack/next-shopify/commit/cffd7248ddf0430b7b98dffdaa9c10919dc5d641))
53
- * add logging ([c6aed0d](https://github.com/agnostack/next-shopify/commit/c6aed0d600b871bed88bcd19183e2431b675235d))
54
- * add logging ([5ddffee](https://github.com/agnostack/next-shopify/commit/5ddffeef58bc9fa7c7670bcfdd003abfe060e8f7))
55
- * add logging ([645ebcd](https://github.com/agnostack/next-shopify/commit/645ebcda460f68ac7e74f2478b08a0b2f513487b))
56
- * add logging ([323b262](https://github.com/agnostack/next-shopify/commit/323b26274ac308b42f12b4d0edc4beb64ae736d3))
57
- * add logging ([ef561cc](https://github.com/agnostack/next-shopify/commit/ef561cc4b1006aed5d8b2f58bd2feebf500a42c5))
58
- * add logging ([d1464f9](https://github.com/agnostack/next-shopify/commit/d1464f93838a404cdff02ed3d4667970d219bf88))
59
- * add logging ([327f694](https://github.com/agnostack/next-shopify/commit/327f6943b13813232d4a4c690b8b5a06a6357b77))
60
- * add logging ([96d6ee0](https://github.com/agnostack/next-shopify/commit/96d6ee097b0fa5628c8f0e1eecef07741f1a30e1))
61
- * add logging ([f64a3a0](https://github.com/agnostack/next-shopify/commit/f64a3a0914f121306c0dfb83a234635489a0950b))
62
- * add logging ([cd5bade](https://github.com/agnostack/next-shopify/commit/cd5badec1bf62e8b717862e3360d36b0822645dd))
63
- * add logging ([165e10d](https://github.com/agnostack/next-shopify/commit/165e10dc6bdb49a8d5d7e886e1fd2118a9348600))
64
- * add logging ([90f2f93](https://github.com/agnostack/next-shopify/commit/90f2f9319a2d7e59e756ea556fa6dc9526fa8ac1))
65
- * add logging ([7b3db91](https://github.com/agnostack/next-shopify/commit/7b3db91448e5c5de207cf6f4f501755b50d612ca))
66
- * add logging ([e9fc407](https://github.com/agnostack/next-shopify/commit/e9fc40732b06eae38491475c2919b445bab74c7b))
67
- * add logging ([6607c9b](https://github.com/agnostack/next-shopify/commit/6607c9b6a424a2cc66c0a906ff437da376f8ee09))
68
- * add logging ([1423104](https://github.com/agnostack/next-shopify/commit/142310458b0c10a35ceed3f93d38180b8e3a1724))
69
- * add logging ([f6660cc](https://github.com/agnostack/next-shopify/commit/f6660cc569a08fc9dc8fdabeb3b71c70d4d388d5))
70
- * add logging ([78de0db](https://github.com/agnostack/next-shopify/commit/78de0db8e187438813eda6c08a70cf24ac4f8ed3))
71
- * add logging ([6b0372a](https://github.com/agnostack/next-shopify/commit/6b0372a0280408c9db5280d57781a7c237759aeb))
72
- * add logging ([308917a](https://github.com/agnostack/next-shopify/commit/308917a5f8dcd4518a379d0e008c6668b09555d9))
73
- * add logging ([a29588d](https://github.com/agnostack/next-shopify/commit/a29588df55baed13aa76cfea155558bf7eb8f5d7))
74
- * add logging ([030fb20](https://github.com/agnostack/next-shopify/commit/030fb20dd456d08235b504c5fd818a1ab55a1670))
75
- * add logging ([68480c4](https://github.com/agnostack/next-shopify/commit/68480c41582219449918f2a8456e5d9fbdac6a82))
76
- * add logging ([c52baf1](https://github.com/agnostack/next-shopify/commit/c52baf1fa3eab2e3a05bc5ed1e1272c3053e3fdb))
77
- * add logging ([52be76a](https://github.com/agnostack/next-shopify/commit/52be76ad59f4f2f8e32cb18c1a9463f5908dc027))
78
- * add logging ([bfe8015](https://github.com/agnostack/next-shopify/commit/bfe8015cecf5be46e2d226f54bf973c3ff08c9a7))
79
- * add logging ([963f987](https://github.com/agnostack/next-shopify/commit/963f987c0ea2c3bb3c527b51b365be779fd8aa5e))
80
- * add logging ([f5f8808](https://github.com/agnostack/next-shopify/commit/f5f8808069be00a2e6406f72ef34606ded0685be))
81
- * add logging ([7b60454](https://github.com/agnostack/next-shopify/commit/7b604542595f2a3dd97b74d0b2a1f2d8721da04b))
82
- * add logging ([f7f684d](https://github.com/agnostack/next-shopify/commit/f7f684d3a0f42cedb00cbadd3a2a2ac4a712b45b))
83
- * add logging ([f0aff34](https://github.com/agnostack/next-shopify/commit/f0aff340e365d09caed8001ea912d93c91bba4cd))
84
- * add logging ([430d57e](https://github.com/agnostack/next-shopify/commit/430d57e35fabcf37676e3271e02ef48821b9ee8a))
85
- * add logging ([d73470f](https://github.com/agnostack/next-shopify/commit/d73470f995f12fb947bdfed550b64cac43f5ba93))
86
- * add logging ([481a9cb](https://github.com/agnostack/next-shopify/commit/481a9cb814410290c62c74c01acfbe76564c05f2))
87
- * add logging ([9ebb589](https://github.com/agnostack/next-shopify/commit/9ebb5893134bd5709cd229a1f1706c0268cbe4c2))
88
- * add logging ([3cf8d24](https://github.com/agnostack/next-shopify/commit/3cf8d2493bbbd7d73ca668e0852699fb9f14d50e))
89
- * add logging ([a33718e](https://github.com/agnostack/next-shopify/commit/a33718e6eca757ff340262c12242725941d3ad6b))
90
- * add logging ([36d473a](https://github.com/agnostack/next-shopify/commit/36d473ae77e8ef255f4b610ebc01a354a107157e))
91
- * add logging ([0a6848f](https://github.com/agnostack/next-shopify/commit/0a6848f1dd51cda45ba75e950bcdcb40387905dc))
92
- * add logging ([831f4d9](https://github.com/agnostack/next-shopify/commit/831f4d9cc72b4b16bf829344bdfc7a60b5c0c1d9))
93
- * add logging ([9d725f6](https://github.com/agnostack/next-shopify/commit/9d725f604de8e270ebc4aa539da0232936f3d40e))
94
- * add logging ([95718c1](https://github.com/agnostack/next-shopify/commit/95718c17c2dfec8c548004b28e652bbd31085c9c))
95
- * add logging ([37d6d95](https://github.com/agnostack/next-shopify/commit/37d6d95da5ff54eeef48a16de3d7664d7f57695f))
96
- * add logging ([c44158b](https://github.com/agnostack/next-shopify/commit/c44158be1c9afd151e7b77fbf5eee3061eac8276))
97
- * add logging ([1114232](https://github.com/agnostack/next-shopify/commit/1114232b163c674c38c1ff590a06a26692579dcc))
98
- * add logging ([118103c](https://github.com/agnostack/next-shopify/commit/118103c5e2925729758286b0756b81e68c23de2e))
99
- * add logging ([51a1359](https://github.com/agnostack/next-shopify/commit/51a1359da93329a1eac494d928780a9d44820a05))
100
- * add logging 2 ([9d5135a](https://github.com/agnostack/next-shopify/commit/9d5135a4ed8ca167c2d47f43512bc3104955c877))
101
- * add logging 2 ([6a90e72](https://github.com/agnostack/next-shopify/commit/6a90e72ab4df36f1bfdd4c541ee7b17c1a2ff2d1))
102
- * add logging 3 ([f226a38](https://github.com/agnostack/next-shopify/commit/f226a38fbf8a3b1203ec126e78e16d080463cb04))
103
- * add logging 3 ([7985cae](https://github.com/agnostack/next-shopify/commit/7985caebed56e2d81db67240e27b4207906588c0))
104
- * add logging 3 ([0f298a8](https://github.com/agnostack/next-shopify/commit/0f298a893320566b05068f03021cbea468314bf8))
105
- * add logging 3 ([e837d01](https://github.com/agnostack/next-shopify/commit/e837d0187a25cacd0096d7e0df2244909567dd7f))
106
- * add logging 3 ([e01329b](https://github.com/agnostack/next-shopify/commit/e01329b6377afb9878b81c1d69aea95e3dcd945c))
107
- * add logging 3 ([a256e9f](https://github.com/agnostack/next-shopify/commit/a256e9f3b97c3474055344f00bb97f45a64231d2))
108
- * added new query ([576a4d3](https://github.com/agnostack/next-shopify/commit/576a4d30d769902eaaa75b611e2312926f4a8858))
109
- * cleanup ([383ee16](https://github.com/agnostack/next-shopify/commit/383ee1610b555c006bb99a2f5110af6b8e28cd30))
110
- * linting ([8edb6f5](https://github.com/agnostack/next-shopify/commit/8edb6f56b5554b28874563c75a3f0a367acfe462))
111
- * updated to add APP_ID as param ([93f355f](https://github.com/agnostack/next-shopify/commit/93f355f7190516e640a538adaaf9b76377bb9a34))
112
-
113
-
114
- ### Features
115
-
116
- * add logging ([dcaf35a](https://github.com/agnostack/next-shopify/commit/dcaf35a49546e2d80484439a7acdaa645e911b77))
117
- * add logging ([5330b23](https://github.com/agnostack/next-shopify/commit/5330b233fec7d33c2fdb8d785e910c70084a4b1b))
118
- * add logs ([aa77546](https://github.com/agnostack/next-shopify/commit/aa7754605f893028efb4a94fab9fd3f9076a8dca))
119
-
120
- # [1.6.0](https://github.com/agnostack/next-shopify/compare/v1.5.4...v1.6.0) (2023-05-19)
121
-
122
-
123
- ## [1.5.4](https://github.com/agnostack/next-shopify/compare/v1.5.3...v1.5.4) (2022-12-13)
124
-
125
-
126
- ### Bug Fixes
127
-
128
- * debug ([f73b563](https://github.com/agnostack/next-shopify/commit/f73b5635e44583ebb1b69871a2598e56a2923e5f))
129
- * debugging ([fd0a5cf](https://github.com/agnostack/next-shopify/commit/fd0a5cf558c939140dce1c786e8691366e69c6ef))
130
- * logging ([dff02c3](https://github.com/agnostack/next-shopify/commit/dff02c32477652bb541451f0a0e42638601cffdb))
131
- * name update ([200862f](https://github.com/agnostack/next-shopify/commit/200862f7390bf588170a2bc16ffc49adfff69cc0))
132
- * remove log ([0f4801a](https://github.com/agnostack/next-shopify/commit/0f4801a5adb87956b3ceccfdc56c6c5d2996d6da))
133
- * update changelog ([2cbd35a](https://github.com/agnostack/next-shopify/commit/2cbd35ab87aebaa8b57e8260e37b22f29e219d8f))
134
- * updated logs ([9abfe32](https://github.com/agnostack/next-shopify/commit/9abfe326ed7e0e16690064040498421a855c8e76))
135
- * updates ([a1040ca](https://github.com/agnostack/next-shopify/commit/a1040cafa68088dc80710abd1a09b3daab6e9626))
136
-
137
- ## [1.5.4-alpha.4](https://github.com/agnostack/next-shopify/compare/v1.5.4-alpha.3...v1.5.4-alpha.4) (2022-12-13)
138
-
139
-
140
- ### Bug Fixes
141
-
142
- * name update ([200862f](https://github.com/agnostack/next-shopify/commit/200862f7390bf588170a2bc16ffc49adfff69cc0))
143
-
144
- ## [1.5.4-alpha.3](https://github.com/agnostack/next-shopify/compare/v1.5.4-alpha.2...v1.5.4-alpha.3) (2022-12-13)
145
-
146
-
147
- ### Bug Fixes
148
-
149
- * updates ([a1040ca](https://github.com/agnostack/next-shopify/commit/a1040cafa68088dc80710abd1a09b3daab6e9626))
150
-
151
- ## [1.5.4-alpha.2](https://github.com/agnostack/next-shopify/compare/v1.5.4-alpha.1...v1.5.4-alpha.2) (2022-12-13)
152
-
153
-
154
- ### Bug Fixes
155
-
156
- * logging ([dff02c3](https://github.com/agnostack/next-shopify/commit/dff02c32477652bb541451f0a0e42638601cffdb))
157
-
158
- ## [1.5.4-alpha.1](https://github.com/agnostack/next-shopify/compare/v1.5.3...v1.5.4-alpha.1) (2022-12-13)
159
-
160
-
161
- ### Bug Fixes
162
-
163
- * debug ([f73b563](https://github.com/agnostack/next-shopify/commit/f73b5635e44583ebb1b69871a2598e56a2923e5f))
164
- * debugging ([fd0a5cf](https://github.com/agnostack/next-shopify/commit/fd0a5cf558c939140dce1c786e8691366e69c6ef))
165
- * update changelog ([2cbd35a](https://github.com/agnostack/next-shopify/commit/2cbd35ab87aebaa8b57e8260e37b22f29e219d8f))
166
- * updated logs ([9abfe32](https://github.com/agnostack/next-shopify/commit/9abfe326ed7e0e16690064040498421a855c8e76))
167
-
168
- ## [1.5.3](https://github.com/agnostack/next-shopify/compare/v1.5.2...v1.5.3) (2022-11-30)
169
-
170
-
171
- ### Bug Fixes
172
-
173
- * removed logs ([7475924](https://github.com/agnostack/next-shopify/commit/7475924baa1c24337dc7d620d64c3354ab98f9bb))
174
-
175
- ## [1.5.2](https://github.com/agnostack/next-shopify/compare/v1.5.1...v1.5.2) (2022-11-30)
176
-
177
-
178
- ### Bug Fixes
179
-
180
- * updated logs ([aa95cd9](https://github.com/agnostack/next-shopify/commit/aa95cd96ae04dd9a2ea3c92a9eb2625eb20b4395))
181
- * updated logs ([f13d27d](https://github.com/agnostack/next-shopify/commit/f13d27df15fefd3a7e64bc43262446cfc78dffc3))
182
-
183
- ## [1.5.1](https://github.com/agnostack/next-shopify/compare/v1.5.0...v1.5.1) (2022-11-30)
184
-
185
-
186
- ### Bug Fixes
187
-
188
- * updated to add logs ([3e5c200](https://github.com/agnostack/next-shopify/commit/3e5c200311e4dc2dcbeebd8f89fca8f6e5ea9331))
189
- * updated to add logs ([210ca86](https://github.com/agnostack/next-shopify/commit/210ca8616b151fd0dd573a0951ad8819cc0c2f59))
190
-
191
- # [1.5.0](https://github.com/agnostack/next-shopify/compare/v1.4.10...v1.5.0) (2022-11-29)
192
-
193
-
194
- ### Features
195
-
196
- * fixed graphHelper ([5f92f13](https://github.com/agnostack/next-shopify/commit/5f92f13ca5ef7325a233f1570831d430002d02bf))
197
-
198
- ## [1.4.10](https://github.com/agnostack/next-shopify/compare/v1.4.9...v1.4.10) (2022-11-29)
199
-
200
-
201
- ### Bug Fixes
202
-
203
- * updated JSON parse ([4ac5608](https://github.com/agnostack/next-shopify/commit/4ac560800c5cd12ac324917456abf5f32977dbcd))
204
-
205
- ## [1.4.9](https://github.com/agnostack/next-shopify/compare/v1.4.8...v1.4.9) (2022-11-29)
206
-
207
-
208
- ### Bug Fixes
209
-
210
- * added ERROR_CODES constants ([842495e](https://github.com/agnostack/next-shopify/commit/842495e6b8763b06ba65230c66640b60d24073af))
211
-
212
- ## [1.4.8](https://github.com/agnostack/next-shopify/compare/v1.4.7...v1.4.8) (2022-11-28)
213
-
214
-
215
- ### Bug Fixes
216
-
217
- * testing session fallback ([4dbaf67](https://github.com/agnostack/next-shopify/commit/4dbaf67e5adc1b9bbcaefd04c588b34cab6ab1d6))
218
-
219
- ## [1.4.7](https://github.com/agnostack/next-shopify/compare/v1.4.6...v1.4.7) (2022-11-28)
220
-
221
-
222
- ### Bug Fixes
223
-
224
- * testing session fallback ([1f569dd](https://github.com/agnostack/next-shopify/commit/1f569dd8bb71bb128aa42b723ae771387d7b2397))
225
-
226
- ## [1.4.6](https://github.com/agnostack/next-shopify/compare/v1.4.5...v1.4.6) (2022-11-23)
227
-
228
-
229
- ### Bug Fixes
230
-
231
- * moved to stringEmpty ([b8aebb5](https://github.com/agnostack/next-shopify/commit/b8aebb574ae951a16fb80df8c2d756a50674f9c3))
232
- * updated to remove logs ([b29755f](https://github.com/agnostack/next-shopify/commit/b29755f4c459e7c85ea0cf1c502fc096d33d3617))
233
-
234
- ## [1.4.5](https://github.com/agnostack/next-shopify/compare/v1.4.4...v1.4.5) (2022-11-23)
235
-
236
-
237
- ### Bug Fixes
238
-
239
- * wip testing ([3bda4b6](https://github.com/agnostack/next-shopify/commit/3bda4b6eab70f335a472bd126ad7c02d86e8df0e))
240
-
241
- ## [1.4.4](https://github.com/agnostack/next-shopify/compare/v1.4.3...v1.4.4) (2022-11-23)
242
-
243
-
244
- ### Bug Fixes
245
-
246
- * updated query handling ([72367bc](https://github.com/agnostack/next-shopify/commit/72367bc21e9036b4e2643f172f93a8133b7bdff4))
247
-
248
- ## [1.4.3](https://github.com/agnostack/next-shopify/compare/v1.4.2...v1.4.3) (2022-11-23)
249
-
250
-
251
- ### Bug Fixes
252
-
253
- * updates ([5638c05](https://github.com/agnostack/next-shopify/commit/5638c056d920251b82c1dc3461be334c3e458bf4))
254
- * wip, testing ([6e0b21c](https://github.com/agnostack/next-shopify/commit/6e0b21c1dab0210c1a92646de21f864c05f6626b))
255
-
256
- ## [1.4.2](https://github.com/agnostack/next-shopify/compare/v1.4.1...v1.4.2) (2022-11-22)
257
-
258
-
259
- ### Bug Fixes
260
-
261
- * updated getAuthErrorResponse ([8f3e9b1](https://github.com/agnostack/next-shopify/commit/8f3e9b19bcdeb7f3d2d760a0255faaf259fa27d8))
262
- * updated responses as JSON ([4088961](https://github.com/agnostack/next-shopify/commit/408896129437cb3d1e4d587f80fef3d1ec6c4be8))
263
-
264
- ## [1.4.1](https://github.com/agnostack/next-shopify/compare/v1.4.0...v1.4.1) (2022-11-22)
265
-
266
-
267
- ### Bug Fixes
268
-
269
- * updated default value ([501fc61](https://github.com/agnostack/next-shopify/commit/501fc61d2ec13b6e1a65f2d1acbae2d7d3c620f6))
270
-
271
- # [1.4.0](https://github.com/agnostack/next-shopify/compare/v1.3.1...v1.4.0) (2022-11-21)
272
-
273
-
274
- ### Bug Fixes
275
-
276
- * add ensureSecurityHeader ([667abc1](https://github.com/agnostack/next-shopify/commit/667abc1bef3c39583c57ff41b13c5b86ba7bd722))
277
- * add setData to FBSessionHandler ([36695b3](https://github.com/agnostack/next-shopify/commit/36695b3eda89126748cf5dd27604a8fe6817b4c4))
278
- * add uninstall ([bb6837d](https://github.com/agnostack/next-shopify/commit/bb6837d139ae28d93ebcceceb55fccc072acf442))
279
- * change cookie sameSite to none ([f20a167](https://github.com/agnostack/next-shopify/commit/f20a16709f25775d0fb79a2a551998466b806c28))
280
- * cleanup ([b9719c0](https://github.com/agnostack/next-shopify/commit/b9719c07f6aed42cfd0204fb4d66558fd2081796))
281
- * debug ([0e5f0e2](https://github.com/agnostack/next-shopify/commit/0e5f0e2a0ca251844dce10ca152b0efad918a243))
282
- * debug ([f3724d8](https://github.com/agnostack/next-shopify/commit/f3724d864e173d1b31d3822004fd75ac28d47a0e))
283
- * debug ([69170ff](https://github.com/agnostack/next-shopify/commit/69170fffdcfe84044df6ce3f575dbfbaabe4f60a))
284
- * debug ([4a886a4](https://github.com/agnostack/next-shopify/commit/4a886a4bb88c675a52e40aee121d4424666ab524))
285
- * debug ([069c0dd](https://github.com/agnostack/next-shopify/commit/069c0dd9526b801267ac0998e557240ddd423612))
286
- * debug ([61a69ba](https://github.com/agnostack/next-shopify/commit/61a69ba063f5bfe8673c9b4fbc29bdca4647ea09))
287
- * debug ([d4767a7](https://github.com/agnostack/next-shopify/commit/d4767a7e8757a8f755b41aadb525fa14423f9f02))
288
- * debug ([ae1bbf6](https://github.com/agnostack/next-shopify/commit/ae1bbf68b809e5574328e6e315d49d1033d8f15f))
289
- * debug ([cd9b4e6](https://github.com/agnostack/next-shopify/commit/cd9b4e6985a1fc86ab953b2441e19ba4ac4b6c99))
290
- * debug ([34899ff](https://github.com/agnostack/next-shopify/commit/34899ff59cc2d9826de31508051cfe9c9a6269f5))
291
- * debug ([f8e415f](https://github.com/agnostack/next-shopify/commit/f8e415f1cd34743b5e26603065addb87d1a3fa54))
292
- * debug routes ([987e28c](https://github.com/agnostack/next-shopify/commit/987e28c4989f004364b182cd7065be48e53e81b4))
293
- * debug routes ([cefaf73](https://github.com/agnostack/next-shopify/commit/cefaf731a34f758545574339509a8196e84a87bf))
294
- * debugging ([1f6b379](https://github.com/agnostack/next-shopify/commit/1f6b379204bda2616b32d08efedb1a87f2855c75))
295
- * file cleanup ([4d7d26a](https://github.com/agnostack/next-shopify/commit/4d7d26a65d5c9d92a89a0f26c13c99af9462bdf3))
296
- * file cleanup ([dfe8efb](https://github.com/agnostack/next-shopify/commit/dfe8efb34ef8a6ef37ccd38aa6d69c258c14282e))
297
- * fix import path ([05317aa](https://github.com/agnostack/next-shopify/commit/05317aab6868a6428d5d141d0f69cd22b1667a11))
298
- * headers ([d039f3c](https://github.com/agnostack/next-shopify/commit/d039f3caf53d884bc7104427084d5ee536c43523))
299
- * make it stop ([394182e](https://github.com/agnostack/next-shopify/commit/394182e9f9ebbd4826ac7a173b3fff0b18046cba))
300
- * modfy wrapRoute ([3ae2f72](https://github.com/agnostack/next-shopify/commit/3ae2f72db314d0b6b37af2fbd91916fa1e0a83aa))
301
- * modify clear cookie approach ([c0a0dc5](https://github.com/agnostack/next-shopify/commit/c0a0dc5ef3e5c08bc8a663f937c232825ee8df0f))
302
- * modify header rules ([fc0b4a3](https://github.com/agnostack/next-shopify/commit/fc0b4a3900a8b2556fbcf68fabd874f4df21c00f))
303
- * modify header rules ([53983bb](https://github.com/agnostack/next-shopify/commit/53983bb7b888a55c96de6e0c3f6f9dd6930be98c))
304
- * modify headers ([4848edf](https://github.com/agnostack/next-shopify/commit/4848edf4b275f1ab08aaec54f4a792d4c53d6e15))
305
- * query ([b7795ce](https://github.com/agnostack/next-shopify/commit/b7795ce72f54cd7ba608d852bb236f0e2aeffbb1))
306
- * refactor hasActivePayment ([7bb350e](https://github.com/agnostack/next-shopify/commit/7bb350e50a9f84aa84907c4fa8c6cba1e8dd2544))
307
- * refactor hasActivePayment ([aa303c9](https://github.com/agnostack/next-shopify/commit/aa303c9a28e24e2939acf1378b8e324d22720669))
308
- * rename ([f99a48f](https://github.com/agnostack/next-shopify/commit/f99a48f5a064cc5fe12e3492c99dcb18fa62b6c0))
309
- * rename ([992f2dd](https://github.com/agnostack/next-shopify/commit/992f2dde10bf92f8e8eec2c337f15ccf7f52e93e))
310
- * return from wrapRoute ([d3a4b28](https://github.com/agnostack/next-shopify/commit/d3a4b28ea1e0002321cd5bdd6756bc67dd25a7a9))
311
- * return from wrapRoute ([0423342](https://github.com/agnostack/next-shopify/commit/0423342eee38103af98c4fb9ca317aaf865ec288))
312
- * revert ([182fef5](https://github.com/agnostack/next-shopify/commit/182fef5a837219e0a6b8babff9b4ac2e309020df))
313
- * revert sameSite lax ([ca1b6dd](https://github.com/agnostack/next-shopify/commit/ca1b6ddc895b812768090074a39b39f6848b4b7e))
314
- * the never ending debugging process ([09eb418](https://github.com/agnostack/next-shopify/commit/09eb418be5c10f644eb2c485aa6339e1c8c687a3))
315
- * update shopify version ([c5fece0](https://github.com/agnostack/next-shopify/commit/c5fece029cd870ce1a502343a707c6c42b7051c4))
316
- * updated to add logs ([6500277](https://github.com/agnostack/next-shopify/commit/65002779ac3870791a0ec230d11a770b8fd0f0e3))
317
- * use rest with version ([b2f6320](https://github.com/agnostack/next-shopify/commit/b2f6320ef51d69554d5ae6193b878d656528da0d))
318
- * use sameSite lax ([28a5fed](https://github.com/agnostack/next-shopify/commit/28a5fed2e512049c66ede168911c089d0e092bb8))
319
-
320
-
321
- ### Features
322
-
323
- * revamped Firebase calls ([33a56c1](https://github.com/agnostack/next-shopify/commit/33a56c1a0a6b972b5523d3cbe911e14c3df415d2))
324
-
325
- ## [1.3.1](https://github.com/agnostack/next-shopify/compare/v1.3.0...v1.3.1) (2022-11-15)
326
-
327
- ### Bug Fixes
328
-
329
- * add appId ([27d4517](https://github.com/agnostack/next-shopify/commit/27d4517b64873e8e475448e91d8eeff1ca5e23a3))
330
- * add BillingError check to callbackHandler ([979a07b](https://github.com/agnostack/next-shopify/commit/979a07b5571cb31c7763b4feef41f12c0d487a0a))
331
- * add callback redirects ([ab4d7e1](https://github.com/agnostack/next-shopify/commit/ab4d7e146c76d0233fdcb957939a664ece1049c5))
332
- * add security headers ([70b1c88](https://github.com/agnostack/next-shopify/commit/70b1c88aec65be6cbb0699a8f03134af6487d690))
333
- * cleaned up changelog ([7f5c6a4](https://github.com/agnostack/next-shopify/commit/7f5c6a46e52cb7d52ba618fbc15e66b1be435c10))
334
- * cleanup ([07459b4](https://github.com/agnostack/next-shopify/commit/07459b42d11f9a21fc3092b988fe22ef3b469a12))
335
- * cleanup ([2b13ff2](https://github.com/agnostack/next-shopify/commit/2b13ff2c4d3c6d5f51e96c39b36b0b7b4a0a9e8a))
336
- * cleanup ([55ef76b](https://github.com/agnostack/next-shopify/commit/55ef76b46541079df857b3352eb7bb28ce79ce6c))
337
- * cleanup ([e826ebc](https://github.com/agnostack/next-shopify/commit/e826ebc9869c8e550dcb6c47e6ec03691020833b))
338
- * debugging ([0478539](https://github.com/agnostack/next-shopify/commit/047853922ca9a3ab0b4c52f893b5e0e7020ba634))
339
- * debugging ([74d3272](https://github.com/agnostack/next-shopify/commit/74d3272e4ce27197ffabd476d96d7d8eb664cb03))
340
- * debugging ([96256bb](https://github.com/agnostack/next-shopify/commit/96256bb9cab6fc8754a2253e06ffedd2e44fe9f3))
341
- * debugging ([0ff555f](https://github.com/agnostack/next-shopify/commit/0ff555fbfdac1264167f0974e84248d9bb52150b))
342
- * debugging ([d561951](https://github.com/agnostack/next-shopify/commit/d5619517bed5283a17fc6dad12e83172969a0c69))
343
- * debugging ([9f8c616](https://github.com/agnostack/next-shopify/commit/9f8c616ee5f39753c48df3b6161ffbd92dcf0f38))
344
- * debugging ([07cda43](https://github.com/agnostack/next-shopify/commit/07cda432e2c9048be634449277c61d805dcdd67b))
345
- * debugging ([cb24738](https://github.com/agnostack/next-shopify/commit/cb24738e3b18cbc109410dc6a1e44d27835c9ad6))
346
- * error handling ([448eb17](https://github.com/agnostack/next-shopify/commit/448eb17c6ea736b0fc8e2be133077a3de42d9260))
347
- * existingCharge syntax ([e6fc173](https://github.com/agnostack/next-shopify/commit/e6fc1732dff0203674c2234f5da41d3c58cacd8e))
348
- * modify headers ([a34d5e8](https://github.com/agnostack/next-shopify/commit/a34d5e8a657ff19a18dac7a61a2801ee33730ed8))
349
- * modify headers ([1b4525c](https://github.com/agnostack/next-shopify/commit/1b4525c6a48e2726a96af719fdb21a2014f74c8a))
350
- * modify headers ([bda72b9](https://github.com/agnostack/next-shopify/commit/bda72b98e653dd07a48d73eca2696e24aee35a39))
351
- * modify headers ([3a28664](https://github.com/agnostack/next-shopify/commit/3a28664d64464ac46ae2234eb73120995c87b735))
352
- * modify headers ([6a849f6](https://github.com/agnostack/next-shopify/commit/6a849f645ebe939d543b95cb11747b98e7cf4bba))
353
- * modify headers ([871ceef](https://github.com/agnostack/next-shopify/commit/871ceefddbec30ea081874ca9d51b41cec8ecbea))
354
- * modify headers ([fb206c7](https://github.com/agnostack/next-shopify/commit/fb206c7329f915a9eea939ede9d6d53648d2f332))
355
- * modify headers ([9c91680](https://github.com/agnostack/next-shopify/commit/9c9168052c12fd321640c8803bed70490fcb73ab))
356
- * modify headers ([0b8a429](https://github.com/agnostack/next-shopify/commit/0b8a42977155cca02861fa89d986bc7710690d1f))
357
- * modify headers ([c9e083c](https://github.com/agnostack/next-shopify/commit/c9e083cf0688e8b61baaa28a7500ff6eb099ce9b))
358
- * modify headers ([b685777](https://github.com/agnostack/next-shopify/commit/b68577720a619888cfbc8ead17d39d39f8d780a2))
359
- * modify headers ([0f7f42c](https://github.com/agnostack/next-shopify/commit/0f7f42c612efc1f432c45f0773b089a3a77ef818))
360
- * modify headers ([8ca49b9](https://github.com/agnostack/next-shopify/commit/8ca49b95a3334be2198687c022971fcf9e7fce5c))
361
- * modify headers ([d6ec5b4](https://github.com/agnostack/next-shopify/commit/d6ec5b45b0120741173650033a600c6d96522b09))
362
- * modify headers ([dbf1ef6](https://github.com/agnostack/next-shopify/commit/dbf1ef639de33e54ded2c2569faf0fccdb85203e))
363
- * modify headers ([32f8797](https://github.com/agnostack/next-shopify/commit/32f87973cf6046575b314a4a3eca84befb4dfdf6))
364
- * modify headers ([7838ed3](https://github.com/agnostack/next-shopify/commit/7838ed3cf6067818718306561e3d6206ce049f80))
365
- * modify headers ([eefd83b](https://github.com/agnostack/next-shopify/commit/eefd83bed1815ff57479a2cf88398d8a09037743))
366
- * move await ([2cc94c3](https://github.com/agnostack/next-shopify/commit/2cc94c3204296652a83ae01a740939f934d5fd77))
367
- * rest desctructure ([18b6d24](https://github.com/agnostack/next-shopify/commit/18b6d246c1fe02544ffdf7357c855ee8549c65d6))
368
- * singlePayment ([373c200](https://github.com/agnostack/next-shopify/commit/373c200a9301499a93979b372e6e35bcfd4079a9))
369
- * syntax error ([69f4e62](https://github.com/agnostack/next-shopify/commit/69f4e628290c2c9e2d7d4a75e4a2bca15ca55d4b))
370
-
371
- # [1.3.0](https://github.com/agnostack/next-shopify/compare/v1.2.0...v1.3.0) (2022-11-14)
372
-
373
-
374
- ### Bug Fixes
375
-
376
- * add headers to response ([ab79594](https://github.com/agnostack/next-shopify/commit/ab795947e7db5e2da00a9cb47762b0280fbf7cb3))
377
- * add headers to response ([43f8911](https://github.com/agnostack/next-shopify/commit/43f8911511fc2aaeed40526f1ec6b8177beb7c99))
378
- * add verification error handling ([f995b88](https://github.com/agnostack/next-shopify/commit/f995b88ec113a22c142fc0d36815cb690ae000fe))
379
- * cleanup ([de15385](https://github.com/agnostack/next-shopify/commit/de153858ae2765a3371bf3c8a5f224dc6c842de8))
380
- * debugging ([cd5b3f9](https://github.com/agnostack/next-shopify/commit/cd5b3f935495db221fec60802796104fc559910a))
381
- * debugging ([db47f73](https://github.com/agnostack/next-shopify/commit/db47f73284b721188cfdae67fad1c0d0615fd4c5))
382
- * debugging ([1df68ed](https://github.com/agnostack/next-shopify/commit/1df68ed4f0eb3e893cf910df95fabff6ccc4d42c))
383
- * leverage mutated object ([5c3701c](https://github.com/agnostack/next-shopify/commit/5c3701c4d0f2c0d4ea894e55402968d5f450ea82))
384
- * modify ensureBilling ([4acb0f6](https://github.com/agnostack/next-shopify/commit/4acb0f6e9c4b0b0547161d325fbda84c8d869ec8))
385
- * modify session logic ([f846992](https://github.com/agnostack/next-shopify/commit/f846992f7e886bfa35c34a1d96e2cf97b5a369ee))
386
- * move to appBaseUrl ([bf6ce79](https://github.com/agnostack/next-shopify/commit/bf6ce791254502f27b2158c12a7837ea6c14bd82))
387
- * testing logs ([49e9467](https://github.com/agnostack/next-shopify/commit/49e9467397f403726d0b98d18630b2ac1e7bb47c))
388
- * testing logs ([7555045](https://github.com/agnostack/next-shopify/commit/7555045e0d0524ba448108202aa8510b14ae0e8c))
389
- * testing logs ([5891b10](https://github.com/agnostack/next-shopify/commit/5891b105ffa8150fdab39bd5ed3be5520509f885))
390
- * updated auth helper ([8b3af3e](https://github.com/agnostack/next-shopify/commit/8b3af3e38cad63596ee0d5ca19b622899d1695ad))
391
- * updated to add publicruntimeconf ([593e444](https://github.com/agnostack/next-shopify/commit/593e44406b8e39ab39ac51c44e8f4f568fd138a1))
392
- * updated to use API_URLS ([ccba350](https://github.com/agnostack/next-shopify/commit/ccba350a8637d664ebd75e18125ec5a434aa7a97))
393
- * work in progress ([5472aa1](https://github.com/agnostack/next-shopify/commit/5472aa1e8eeddf6febbe7cca988bdc0303251147))
394
-
395
-
396
- ### Features
397
-
398
- * added API_URLS ([60a153b](https://github.com/agnostack/next-shopify/commit/60a153bc3fbd7b82847bed2cd6a0c7da7902f4d9))
399
-
400
- # [1.2.0](https://github.com/agnostack/next-shopify/compare/v1.1.1...v1.2.0) (2022-11-13)
401
-
402
-
403
- ### Bug Fixes
404
-
405
- * added debugMode check for paymentConfig ([4dd9ef7](https://github.com/agnostack/next-shopify/commit/4dd9ef7c58169127f68b53f329a934b864267e86))
406
- * added logs ([7899327](https://github.com/agnostack/next-shopify/commit/7899327f178ae6d376aa0ee2a5ca933fa0401a0b))
407
- * added logs and hmac check ([8249098](https://github.com/agnostack/next-shopify/commit/8249098079e8e79aff0455cf9ce254211b0e63eb))
408
- * additional logging ([fdaebef](https://github.com/agnostack/next-shopify/commit/fdaebef5eb4eeab4f977c2bcb3364592eca90d4a))
409
- * logging to ensure cookie working ([eefa459](https://github.com/agnostack/next-shopify/commit/eefa459f4f2e37237bb801897ed892d922a6fc1a))
410
- * more logs (and fixed paymentConfig name ([d3c7fc3](https://github.com/agnostack/next-shopify/commit/d3c7fc32d56aeb9099a6fc1c38d855d08992f029))
411
- * reduced required version ([bf96eae](https://github.com/agnostack/next-shopify/commit/bf96eaeea9766519cb17f8e1db78bb8d0c45c3b6))
412
- * reverted to singleton ([b25954f](https://github.com/agnostack/next-shopify/commit/b25954f0cd03d6f01ab2ccefc772ecdc64e996df))
413
- * testing logs ([b6b6b0e](https://github.com/agnostack/next-shopify/commit/b6b6b0ea98d0e548c07835b28de3e94ed74f58a5))
414
- * updated beginAuth ([a43b7db](https://github.com/agnostack/next-shopify/commit/a43b7dbfd60d3b307c5eb07511a796e3bc0855db))
415
- * updated FirebaseSessionHandler ([d62160c](https://github.com/agnostack/next-shopify/commit/d62160c4ffd6d45dc80527c23226752cadf68c8f))
416
- * updated getRedirectUrl ([b4755b9](https://github.com/agnostack/next-shopify/commit/b4755b90aad5e6fc8a3c140cbd73907f80243560))
417
- * updated initializeFireStore and getInitializedShopify to no longer be async ([4684e2c](https://github.com/agnostack/next-shopify/commit/4684e2c171ada39a79e60cdd07bb73c32da88268))
418
- * updated to add logs ([d688695](https://github.com/agnostack/next-shopify/commit/d688695052ee0b71721198fbe6231146fb76f70a))
419
- * updated to remove singleton ([21367d5](https://github.com/agnostack/next-shopify/commit/21367d5ab55de9da29e43eab64fe69c7889e77f0))
420
- * updated to simplify params ([e84b58b](https://github.com/agnostack/next-shopify/commit/e84b58b244f9969672d62ac424f1026d11b398bf))
421
- * updates/clean up ([acec04f](https://github.com/agnostack/next-shopify/commit/acec04fe306bb4d54fbeffcc5051459c734e1bb5))
422
-
423
-
424
- ### Features
425
-
426
- * added fb-admin ([63aab0d](https://github.com/agnostack/next-shopify/commit/63aab0d3bc1b6b1e36ab74447dc1eecf580df22c))
427
- * added support for netlifyUrl ([aef5844](https://github.com/agnostack/next-shopify/commit/aef58445ff53ed25352a8cc342287b5b8ffef2d4))
428
- * moved to fb-admin ([a097358](https://github.com/agnostack/next-shopify/commit/a0973583af6c93d9230843670808621e2094570a))
429
-
430
- ## [1.1.1](https://github.com/agnostack/next-shopify/compare/v1.1.0...v1.1.1) (2022-11-11)
431
-
432
-
433
- ### Bug Fixes
434
-
435
- * add billing manager ([65bbfc7](https://github.com/agnostack/next-shopify/commit/65bbfc75fc1ca1814640da0e9fe28f57bb9cdf4c))
436
- * add initial handleQuery ([ae74450](https://github.com/agnostack/next-shopify/commit/ae74450e632573ccebb4b48bb958a363e83d8024))
437
- * add initial handleQuery ([45b2e11](https://github.com/agnostack/next-shopify/commit/45b2e1153a7c0d2a45d8ccad9a10e94208564e98))
438
- * add payment config method ([8fda8c2](https://github.com/agnostack/next-shopify/commit/8fda8c2c569d780336cd487d02a3e6cc5bd73784))
439
- * added debug logs ([934b436](https://github.com/agnostack/next-shopify/commit/934b43655b6c78b1d1c2aef83bfe2443f5cb6534))
440
- * added handleRest, updated handleQuery ([3228ce8](https://github.com/agnostack/next-shopify/commit/3228ce8bb41854aef44ecc3fb78a971401461ea8))
441
- * added logs and JSON.parse ([eb1e59e](https://github.com/agnostack/next-shopify/commit/eb1e59ee465b972db51fdde097d84ebee3c339bc))
442
- * added logs, change to use body direct ([67c7d5d](https://github.com/agnostack/next-shopify/commit/67c7d5d7261a623c693ee1f4846f6395f492346e))
443
- * added message in response (and debug logs) ([d713bb5](https://github.com/agnostack/next-shopify/commit/d713bb597780efa96c7781763bd4f57bd14ea61c))
444
- * added querystringToObject ([2e5e9dc](https://github.com/agnostack/next-shopify/commit/2e5e9dc219de4bf61514a55909b36368b340c47d))
445
- * cleanup ([0fdc2dc](https://github.com/agnostack/next-shopify/commit/0fdc2dc3f9996aaab792edc338c2b9af6fbe37e7))
446
- * cleanup linting ([341f87b](https://github.com/agnostack/next-shopify/commit/341f87b65b42c93303f40c2c49117bd5ada99602))
447
- * fix destructure ([37b9d7c](https://github.com/agnostack/next-shopify/commit/37b9d7cd12d8b9b266206a7a5dcc223120075c21))
448
- * modify conditional check ([efccb36](https://github.com/agnostack/next-shopify/commit/efccb362722a71d84fe0ae79d894d4952f57a2fb))
449
- * modify rest payload ([8ce8810](https://github.com/agnostack/next-shopify/commit/8ce8810fc2f04834237cc874ad92c9fecbf13e93))
450
- * modify rest payload ([eabae19](https://github.com/agnostack/next-shopify/commit/eabae194ad5f9864b84872ee65f0213134123d87))
451
- * optimization ([12636d0](https://github.com/agnostack/next-shopify/commit/12636d0e3e007c80ec2e6c10ebcf368ea7fd408f))
452
- * payment config ([b69394e](https://github.com/agnostack/next-shopify/commit/b69394e9abc53a3a0f6c8be1f350f393274b4de6))
453
- * refactored to export helpers ([35eafde](https://github.com/agnostack/next-shopify/commit/35eafdef0acdcc2f882729088918a40dc47607c3))
454
- * remove logs ([9095a54](https://github.com/agnostack/next-shopify/commit/9095a54a3be188e4e2254faf88a1ddadc5a4e503))
455
- * removed logs, destructured data ([ac84948](https://github.com/agnostack/next-shopify/commit/ac84948abb894629647a9671d21ce94cb71af42a))
456
- * removed logs, return only body ([2f706c9](https://github.com/agnostack/next-shopify/commit/2f706c911e23e23555bf67ecc6c5f5bc37b26d02))
457
- * removed old export ([4cc445d](https://github.com/agnostack/next-shopify/commit/4cc445dbffcc25c3ab77bf04091ba3db3676a0b9))
458
- * renamed query to graph ([af40892](https://github.com/agnostack/next-shopify/commit/af40892835e72c1c39e0f4983e0758a12ada4245))
459
- * updated invalid import ([2cdbf41](https://github.com/agnostack/next-shopify/commit/2cdbf41a7b17c447587f876231830c707e9ebc90))
460
- * updated method signatures ([26316c8](https://github.com/agnostack/next-shopify/commit/26316c80d1a9a9b8663dd864a2270b2617c0492b))
461
- * var names ([e322bff](https://github.com/agnostack/next-shopify/commit/e322bffaa56439d8c694061fa8990f7c64def0a9))
462
-
463
- # [1.1.0](https://github.com/agnostack/next-shopify/compare/v1.0.0...v1.1.0) (2022-11-08)
464
-
465
-
466
- ### Bug Fixes
467
-
468
- * added debug logs ([e6b9703](https://github.com/agnostack/next-shopify/commit/e6b97038580e5802319eb93fd272eb0c27ec4ad3))
469
- * added default destructure ([2f14c5c](https://github.com/agnostack/next-shopify/commit/2f14c5c972463df7130387e64b420bf4a56b45fa))
470
- * reverted interactive prompt ([ab2a841](https://github.com/agnostack/next-shopify/commit/ab2a841ccd3bdb9cf659b2be02aa8ebadee627cd))
471
- * small refactor on apiHandlers ([fc9315d](https://github.com/agnostack/next-shopify/commit/fc9315d4de6c69096399ae1573f8bc2d4982dffe))
472
- * split out helper methods ([8148682](https://github.com/agnostack/next-shopify/commit/8148682f3ee940948cf01521b1428a994880c515))
473
- * temp set to test prompts ([0a97fd2](https://github.com/agnostack/next-shopify/commit/0a97fd2186b46b6362fd54c1dfdb7810211aee10))
474
- * updated broken lock file ([3515c81](https://github.com/agnostack/next-shopify/commit/3515c812f531bcd2f8eca264432346ef748afb0c))
475
- * updated console logs ([e3450f2](https://github.com/agnostack/next-shopify/commit/e3450f28ccd29d7de3d78d1cb1857ff9e892ccf4))
476
- * updated status and send handlers ([874f9d6](https://github.com/agnostack/next-shopify/commit/874f9d6bd99ac7293a9782493bb7e10593367609))
477
- * updated to grab from APP_CONFIG ([e5f4c13](https://github.com/agnostack/next-shopify/commit/e5f4c13d5592000ffbf9791fba12b3c236178997))
478
- * updated to remove debug logs ([58bcdaf](https://github.com/agnostack/next-shopify/commit/58bcdafa6f64fe64ff9b25efac492f599034030e))
479
- * updated uninstall route ([6f8462a](https://github.com/agnostack/next-shopify/commit/6f8462a7012d18c5205f1f9f22a7940b6b335329))
480
-
481
-
482
- ### Features
483
-
484
- * initial implementation of withShopify > serverRuntimeConfig ([8a4771d](https://github.com/agnostack/next-shopify/commit/8a4771db503fa9fcbec15c5690f31f85b154c40e))
485
- * initial test implementation ([b212bff](https://github.com/agnostack/next-shopify/commit/b212bffc7aa76e12686444a09d3b6af71294a1dc))
486
- # 1.0.0 (2022-11-07)
487
-
488
-
489
- ### Bug Fixes
490
-
491
- * initial commit ([1bc1cf1](https://github.com/agnostack/next-shopify/commit/1bc1cf1125052a8c71778c67e68d08d0c391ee7f))
492
-
493
-
494
- ### Features
495
-
496
- * inital commit/prerelease ([df46523](https://github.com/agnostack/next-shopify/commit/df465232c95a1162423c664473d3c535bfb7b949))
497
- * initial release ([40c6a31](https://github.com/agnostack/next-shopify/commit/40c6a31786757878841849e58e6b58a5c76df5c0))
@@ -1,10 +0,0 @@
1
- export function handleRest(serverRuntimeConfig: any): (req: any, res: any, params: any) => Promise<any>;
2
- export function handleGraph(serverRuntimeConfig: any): (req: any, res: any, params: any) => Promise<any>;
3
- export function handleAuth(serverRuntimeConfig: any): (req: any, res: any) => Promise<any>;
4
- export function handleCallback(serverRuntimeConfig: any): (req: any, res: any) => Promise<any>;
5
- export function handleAppUninstalled(serverRuntimeConfig: any): (req: any, res: any) => Promise<any>;
6
- export namespace rawBodyConfig {
7
- namespace api {
8
- const bodyParser: boolean;
9
- }
10
- }
@@ -1,98 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.rawBodyConfig = exports.handleAppUninstalled = exports.handleCallback = exports.handleAuth = exports.handleGraph = exports.handleRest = void 0;
7
- const raw_body_1 = __importDefault(require("raw-body"));
8
- // NOTE: api routes do NOT work in `next export`
9
- const shopify_api_1 = require("@shopify/shopify-api");
10
- const helpers_1 = require("../helpers");
11
- const utils_1 = require("../utils");
12
- const handleRest = (serverRuntimeConfig) => async (req, res, params) => {
13
- const { PAGE_PATHS } = serverRuntimeConfig;
14
- const { message, response, headers, statusCode = 302, redirectUrl = `${PAGE_PATHS[utils_1.PAGE_ROUTE_NAMES.ERROR]}?invalid_rest_response`, } = await helpers_1.restHelper({
15
- req,
16
- res,
17
- params,
18
- serverRuntimeConfig,
19
- });
20
- Object.entries(utils_1.ensureObject(headers)).forEach(([key, value]) => {
21
- res.setHeader(key, value);
22
- });
23
- // TODO: move these to helper
24
- if (statusCode >= 300 && statusCode < 400) {
25
- return res.redirect(statusCode, redirectUrl);
26
- }
27
- if (!response) {
28
- return res.status(statusCode).json({ message });
29
- }
30
- if ((params === null || params === void 0 ? void 0 : params.type) && ![shopify_api_1.DataType.GraphQL, shopify_api_1.DataType.JSON].includes(params.type)) {
31
- return res.status(statusCode).send(response);
32
- }
33
- if (!(response === null || response === void 0 ? void 0 : response.body)) {
34
- return res.status(statusCode).json({ message });
35
- }
36
- return res.status(statusCode).json(response.body);
37
- };
38
- exports.handleRest = handleRest;
39
- const handleGraph = (serverRuntimeConfig) => async (req, res, params) => {
40
- var _a, _b;
41
- const { PAGE_PATHS } = serverRuntimeConfig;
42
- const { message, response, headers, statusCode = 302, redirectUrl = `${PAGE_PATHS[utils_1.PAGE_ROUTE_NAMES.ERROR]}?invalid_query_response`, } = await helpers_1.graphHelper({
43
- req,
44
- res,
45
- params,
46
- serverRuntimeConfig,
47
- });
48
- Object.entries(utils_1.ensureObject(headers)).forEach(([key, value]) => {
49
- res.setHeader(key, value);
50
- });
51
- if (statusCode >= 300 && statusCode < 400) {
52
- return res.redirect(statusCode, redirectUrl);
53
- }
54
- if (!(response === null || response === void 0 ? void 0 : response.body)) {
55
- return res.status(statusCode).json({ message });
56
- }
57
- return res.status(statusCode).json((_b = (_a = response.body) === null || _a === void 0 ? void 0 : _a.data) !== null && _b !== void 0 ? _b : response.body);
58
- };
59
- exports.handleGraph = handleGraph;
60
- // NOTE: typically handling: "/api/auth"
61
- const handleAuth = (serverRuntimeConfig) => async (req, res) => {
62
- const { PAGE_PATHS } = serverRuntimeConfig;
63
- const { message, statusCode = 302, redirectUrl = `${PAGE_PATHS[utils_1.PAGE_ROUTE_NAMES.ERROR]}?invalid_auth_response`, } = await helpers_1.authHelper({ req, res, serverRuntimeConfig });
64
- if (statusCode >= 300 && statusCode < 400) {
65
- return res.redirect(statusCode, redirectUrl);
66
- }
67
- return res.status(statusCode).send(message);
68
- };
69
- exports.handleAuth = handleAuth;
70
- // NOTE: typically handling: "/api/auth/callback"
71
- const handleCallback = (serverRuntimeConfig) => async (req, res) => {
72
- const { PAGE_PATHS } = serverRuntimeConfig;
73
- const { message, statusCode = 302, redirectUrl = `${PAGE_PATHS[utils_1.PAGE_ROUTE_NAMES.ERROR]}?invalid_callback_response`, } = await helpers_1.callbackHelper({ req, res, serverRuntimeConfig });
74
- if (statusCode >= 300 && statusCode < 400) {
75
- return res.redirect(statusCode, redirectUrl);
76
- }
77
- return res.status(statusCode).send(message);
78
- };
79
- exports.handleCallback = handleCallback;
80
- // NOTE: typically handling: "/api/webhooks/app/uninstalled"
81
- const handleAppUninstalled = (serverRuntimeConfig) => async (req, res) => {
82
- // NOTE raw request body is required for Shopify webhook validation
83
- const rawBody = await raw_body_1.default(req).catch((error) => {
84
- console.error('Error extracting raw body', error);
85
- // HMMMM: dont think we can return a 500 here (vs a 200 w/ an error object)
86
- return res.status(500).send('Unable to get request body');
87
- });
88
- // NOTE Shopify webhook processers will automatically return the response
89
- return helpers_1.uninstallHelper({ rawBody, req, res, serverRuntimeConfig });
90
- };
91
- exports.handleAppUninstalled = handleAppUninstalled;
92
- // NOTE raw request body is required for Shopify webhook validation
93
- exports.rawBodyConfig = {
94
- api: {
95
- bodyParser: false,
96
- },
97
- };
98
- //# sourceMappingURL=api.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/handlers/api.js"],"names":[],"mappings":";;;;;;AAAA,wDAAiC;AACjC,gDAAgD;AAChD,sDAA+C;AAE/C,wCAMmB;AACnB,oCAAyD;AAElD,MAAM,UAAU,GAAG,CAAC,mBAAmB,EAAE,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE;IAC5E,MAAM,EAAE,UAAU,EAAE,GAAG,mBAAmB,CAAA;IAC1C,MAAM,EACJ,OAAO,EACP,QAAQ,EACR,OAAO,EACP,UAAU,GAAG,GAAG,EAChB,WAAW,GAAG,GAAG,UAAU,CAAC,wBAAgB,CAAC,KAAK,CAAC,wBAAwB,GAC5E,GAAG,MAAM,oBAAU,CAAC;QACnB,GAAG;QACH,GAAG;QACH,MAAM;QACN,mBAAmB;KACpB,CAAC,CAAA;IAEF,MAAM,CAAC,OAAO,CAAC,oBAAY,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAC7D,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IAC3B,CAAC,CAAC,CAAA;IAEF,6BAA6B;IAC7B,IAAI,UAAU,IAAI,GAAG,IAAI,UAAU,GAAG,GAAG,EAAE;QACzC,OAAO,GAAG,CAAC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC,CAAA;KAC7C;IAED,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;KAChD;IAED,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,KAAI,CAAC,CAA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