@shoplineos/cli 1.5.2 → 1.5.5

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 (228) hide show
  1. package/dist/commands/auth/index.js +2 -1
  2. package/dist/commands/auth/login.js +2 -1
  3. package/dist/commands/auth/logout.js +2 -1
  4. package/dist/commands/auth/whoami.js +2 -1
  5. package/dist/commands/extension/build.js +2 -1
  6. package/dist/commands/extension/common-options.js +2 -1
  7. package/dist/commands/extension/connect.js +2 -1
  8. package/dist/commands/extension/create.js +2 -1
  9. package/dist/commands/extension/index.js +2 -1
  10. package/dist/commands/extension/push.js +2 -1
  11. package/dist/commands/extension/serve.js +2 -1
  12. package/dist/commands/index.js +2 -1
  13. package/dist/commands/report.js +2 -1
  14. package/dist/commands/theme/check.js +2 -1
  15. package/dist/commands/theme/console.js +2 -1
  16. package/dist/commands/theme/index.js +2 -1
  17. package/dist/commands/theme/init.js +2 -1
  18. package/dist/commands/theme/list.js +2 -1
  19. package/dist/commands/theme/package.js +2 -1
  20. package/dist/commands/theme/pull.js +2 -1
  21. package/dist/commands/theme/push.js +2 -1
  22. package/dist/commands/theme/serve.js +2 -1
  23. package/dist/commands/theme/theme-common-options.js +2 -1
  24. package/dist/eventlistener.d.js +2 -1
  25. package/dist/helpers/config.js +2 -1
  26. package/dist/helpers/monitoring-bootstrap.js +2 -0
  27. package/dist/helpers/monitoring-environment.js +2 -0
  28. package/dist/helpers/open-admin-url.js +2 -1
  29. package/dist/helpers/process-errors.js +2 -0
  30. package/dist/helpers/report.js +2 -1
  31. package/dist/helpers/sentry.js +2 -1
  32. package/dist/helpers/sum.js +2 -1
  33. package/dist/helpers/verify-login.js +2 -1
  34. package/dist/services/auth/logout.js +2 -1
  35. package/dist/services/dev-server/index.js +3 -2
  36. package/dist/services/dev-server/sse.js +2 -1
  37. package/dist/services/dev-server/web/socket-client.js +2 -1
  38. package/dist/services/dev-server-3/index.js +2 -1
  39. package/dist/services/dev-server-3/server.js +3 -2
  40. package/dist/services/dev-server-3/sse.js +2 -1
  41. package/dist/services/dev-server-3/web/socket-client.js +2 -1
  42. package/dist/services/extension/api.js +2 -1
  43. package/dist/services/extension/check-extension-version.js +2 -1
  44. package/dist/services/extension/clone-repo.js +2 -1
  45. package/dist/services/extension/connect/context.js +2 -1
  46. package/dist/services/extension/connect/index.js +2 -1
  47. package/dist/services/extension/connect/validate.js +2 -1
  48. package/dist/services/extension/const.js +2 -1
  49. package/dist/services/extension/context.js +2 -1
  50. package/dist/services/extension/create/index.js +2 -1
  51. package/dist/services/extension/ensure-project-type.js +2 -1
  52. package/dist/services/extension/env.js +2 -1
  53. package/dist/services/extension/extension.js +2 -1
  54. package/dist/services/extension/functions/generate.js +2 -1
  55. package/dist/services/extension/functions/info.js +2 -1
  56. package/dist/services/extension/functions/push.js +2 -1
  57. package/dist/services/extension/functions/schemas.js +2 -1
  58. package/dist/services/extension/generate.js +2 -1
  59. package/dist/services/extension/index.js +2 -1
  60. package/dist/services/extension/inquirer.js +2 -1
  61. package/dist/services/extension/loader.js +2 -1
  62. package/dist/services/extension/openapi.js +2 -1
  63. package/dist/services/extension/push/build.js +2 -1
  64. package/dist/services/extension/push/checkout-ui.js +2 -1
  65. package/dist/services/extension/push/index.js +2 -1
  66. package/dist/services/extension/push/pixels.js +2 -1
  67. package/dist/services/extension/push/post-purchase.js +2 -1
  68. package/dist/services/extension/push/shopper.js +2 -1
  69. package/dist/services/extension/push/show.js +2 -1
  70. package/dist/services/extension/push/theme.js +2 -1
  71. package/dist/services/extension/push/zip.js +2 -1
  72. package/dist/services/extension/register.js +2 -1
  73. package/dist/services/extension/schemas.js +2 -1
  74. package/dist/services/extension/serve/bundler.js +2 -1
  75. package/dist/services/extension/serve/extension.js +2 -1
  76. package/dist/services/extension/serve/localization.js +2 -1
  77. package/dist/services/extension/serve/models.js +2 -1
  78. package/dist/services/extension/serve/payload.js +2 -1
  79. package/dist/services/extension/serve/server/middlewares.js +2 -1
  80. package/dist/services/extension/serve/server.js +2 -1
  81. package/dist/services/extension/serve/websocket/handlers.js +2 -1
  82. package/dist/services/extension/serve/websocket/models.js +2 -1
  83. package/dist/services/extension/serve/websocket.js +2 -1
  84. package/dist/services/extension/serve.js +2 -1
  85. package/dist/services/extension/tunnel/cloudflared.js +2 -1
  86. package/dist/services/extension/tunnel/install-cloudflared.js +2 -1
  87. package/dist/services/extension/types.js +2 -1
  88. package/dist/services/extension/utils.js +2 -1
  89. package/dist/services/extension/validate.js +2 -1
  90. package/dist/services/extension/zip.js +2 -1
  91. package/dist/services/extension/zip3.js +2 -1
  92. package/dist/services/identity-auth/api.js +2 -1
  93. package/dist/services/identity-auth/const.js +2 -1
  94. package/dist/services/identity-auth/create-server.js +2 -1
  95. package/dist/services/identity-auth/index.js +2 -1
  96. package/dist/services/identity-auth/store-enter.js +2 -1
  97. package/dist/services/report/index.js +2 -1
  98. package/dist/services/theme/3.0/api.js +4 -3
  99. package/dist/services/theme/3.0/check.js +2 -1
  100. package/dist/services/theme/3.0/file.js +2 -1
  101. package/dist/services/theme/3.0/package.js +2 -1
  102. package/dist/services/theme/3.0/pull.js +2 -1
  103. package/dist/services/theme/3.0/push.js +2 -1
  104. package/dist/services/theme/3.0/remote-watcher.js +2 -1
  105. package/dist/services/theme/3.0/theme.js +4 -3
  106. package/dist/services/theme/api.js +2 -1
  107. package/dist/services/theme/check/check.js +2 -1
  108. package/dist/services/theme/check/config.js +2 -1
  109. package/dist/services/theme/check/exception.js +2 -1
  110. package/dist/services/theme/check/index.js +2 -1
  111. package/dist/services/theme/check/types.js +2 -1
  112. package/dist/services/theme/checksum.js +2 -1
  113. package/dist/services/theme/choose-theme-list.js +2 -1
  114. package/dist/services/theme/console/api.js +2 -1
  115. package/dist/services/theme/console/console.js +4 -3
  116. package/dist/services/theme/console/index.js +2 -1
  117. package/dist/services/theme/const.js +2 -1
  118. package/dist/services/theme/dev-server-monitoring.js +2 -0
  119. package/dist/services/theme/file.js +2 -1
  120. package/dist/services/theme/git.js +2 -1
  121. package/dist/services/theme/index.js +4 -3
  122. package/dist/services/theme/inquirer.js +2 -1
  123. package/dist/services/theme/no-second-check.js +2 -1
  124. package/dist/services/theme/operation.js +2 -1
  125. package/dist/services/theme/package.js +2 -1
  126. package/dist/services/theme/proxy-error.js +2 -0
  127. package/dist/services/theme/pull.js +2 -1
  128. package/dist/services/theme/push.js +2 -1
  129. package/dist/services/theme/remote-watcher.js +2 -1
  130. package/dist/services/theme/types.js +2 -1
  131. package/dist/services/theme/update-queue.js +2 -1
  132. package/dist/services/theme/update.js +2 -1
  133. package/dist/services/theme/uploader.js +2 -1
  134. package/dist/services/theme/utils.js +3 -1
  135. package/dist/services/theme/watcher-monitoring.js +2 -0
  136. package/dist/type.d.js +2 -1
  137. package/dist/types/env.d.js +2 -1
  138. package/dist/types/type.d.js +2 -1
  139. package/dist/utils/abort.js +2 -1
  140. package/dist/utils/check-theme-type-version.js +2 -1
  141. package/dist/utils/check-update.js +2 -1
  142. package/dist/utils/colors.js +2 -1
  143. package/dist/utils/const.js +2 -1
  144. package/dist/utils/content-tokens.js +2 -1
  145. package/dist/utils/debug.js +2 -1
  146. package/dist/utils/decorators.js +2 -1
  147. package/dist/utils/environments.js +2 -1
  148. package/dist/utils/error.js +2 -1
  149. package/dist/utils/exit-hook.js +2 -1
  150. package/dist/utils/find-up-node-module.js +2 -1
  151. package/dist/utils/format-protocol.js +2 -1
  152. package/dist/utils/fs.js +2 -1
  153. package/dist/utils/get-objects-diff.js +2 -1
  154. package/dist/utils/get-real-referer.js +2 -1
  155. package/dist/utils/get-store-env.js +2 -1
  156. package/dist/utils/get-url-handle.js +2 -1
  157. package/dist/utils/git.js +2 -1
  158. package/dist/utils/has-command.js +2 -1
  159. package/dist/utils/hbs.js +2 -1
  160. package/dist/utils/http.js +2 -1
  161. package/dist/utils/ignore-filter.js +2 -1
  162. package/dist/utils/import-esm.js +2 -1
  163. package/dist/utils/include-filter.js +2 -1
  164. package/dist/utils/load-local-preset.js +2 -1
  165. package/dist/utils/local.js +2 -1
  166. package/dist/utils/logger.js +2 -1
  167. package/dist/utils/messages.js +3 -2
  168. package/dist/utils/misc.js +2 -1
  169. package/dist/utils/node-package-manager.js +2 -1
  170. package/dist/utils/ora-manager.js +2 -1
  171. package/dist/utils/os.js +2 -1
  172. package/dist/utils/output.js +2 -1
  173. package/dist/utils/parse-options.js +2 -1
  174. package/dist/utils/path-matcher.js +2 -1
  175. package/dist/utils/path.js +2 -1
  176. package/dist/utils/print-preview.js +2 -1
  177. package/dist/utils/program.js +2 -1
  178. package/dist/utils/replace-dot.js +2 -1
  179. package/dist/utils/replace-top-level-com.js +2 -1
  180. package/dist/utils/retry.js +2 -1
  181. package/dist/utils/schema.js +2 -1
  182. package/dist/utils/string.js +2 -1
  183. package/dist/utils/system.js +2 -1
  184. package/dist/utils/tcp.js +2 -1
  185. package/dist/utils/tiny-queue.js +2 -1
  186. package/dist/utils/toml.js +2 -1
  187. package/dist/utils/tree-kill.js +2 -1
  188. package/dist/utils/ui/Tasks.js +2 -1
  189. package/dist/utils/ui/alert.js +2 -1
  190. package/dist/utils/ui/components/Alert.js +2 -1
  191. package/dist/utils/ui/components/Banner.js +2 -1
  192. package/dist/utils/ui/components/Command.js +2 -1
  193. package/dist/utils/ui/components/ConcurrentOutput.js +2 -1
  194. package/dist/utils/ui/components/FatalError.js +2 -1
  195. package/dist/utils/ui/components/FilePath.js +2 -1
  196. package/dist/utils/ui/components/Link.js +2 -1
  197. package/dist/utils/ui/components/List.js +2 -1
  198. package/dist/utils/ui/components/Prompts/InfoTable.js +2 -1
  199. package/dist/utils/ui/components/SelectInput.js +2 -1
  200. package/dist/utils/ui/components/SelectPrompt.js +2 -1
  201. package/dist/utils/ui/components/Subdued.js +2 -1
  202. package/dist/utils/ui/components/TextAnimation.js +2 -1
  203. package/dist/utils/ui/components/TextInput.js +2 -1
  204. package/dist/utils/ui/components/TextPrompt.js +2 -1
  205. package/dist/utils/ui/components/TokenizedText.js +2 -1
  206. package/dist/utils/ui/components/UserInput.js +2 -1
  207. package/dist/utils/ui/contexts/LinksContext.js +2 -1
  208. package/dist/utils/ui/hooks/use-async-and-unmount.js +2 -1
  209. package/dist/utils/ui/hooks/use-layout.js +2 -1
  210. package/dist/utils/ui/render.js +2 -1
  211. package/dist/utils/ui/ui.js +2 -1
  212. package/dist/utils/ui/utilities.js +2 -1
  213. package/dist/utils/winston/index.js +2 -1
  214. package/dist/utils/winston/log-file.js +3 -2
  215. package/dist/utils/write-file-tree.js +2 -1
  216. package/dist/vendor/logger-apm-node/index.js +11 -0
  217. package/dist/vendor/logger-apm-node/licenses.txt +296 -0
  218. package/package.json +14 -7
  219. package/dist/commands/extension/tunnel.js +0 -1
  220. package/dist/services/dev-server/socket.js +0 -1
  221. package/dist/services/extension/create.js +0 -1
  222. package/dist/services/extension/push.js +0 -1
  223. package/dist/services/extension/resolve-env.js +0 -1
  224. package/dist/services/extension/tunnel.js +0 -3
  225. package/dist/services/extension/write-env-file.js +0 -1
  226. package/dist/services/theme/draft.js +0 -1
  227. package/dist/services/theme/types.d.js +0 -1
  228. package/dist/utils/ui.js +0 -1
@@ -0,0 +1,296 @@
1
+ @sentry-internal/tracing
2
+ MIT
3
+ Copyright (c) 2020 Sentry (https://sentry.io) and individual contributors. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
6
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
7
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
8
+ persons to whom the Software is furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
11
+ Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
14
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17
+
18
+
19
+ @sentry/core
20
+ MIT
21
+ Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. All rights reserved.
22
+
23
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
24
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
25
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
26
+ persons to whom the Software is furnished to do so, subject to the following conditions:
27
+
28
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
29
+ Software.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
32
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
33
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
34
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
+
36
+
37
+ @sentry/integrations
38
+ MIT
39
+ Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. All rights reserved.
40
+
41
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
42
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
43
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
44
+ persons to whom the Software is furnished to do so, subject to the following conditions:
45
+
46
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
47
+ Software.
48
+
49
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
50
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
51
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
52
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
53
+
54
+
55
+ @sentry/node
56
+ MIT
57
+ Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. All rights reserved.
58
+
59
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
60
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
61
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
62
+ persons to whom the Software is furnished to do so, subject to the following conditions:
63
+
64
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
65
+ Software.
66
+
67
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
68
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
69
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
70
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
71
+
72
+
73
+ @sentry/utils
74
+ MIT
75
+ Copyright (c) 2019 Sentry (https://sentry.io) and individual contributors. All rights reserved.
76
+
77
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
78
+ documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
79
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
80
+ persons to whom the Software is furnished to do so, subject to the following conditions:
81
+
82
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
83
+ Software.
84
+
85
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
86
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
87
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
88
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
89
+
90
+
91
+ @sl/logger-apm-node
92
+ ISC
93
+
94
+ localforage
95
+ Apache-2.0
96
+ Apache License
97
+ Version 2.0, January 2004
98
+ http://www.apache.org/licenses/
99
+
100
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
101
+
102
+ 1. Definitions.
103
+
104
+ "License" shall mean the terms and conditions for use, reproduction,
105
+ and distribution as defined by Sections 1 through 9 of this document.
106
+
107
+ "Licensor" shall mean the copyright owner or entity authorized by
108
+ the copyright owner that is granting the License.
109
+
110
+ "Legal Entity" shall mean the union of the acting entity and all
111
+ other entities that control, are controlled by, or are under common
112
+ control with that entity. For the purposes of this definition,
113
+ "control" means (i) the power, direct or indirect, to cause the
114
+ direction or management of such entity, whether by contract or
115
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
116
+ outstanding shares, or (iii) beneficial ownership of such entity.
117
+
118
+ "You" (or "Your") shall mean an individual or Legal Entity
119
+ exercising permissions granted by this License.
120
+
121
+ "Source" form shall mean the preferred form for making modifications,
122
+ including but not limited to software source code, documentation
123
+ source, and configuration files.
124
+
125
+ "Object" form shall mean any form resulting from mechanical
126
+ transformation or translation of a Source form, including but
127
+ not limited to compiled object code, generated documentation,
128
+ and conversions to other media types.
129
+
130
+ "Work" shall mean the work of authorship, whether in Source or
131
+ Object form, made available under the License, as indicated by a
132
+ copyright notice that is included in or attached to the work
133
+ (an example is provided in the Appendix below).
134
+
135
+ "Derivative Works" shall mean any work, whether in Source or Object
136
+ form, that is based on (or derived from) the Work and for which the
137
+ editorial revisions, annotations, elaborations, or other modifications
138
+ represent, as a whole, an original work of authorship. For the purposes
139
+ of this License, Derivative Works shall not include works that remain
140
+ separable from, or merely link (or bind by name) to the interfaces of,
141
+ the Work and Derivative Works thereof.
142
+
143
+ "Contribution" shall mean any work of authorship, including
144
+ the original version of the Work and any modifications or additions
145
+ to that Work or Derivative Works thereof, that is intentionally
146
+ submitted to Licensor for inclusion in the Work by the copyright owner
147
+ or by an individual or Legal Entity authorized to submit on behalf of
148
+ the copyright owner. For the purposes of this definition, "submitted"
149
+ means any form of electronic, verbal, or written communication sent
150
+ to the Licensor or its representatives, including but not limited to
151
+ communication on electronic mailing lists, source code control systems,
152
+ and issue tracking systems that are managed by, or on behalf of, the
153
+ Licensor for the purpose of discussing and improving the Work, but
154
+ excluding communication that is conspicuously marked or otherwise
155
+ designated in writing by the copyright owner as "Not a Contribution."
156
+
157
+ "Contributor" shall mean Licensor and any individual or Legal Entity
158
+ on behalf of whom a Contribution has been received by Licensor and
159
+ subsequently incorporated within the Work.
160
+
161
+ 2. Grant of Copyright License. Subject to the terms and conditions of
162
+ this License, each Contributor hereby grants to You a perpetual,
163
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
164
+ copyright license to reproduce, prepare Derivative Works of,
165
+ publicly display, publicly perform, sublicense, and distribute the
166
+ Work and such Derivative Works in Source or Object form.
167
+
168
+ 3. Grant of Patent License. Subject to the terms and conditions of
169
+ this License, each Contributor hereby grants to You a perpetual,
170
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
171
+ (except as stated in this section) patent license to make, have made,
172
+ use, offer to sell, sell, import, and otherwise transfer the Work,
173
+ where such license applies only to those patent claims licensable
174
+ by such Contributor that are necessarily infringed by their
175
+ Contribution(s) alone or by combination of their Contribution(s)
176
+ with the Work to which such Contribution(s) was submitted. If You
177
+ institute patent litigation against any entity (including a
178
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
179
+ or a Contribution incorporated within the Work constitutes direct
180
+ or contributory patent infringement, then any patent licenses
181
+ granted to You under this License for that Work shall terminate
182
+ as of the date such litigation is filed.
183
+
184
+ 4. Redistribution. You may reproduce and distribute copies of the
185
+ Work or Derivative Works thereof in any medium, with or without
186
+ modifications, and in Source or Object form, provided that You
187
+ meet the following conditions:
188
+
189
+ (a) You must give any other recipients of the Work or
190
+ Derivative Works a copy of this License; and
191
+
192
+ (b) You must cause any modified files to carry prominent notices
193
+ stating that You changed the files; and
194
+
195
+ (c) You must retain, in the Source form of any Derivative Works
196
+ that You distribute, all copyright, patent, trademark, and
197
+ attribution notices from the Source form of the Work,
198
+ excluding those notices that do not pertain to any part of
199
+ the Derivative Works; and
200
+
201
+ (d) If the Work includes a "NOTICE" text file as part of its
202
+ distribution, then any Derivative Works that You distribute must
203
+ include a readable copy of the attribution notices contained
204
+ within such NOTICE file, excluding those notices that do not
205
+ pertain to any part of the Derivative Works, in at least one
206
+ of the following places: within a NOTICE text file distributed
207
+ as part of the Derivative Works; within the Source form or
208
+ documentation, if provided along with the Derivative Works; or,
209
+ within a display generated by the Derivative Works, if and
210
+ wherever such third-party notices normally appear. The contents
211
+ of the NOTICE file are for informational purposes only and
212
+ do not modify the License. You may add Your own attribution
213
+ notices within Derivative Works that You distribute, alongside
214
+ or as an addendum to the NOTICE text from the Work, provided
215
+ that such additional attribution notices cannot be construed
216
+ as modifying the License.
217
+
218
+ You may add Your own copyright statement to Your modifications and
219
+ may provide additional or different license terms and conditions
220
+ for use, reproduction, or distribution of Your modifications, or
221
+ for any such Derivative Works as a whole, provided Your use,
222
+ reproduction, and distribution of the Work otherwise complies with
223
+ the conditions stated in this License.
224
+
225
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
226
+ any Contribution intentionally submitted for inclusion in the Work
227
+ by You to the Licensor shall be under the terms and conditions of
228
+ this License, without any additional terms or conditions.
229
+ Notwithstanding the above, nothing herein shall supersede or modify
230
+ the terms of any separate license agreement you may have executed
231
+ with Licensor regarding such Contributions.
232
+
233
+ 6. Trademarks. This License does not grant permission to use the trade
234
+ names, trademarks, service marks, or product names of the Licensor,
235
+ except as required for reasonable and customary use in describing the
236
+ origin of the Work and reproducing the content of the NOTICE file.
237
+
238
+ 7. Disclaimer of Warranty. Unless required by applicable law or
239
+ agreed to in writing, Licensor provides the Work (and each
240
+ Contributor provides its Contributions) on an "AS IS" BASIS,
241
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
242
+ implied, including, without limitation, any warranties or conditions
243
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
244
+ PARTICULAR PURPOSE. You are solely responsible for determining the
245
+ appropriateness of using or redistributing the Work and assume any
246
+ risks associated with Your exercise of permissions under this License.
247
+
248
+ 8. Limitation of Liability. In no event and under no legal theory,
249
+ whether in tort (including negligence), contract, or otherwise,
250
+ unless required by applicable law (such as deliberate and grossly
251
+ negligent acts) or agreed to in writing, shall any Contributor be
252
+ liable to You for damages, including any direct, indirect, special,
253
+ incidental, or consequential damages of any character arising as a
254
+ result of this License or out of the use or inability to use the
255
+ Work (including but not limited to damages for loss of goodwill,
256
+ work stoppage, computer failure or malfunction, or any and all
257
+ other commercial damages or losses), even if such Contributor
258
+ has been advised of the possibility of such damages.
259
+
260
+ 9. Accepting Warranty or Additional Liability. While redistributing
261
+ the Work or Derivative Works thereof, You may choose to offer,
262
+ and charge a fee for, acceptance of support, warranty, indemnity,
263
+ or other liability obligations and/or rights consistent with this
264
+ License. However, in accepting such obligations, You may act only
265
+ on Your own behalf and on Your sole responsibility, not on behalf
266
+ of any other Contributor, and only if You agree to indemnify,
267
+ defend, and hold each Contributor harmless for any liability
268
+ incurred by, or claims asserted against, such Contributor by reason
269
+ of your accepting any such warranty or additional liability.
270
+
271
+ END OF TERMS AND CONDITIONS
272
+
273
+ APPENDIX: How to apply the Apache License to your work.
274
+
275
+ To apply the Apache License to your work, attach the following
276
+ boilerplate notice, with the fields enclosed by brackets "{}"
277
+ replaced with your own identifying information. (Don't include
278
+ the brackets!) The text should be enclosed in the appropriate
279
+ comment syntax for the file format. We also recommend that a
280
+ file or class name and description of purpose be included on the
281
+ same "printed page" as the copyright notice for easier
282
+ identification within third-party archives.
283
+
284
+ Copyright 2014 Mozilla
285
+
286
+ Licensed under the Apache License, Version 2.0 (the "License");
287
+ you may not use this file except in compliance with the License.
288
+ You may obtain a copy of the License at
289
+
290
+ http://www.apache.org/licenses/LICENSE-2.0
291
+
292
+ Unless required by applicable law or agreed to in writing, software
293
+ distributed under the License is distributed on an "AS IS" BASIS,
294
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
295
+ See the License for the specific language governing permissions and
296
+ limitations under the License.
package/package.json CHANGED
@@ -1,27 +1,35 @@
1
1
  {
2
2
  "name": "@shoplineos/cli",
3
- "version": "1.5.2",
3
+ "version": "1.5.5",
4
4
  "description": "A CLI tool to build for the Shopline platform",
5
+ "packageManager": "pnpm@10.26.2",
5
6
  "bin": {
6
7
  "sl": "./bin/index.js"
7
8
  },
8
9
  "files": [
9
- "dist"
10
+ "dist",
11
+ "!dist/**/*.map"
10
12
  ],
11
13
  "scripts": {
12
14
  "lint": "eslint src/*",
13
- "test:npmjs": "pnpm compile:swc:npmjs --is-test && cross-env BUILD_MODE=npmjs jest",
15
+ "test:npmjs": "pnpm compile:swc:npmjs --is-test && cross-env BUILD_MODE=npmjs jest --runInBand && pnpm test:sourcemaps",
14
16
  "compile:swc:npmjs": "zx scripts/genConf.mjs --dot-env npmjs",
15
17
  "watch:npmjs": "cross-env MODE=watch pnpm build:npmjs --watch",
16
18
  "build:npmjs": "pnpm compile:swc:npmjs && zx scripts/build.mjs --dot-env npmjs",
17
19
  "release:npmjs": "zx scripts/release.mjs --npm-registry npmjs",
18
20
  "compile:swc:inshopline": "zx scripts/genConf.mjs --dot-env inshopline",
19
- "test:inshopline": "pnpm compile:swc:inshopline --is-test && cross-env BUILD_MODE=inshopline jest",
21
+ "test:inshopline": "pnpm compile:swc:inshopline --is-test && cross-env BUILD_MODE=inshopline jest --runInBand && pnpm test:sourcemaps",
20
22
  "watch:inshopline": "cross-env MODE=watch pnpm build:inshopline --watch",
21
23
  "build:inshopline": "pnpm compile:swc:inshopline && zx scripts/build.mjs --dot-env=inshopline",
22
24
  "release:inshopline": "zx scripts/release.mjs --npm-registry inshopline",
25
+ "bundle:apm": "zx scripts/build-apm-vendor.mjs",
23
26
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
24
- "upload:sourcemaps": "zx scripts/upload-source-maps.mjs --npm-registry npmjs"
27
+ "upload:sourcemaps:sentry": "zx scripts/upload-source-maps.mjs",
28
+ "upload:sourcemaps:apm": "zx scripts/upload-apm-source-maps.mjs",
29
+ "upload:sourcemaps:release": "zx scripts/upload-release-source-maps.mjs",
30
+ "test:sourcemaps": "zx scripts/test-sourcemap-utils.mjs",
31
+ "check-node-compat": "node scripts/min-node-version.mjs",
32
+ "check-node-compat:prod": "node scripts/min-node-version.mjs --prod"
25
33
  },
26
34
  "repository": {
27
35
  "type": "git"
@@ -124,7 +132,6 @@
124
132
  ]
125
133
  },
126
134
  "resolutions": {
127
- "@types/koa": "*",
128
- "@sentry-internal/tracing": "*"
135
+ "@types/koa": "*"
129
136
  }
130
137
  }
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:()=>r});const e=require("commander"),n=function(e){return e&&e.__esModule?e:{default:e}}(require("../../services/extension")),t=require("../../utils/messages"),o=require("./common-options");function r(){let r=new e.Command("tunnel"),s=new e.Command("auth");return s.description((0,t.getMessage)("extension.tunnel.auth")).addArgument(new e.Argument("<token>","ngrok token")).action(n.default.tunnelAction),r.description((0,t.getMessage)("extension.tunnel.help")).addCommand(s).addOption((0,o.getVerboseOption)()).showHelpAfterError(),r}
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSocketServer=getSocketServer;var SocketIO=_interopRequireWildcard(require("socket.io"));function _interopRequireWildcard(a){if(a&&a.__esModule)return a;var b={};if(null!=a){for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}}return b.default=a,b}let io;function createSocketServer(a){io=new SocketIO.Server(a)}function getSocketServer(a){return io||createSocketServer(a),io}
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:()=>i});const e=function(e){return e&&e.__esModule?e:{default:e}}(require("ora")),r=require("./api"),t=require("./resolve-env"),s=require("../../utils/messages"),n=require("../../helpers/sentry");async function i(i,a){let u,o,{EXTENSION_TITLE:c,SHOPLINE_APP_KEY:l,SHOPLINE_APP_SECRET:d,EXTENSION_ID:g,EXTENSION_UUID:f}=await (0,t.resolveEnvContents)(i,a);if(u=g&&"undefined"!==g?g:"",o=f&&"undefined"!==f?f:"",!u){let p=(0,e.default)((0,s.getMessage)("extension.register.waiting_text")).start();try{let m=await (0,r.createExtensionInstance)({appKey:l,appSecret:d,name:c}),{id:x,uuid:E}=m||{};if(!x||!E)return await Promise.reject(Error((0,s.getMessage)("extension.register.fail")));u=x,o=E,p.succeed((0,s.getMessage)("extension.register.success",{name:c}))}catch(_){return(0,n.reportBug)(_),p.fail(),Promise.reject(_.message||_)}}return{EXTENSION_ID:u,EXTENSION_TITLE:c,SHOPLINE_APP_KEY:l,SHOPLINE_APP_SECRET:d,EXTENSION_UUID:o}}
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),!function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(exports,{ValidateRule:()=>p,default:()=>_});const e=c(require("fs-extra")),t=c(require("ora")),a=c(require("path")),i=c(require("form-data")),r=c(require("filesize")),s=c(require("fast-glob")),l=require("./api"),n=require("./zip"),o=require("./const"),u=require("./utils"),d=require("../../utils/messages"),f=c(require("./validate"));function c(e){return e&&e.__esModule?e:{default:e}}class p{static async validate(){let{cwd:t}=p,i=s.default.sync("**/*",{cwd:t}),l=0,n=0,u=0;if(i.forEach(i=>{let r=a.default.join(t,i),s=e.default.statSync(r);if(s.isFile()&&p.validateFile(i)){let o=a.default.dirname(i);"blocks"===o&&(n+=s.size,u+=1),"snippets"===o&&(n+=s.size),l+=s.size}}),l>o.MAX_ALL_FILE_SIZE)throw Error(`Total size of all files must be less than ${(0,r.default)(o.MAX_ALL_FILE_SIZE)}`);if(u>o.MAX_BLOCKS_FILE_COUNT)throw Error(`Total number of files for all blocks must be less than ${o.MAX_BLOCKS_FILE_COUNT}`);if(n>o.MAX_BLOCKS_FILE_SIZE)throw Error(`Total size of all blocks html must be less than ${(0,r.default)(o.MAX_BLOCKS_FILE_SIZE)}`)}static validateFile(e){let t=a.default.join(p.cwd,e),i=a.default.dirname(e),r=a.default.extname(e),s=/\/|\\\\/;if("."===i)return!1;if(s.test(i)){let[l]=i.split(s);if(!o.SUPPORTED_BUCKETS.includes(l))throw Error(`: ${i}`)}else if(!o.SUPPORTED_BUCKETS.includes(i))throw Error(`Invalid directory: ${i}`);if("assets"===i){if(!o.SUPPORTED_ASSET_EXTS.includes(r))throw Error(`Invalid filename: ${e}; ${r} is not supported`)}else if("locales"===i){if(".json"!==r)throw Error(`Invalid filename: ${e}; Only ${o.SUPPORTED_LOCALE_EXTS.join(", ")} allowed in ${i}`)}else if(["snippets","blocks"].includes(i)){if(".html"!==r)throw Error(`Invalid filename: ${e}; Only .html allowed in ${i}`);if("blocks"===i)return p.validateBlocksSchema(t)}return!0}static validateBlocksSchema(t){let i=e.default.readFileSync(t,"utf-8"),r=(0,u.extractSchema)(i),s=a.default.relative(p.cwd,t);return(0,f.default)(r,{relativeFile:s})}}async function m(e){(0,u.removeFile)(e),await (0,n.zip)(e)}async function E(a,r,s){let n=(0,t.default)((0,d.getMessage)("extension.push.waiting_text")).start(),{SHOPLINE_APP_KEY:o,SHOPLINE_APP_SECRET:f,EXTENSION_ID:c,EXTENSION_UUID:p,EXTENSION_TITLE:m}=r;try{let E=e.default.createReadStream(a),_=new i.default;_.append("extensionFile",E),_.append("appKey",o),_.append("appSecret",f),_.append("extensionId",c),_.append("extensionUuid",p),_.append("type","THEME_APP_BLOCK"),_.append("category","THEME");let h=await (0,l.pushExtension)(_);if(h){if(h.id)return n.succeed((0,d.getMessage)("extension.push.success",{name:m,updated_at:(0,u.formatTime)(h.updateTime)})),console.log((0,d.getMessage)("extension.push.success_info",{link:(0,u.getExtensionLink)({appKey:o,extensionUuid:p,env:s})})),await Promise.resolve();return n.fail(),await Promise.reject(Error((0,d.getMessage)("extension.push.fail",{updated_at:(0,u.formatTime)(h.updateTime)})))}return n.fail(),await Promise.reject(Error((0,d.getMessage)("extension.push.fail",{updated_at:(0,u.formatTime)()})))}catch(w){return n.fail((0,d.getMessage)("extension.push.fail",{updated_at:(0,u.formatTime)()})),Promise.reject(w)}}async function _(e,t,i=process.cwd()){let{EXTENSION_TITLE:r}=e,s=a.default.join(i,`${r}.zip`);try{return p.cwd=i,await p.validate(),await m(s),await E(s,e,t),(0,u.removeFile)(s),await Promise.resolve()}catch(l){return(0,u.removeFile)(s),Promise.reject(l.message||l)}}
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"resolveEnvContents",{enumerable:!0,get:()=>s});const e=u(require("fs-extra")),r=u(require("dotenv")),t=require("./utils"),n=require("./const");function u(e){return e&&e.__esModule?e:{default:e}}async function s(u,s=process.cwd()){let o=(0,t.getEnvPath)(u,s);if(!e.default.existsSync(o))return Promise.reject(Error(n.ERRORS.ENV_FILE_NOT_FOUND));let i=r.default.parse(e.default.readFileSync(o,"utf8"));return i}
@@ -1,3 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(exports,{startNgrok:()=>l,start:()=>i,tokenPrompt:()=>s});const t=a(require("ngrok")),e=require("../../utils/output"),n=a(require("../../helpers/config")),o=require("../../utils/ui/ui"),r=require("../../utils/os"),u=require("../../utils/error");function a(t){return t&&t.__esModule?t:{default:t}}async function l(t){try{let e=await i({port:t});return e}catch(o){var n;let t=(n=o.message,/err_ngrok_108/.test(n)?"tunnel-already-running":/err_ngrok_105|err_ngrok_106|err_ngrok_107/.test(n)?"wrong-credentials":"unknown");throw new u.AbortError(`The ngrok tunnel could not be started.
2
-
3
- ${o.message}`,function(t){if("tunnel-already-running"===t){let{platform:t}=(0,r.platformAndArch)(),n="Kill all the ngrok processes with ";return"windows"===t?n.concat((0,e.outputContent)`${e.outputToken.genericShellCommand("taskkill /f /im ngrok.exe")}`.value):n.concat((0,e.outputContent)`${e.outputToken.genericShellCommand("killall ngrok")}`.value)}if("wrong-credentials"===t)return(0,e.outputContent)`Update your ngrok token with ${e.outputToken.genericShellCommand("shopline extension tunnel auth <token>")}`.value}(t))}}async function i(o){var r;let u=null!==(r=n.default.ngrokToken)&&void 0!==r?r:await s();(0,e.outputDebug)((0,e.outputContent)`You input the token: ${e.outputToken.cyan(u)}`),await c(u);let a=await t.default.connect({proto:"http",addr:o.port});return{url:a,token:u}}async function s(t=!0){let n="https://dashboard.ngrok.com/get-started/your-authtoken",r=e.outputToken.link(n,n);return(0,e.outputInfo)((0,e.outputContent)`${t?"\nTo make your local code accessible to your dev store, you need to use a Shopline-trusted tunneling service called ngrok. ":""}To sign up and get an auth token: ${r}\n`),(0,o.renderTextPrompt)({password:!0,message:"Enter you ngrok token.",validate:t=>{if(0===t.length)return"Token can't be empty"}})}async function c(e){let n=null!=e?e:await s(!1);await t.default.authtoken(n)}
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:()=>r});const e=function(e){return e&&e.__esModule?e:{default:e}}(require("fs-extra")),t=require("./utils");function r(r,n,u=process.cwd()){let i=Reflect.ownKeys(n).map(e=>"undefined"===n[e]?"":`${e}=${n[e]}`).join("\n"),o=(0,t.getEnvPath)(r,u);e.default.writeFileSync(o,i)}
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(exports,{isDraftFile:()=>c,getDraftFiles:()=>o,handleDraft:()=>f});const e=n(require("jiti")),t=n(require("fast-glob")),r=require("./api"),a=require("./utils"),i=require("../../utils/path");function n(e){return e&&e.__esModule?e:{default:e}}const u=(0,e.default)(__filename),{default:l}=u("multimatch"),s=["**/templates/*.json","**/config/settings_data.json"];function c(e){let t=l(e,s);return t.length>0}function o(e=process.cwd(),r={absolute:!0}){let a=t.default.sync(s,{cwd:e,...r});return a}function f(e,t,n=(0,i.cwd)()){if(!c(t)||!e)return;let u=`${(0,a.parseFileName)(t,n)}.preview`,{fileContent:l}=(0,a.parseFile)(t,n);return{fileName:u,create:async()=>{await (0,r.createFile)(e,{fileName:u,fileContent:l})},update:async()=>{await (0,r.updateFile)(e,{fileName:u,fileContent:l})},delete:async()=>{await (0,r.deleteFile)(e,{fileName:u})}}}
@@ -1 +0,0 @@
1
- "use strict";var EThemeType,EThemeStatus,EThemeType,EThemeStatus;Object.defineProperty(exports,"__esModule",{value:!0}),exports.EThemeStatus=exports.EThemeType=void 0,exports.EThemeType=EThemeType,(EThemeType=EThemeType||(exports.EThemeType=EThemeType={}))[EThemeType.Mall=0]="Mall",EThemeType[EThemeType.Private=1]="Private",exports.EThemeStatus=EThemeStatus,(EThemeStatus=EThemeStatus||(exports.EThemeStatus=EThemeStatus={}))[EThemeStatus.Delete=-1]="Delete",EThemeStatus[EThemeStatus.Unpublished=0]="Unpublished",EThemeStatus[EThemeStatus.Published=1]="Published",EThemeStatus[EThemeStatus.Development=2]="Development"
package/dist/utils/ui.js DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"newListr",{enumerable:!0,get:()=>r});const e=require("listr2");function r(r,t){return new e.Listr(r,{concurrent:!1,exitOnError:!0,...t})}