@shopify/cli 3.59.0 → 3.59.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy.rb +17 -12
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/api.rb +3 -1
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/repl/auth_middleware.rb +4 -1
- package/dist/assets/cli-ruby/test/shopify-cli/theme/dev_server/integration_test.rb +1 -1
- package/dist/assets/cli-ruby/test/shopify-cli/theme/dev_server/proxy_test.rb +14 -14
- package/dist/assets/cli-ruby/test/shopify-cli/theme/repl/api_test.rb +3 -2
- package/dist/{chunk-3N5TYEOJ.js → chunk-3GNPZUJY.js} +1 -1
- package/dist/{chunk-IEB4F2KL.js → chunk-3IZNRZAA.js} +4 -4
- package/dist/{chunk-3FAYPDRE.js → chunk-3SWG3WX6.js} +3 -3
- package/dist/{chunk-VQ7HIBHK.js → chunk-55MPIQCI.js} +1 -1
- package/dist/{chunk-VRVCUORY.js → chunk-55S3HB3L.js} +1 -1
- package/dist/{chunk-5RO6P4KC.js → chunk-563LJHWO.js} +3 -3
- package/dist/{chunk-5INB6W36.js → chunk-5KLK7XCS.js} +2 -2
- package/dist/{chunk-W6C6L4NU.js → chunk-5RBKPYJP.js} +2 -2
- package/dist/{chunk-RY6HWBIC.js → chunk-5XSLB6YF.js} +2 -2
- package/dist/{chunk-VIZQZ55O.js → chunk-7ILHA2ZK.js} +5 -5
- package/dist/{chunk-HYTSORDJ.js → chunk-7NHPEC6Q.js} +4 -4
- package/dist/{chunk-4B2YUKUA.js → chunk-7RWKDDVY.js} +3 -3
- package/dist/{chunk-UNHOUSEY.js → chunk-BQXMYE7I.js} +3 -3
- package/dist/{chunk-AL5Y74NR.js → chunk-C3M3CYNZ.js} +1 -1
- package/dist/{chunk-YFA2TIGX.js → chunk-DBIH5B5S.js} +2 -2
- package/dist/{chunk-O54SR2VW.js → chunk-G3E6ZMTC.js} +1 -1
- package/dist/{chunk-LXSVXK4X.js → chunk-HJFYBTAC.js} +2 -2
- package/dist/{chunk-O6G6LT7G.js → chunk-K7PV6FRP.js} +3 -3
- package/dist/{chunk-LX5XSNJA.js → chunk-LAEBMOYT.js} +2 -2
- package/dist/{chunk-Q4DJPQVJ.js → chunk-NHMTG3XR.js} +1 -1
- package/dist/{chunk-24HS7TWV.js → chunk-OEX6JDK6.js} +1 -1
- package/dist/{chunk-WOXAXDMN.js → chunk-PKIEJXSZ.js} +2 -2
- package/dist/{chunk-5Y3PYHUV.js → chunk-RLXHXFCQ.js} +1 -1
- package/dist/{chunk-IQHXR2SR.js → chunk-RYC5LFN2.js} +2 -2
- package/dist/{chunk-PIMN67IT.js → chunk-SWLATKE3.js} +3 -3
- package/dist/{chunk-MALZ76OP.js → chunk-UBA54P7M.js} +3 -3
- package/dist/{chunk-X6A6KRIL.js → chunk-UNTYMY4S.js} +1 -1
- package/dist/{chunk-LKVSWZE2.js → chunk-WASVWBNY.js} +5 -5
- package/dist/{chunk-S7GFY3LX.js → chunk-X7CGNCLO.js} +2 -2
- package/dist/{chunk-A3PWVEGU.js → chunk-XCEBJ6L5.js} +1 -1
- package/dist/{chunk-OK52H3G3.js → chunk-Z2X3TPD2.js} +1 -1
- package/dist/cli/commands/auth/logout.js +9 -9
- package/dist/cli/commands/auth/logout.test.js +10 -10
- package/dist/cli/commands/debug/command-flags.js +9 -9
- package/dist/cli/commands/demo/catalog.js +10 -10
- package/dist/cli/commands/demo/generate-file.js +10 -10
- package/dist/cli/commands/demo/index.js +9 -9
- package/dist/cli/commands/demo/print-ai-prompt.js +10 -10
- package/dist/cli/commands/docs/generate.js +9 -9
- package/dist/cli/commands/docs/generate.test.js +9 -9
- package/dist/cli/commands/help.js +9 -9
- package/dist/cli/commands/hydrogen/init.js +9 -9
- package/dist/cli/commands/kitchen-sink/async.js +10 -10
- package/dist/cli/commands/kitchen-sink/async.test.js +10 -10
- package/dist/cli/commands/kitchen-sink/index.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/prompts.js +10 -10
- package/dist/cli/commands/kitchen-sink/prompts.test.js +10 -10
- package/dist/cli/commands/kitchen-sink/static.js +10 -10
- package/dist/cli/commands/kitchen-sink/static.test.js +10 -10
- package/dist/cli/commands/search.js +10 -10
- package/dist/cli/commands/upgrade.js +9 -9
- package/dist/cli/commands/version.js +10 -10
- package/dist/cli/commands/version.test.js +10 -10
- package/dist/cli/services/commands/search.js +2 -2
- package/dist/cli/services/commands/search.test.js +2 -2
- package/dist/cli/services/commands/version.js +4 -4
- package/dist/cli/services/commands/version.test.js +5 -5
- package/dist/cli/services/demo.js +2 -2
- package/dist/cli/services/demo.test.js +2 -2
- package/dist/cli/services/kitchen-sink/async.js +2 -2
- package/dist/cli/services/kitchen-sink/prompts.js +2 -2
- package/dist/cli/services/kitchen-sink/static.js +2 -2
- package/dist/cli/services/upgrade.js +3 -3
- package/dist/cli/services/upgrade.test.js +5 -5
- package/dist/{custom-oclif-loader-UTMYCFLJ.js → custom-oclif-loader-KO5GEFDA.js} +1 -1
- package/dist/{error-handler-MZEB7CLD.js → error-handler-QEGFFBIC.js} +7 -7
- package/dist/hooks/init.js +1 -1
- package/dist/hooks/postrun.js +6 -6
- package/dist/hooks/prerun.js +4 -4
- package/dist/index.js +96 -65
- package/dist/{local-SH2XLH36.js → local-P227YBVR.js} +1 -1
- package/dist/{node-package-manager-6XDVWLBL.js → node-package-manager-ES5NCVEG.js} +2 -2
- package/dist/{system-CVNXYMLE.js → system-IG66OLS6.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-4BJ4KPWN.js → ui-3V5SZVHP.js} +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -25,8 +25,8 @@ module ShopifyCLI
|
|
|
25
25
|
]
|
|
26
26
|
|
|
27
27
|
class Proxy
|
|
28
|
-
SESSION_COOKIE_NAME = "
|
|
29
|
-
SESSION_COOKIE_REGEXP = /#{SESSION_COOKIE_NAME}=(
|
|
28
|
+
SESSION_COOKIE_NAME = "_shopify_essential"
|
|
29
|
+
SESSION_COOKIE_REGEXP = /#{SESSION_COOKIE_NAME}=([^;]*)(;|$)/
|
|
30
30
|
SESSION_COOKIE_MAX_AGE = 60 * 60 * 23 # 1 day - leeway of 1h
|
|
31
31
|
IGNORED_ENDPOINTS = %w[
|
|
32
32
|
shopify/monorail
|
|
@@ -58,7 +58,8 @@ module ShopifyCLI
|
|
|
58
58
|
query = URI.decode_www_form(env["QUERY_STRING"])
|
|
59
59
|
replace_templates = build_replacement_param(env)
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
response = set_preview_theme_id(env, query, headers)
|
|
62
|
+
return serve_response(response, env) if response
|
|
62
63
|
|
|
63
64
|
response = if replace_templates.any?
|
|
64
65
|
# Pass to SFR the recently modified templates in `replace_templates` or
|
|
@@ -87,16 +88,14 @@ module ShopifyCLI
|
|
|
87
88
|
@core_endpoints << env["PATH_INFO"]
|
|
88
89
|
end
|
|
89
90
|
|
|
90
|
-
|
|
91
|
-
body = [body] unless body.respond_to?(:each)
|
|
92
|
-
[response.code, headers, body]
|
|
91
|
+
serve_response(response, env, headers)
|
|
93
92
|
end
|
|
94
93
|
|
|
95
94
|
def secure_session_id
|
|
96
95
|
if secure_session_id_expired?
|
|
97
|
-
@ctx.debug("Refreshing preview
|
|
96
|
+
@ctx.debug("Refreshing preview _shopify_essential cookie")
|
|
98
97
|
response = request("HEAD", "/", query: [[:preview_theme_id, theme_id]])
|
|
99
|
-
@secure_session_id =
|
|
98
|
+
@secure_session_id = extract_shopify_essential_from_response_headers(response)
|
|
100
99
|
@last_session_cookie_refresh = Time.now
|
|
101
100
|
end
|
|
102
101
|
|
|
@@ -105,7 +104,13 @@ module ShopifyCLI
|
|
|
105
104
|
|
|
106
105
|
private
|
|
107
106
|
|
|
108
|
-
def
|
|
107
|
+
def serve_response(response, env, headers = get_response_headers(response, env))
|
|
108
|
+
body = patch_body(env, response.body)
|
|
109
|
+
body = [body] unless body.respond_to?(:each)
|
|
110
|
+
[response.code, headers, body]
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def set_preview_theme_id(env, query, headers)
|
|
109
114
|
if env["PATH_INFO"].start_with?("/password")
|
|
110
115
|
@cache_cleaned = false
|
|
111
116
|
return
|
|
@@ -215,7 +220,7 @@ module ShopifyCLI
|
|
|
215
220
|
Time.now - @last_session_cookie_refresh >= SESSION_COOKIE_MAX_AGE
|
|
216
221
|
end
|
|
217
222
|
|
|
218
|
-
def
|
|
223
|
+
def extract_shopify_essential_from_response_headers(headers)
|
|
219
224
|
return unless headers["set-cookie"]
|
|
220
225
|
|
|
221
226
|
headers["set-cookie"][SESSION_COOKIE_REGEXP, 1]
|
|
@@ -235,9 +240,9 @@ module ShopifyCLI
|
|
|
235
240
|
response_headers["location"].gsub!(%r{(https://#{shop})}, "http://#{host(env)}")
|
|
236
241
|
end
|
|
237
242
|
|
|
238
|
-
new_session_id =
|
|
243
|
+
new_session_id = extract_shopify_essential_from_response_headers(response_headers)
|
|
239
244
|
if new_session_id
|
|
240
|
-
@ctx.debug("New
|
|
245
|
+
@ctx.debug("New _shopify_essential cookie from response")
|
|
241
246
|
@secure_session_id = new_session_id
|
|
242
247
|
@last_session_cookie_refresh = Time.now
|
|
243
248
|
end
|
|
@@ -4,6 +4,8 @@ module ShopifyCLI
|
|
|
4
4
|
module Theme
|
|
5
5
|
class Repl
|
|
6
6
|
class Api
|
|
7
|
+
SESSION_COOKIE_NAME = DevServer::Proxy::SESSION_COOKIE_NAME
|
|
8
|
+
|
|
7
9
|
attr_reader :ctx, :url, :repl
|
|
8
10
|
|
|
9
11
|
def initialize(ctx, url, repl)
|
|
@@ -60,7 +62,7 @@ module ShopifyCLI
|
|
|
60
62
|
end
|
|
61
63
|
|
|
62
64
|
def cookie
|
|
63
|
-
@cookie ||= "storefront_digest=#{repl.storefront_digest};
|
|
65
|
+
@cookie ||= "storefront_digest=#{repl.storefront_digest}; #{SESSION_COOKIE_NAME}=#{repl.secure_session_id}"
|
|
64
66
|
end
|
|
65
67
|
|
|
66
68
|
def shop
|
|
@@ -17,7 +17,7 @@ module ShopifyCLI
|
|
|
17
17
|
@env = env
|
|
18
18
|
@env["PATH_INFO"] = PASSWORD_PAGE_PATH if redirect_to_password?(@env)
|
|
19
19
|
|
|
20
|
-
return @app.call(@env) if password_page?(@env)
|
|
20
|
+
return @app.call(@env) if password_page?(@env) || (storefront_session.nil? || secure_session.nil?)
|
|
21
21
|
|
|
22
22
|
authenticate!
|
|
23
23
|
|
|
@@ -26,6 +26,9 @@ module ShopifyCLI
|
|
|
26
26
|
# from shutting down the server.
|
|
27
27
|
shutdown if index_page?(@env)
|
|
28
28
|
|
|
29
|
+
# Set preview_theme_id into the session.
|
|
30
|
+
@app.call(@env)
|
|
31
|
+
|
|
29
32
|
[
|
|
30
33
|
200,
|
|
31
34
|
{
|
|
@@ -49,7 +49,7 @@ module ShopifyCLI
|
|
|
49
49
|
.to_return(
|
|
50
50
|
status: 200,
|
|
51
51
|
headers: {
|
|
52
|
-
"Set-Cookie" => "
|
|
52
|
+
"Set-Cookie" => "_shopify_essential=abcd1234",
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
stub_sfr = stub_request(:get, "https://dev-theme-server-store.myshopify.com/?_fd=0&pb=0")
|
|
@@ -104,13 +104,13 @@ module ShopifyCLI
|
|
|
104
104
|
.with(headers: { "X-Shopify-Shop" => store })
|
|
105
105
|
.to_return(
|
|
106
106
|
status: 200,
|
|
107
|
-
headers: { "Set-Cookie" => "
|
|
107
|
+
headers: { "Set-Cookie" => "_shopify_essential=#{SECURE_SESSION_ID}" },
|
|
108
108
|
)
|
|
109
109
|
stub_request(:get, "https://theme-kit-access.shopifyapps.com/cli/sfr/?_fd=0&pb=0")
|
|
110
110
|
.with(
|
|
111
111
|
headers: {
|
|
112
112
|
"Content-Length" => "0",
|
|
113
|
-
"Cookie" => "
|
|
113
|
+
"Cookie" => "_shopify_essential=deadbeef",
|
|
114
114
|
"X-Shopify-Shop" => store,
|
|
115
115
|
},
|
|
116
116
|
)
|
|
@@ -163,20 +163,20 @@ module ShopifyCLI
|
|
|
163
163
|
|
|
164
164
|
def test_update_session_cookie_when_returned_from_backend
|
|
165
165
|
stub_session_id_request
|
|
166
|
-
|
|
166
|
+
new_shopify_essential = "#{SECURE_SESSION_ID}2"
|
|
167
167
|
|
|
168
168
|
# POST response returning a new session cookie (Set-Cookie)
|
|
169
169
|
stub_request(:post, "https://dev-theme-server-store.myshopify.com/account/login?_fd=0&pb=0")
|
|
170
170
|
.with(
|
|
171
171
|
headers: {
|
|
172
|
-
"Cookie" => "
|
|
172
|
+
"Cookie" => "_shopify_essential=#{SECURE_SESSION_ID}",
|
|
173
173
|
},
|
|
174
174
|
)
|
|
175
175
|
.to_return(
|
|
176
176
|
status: 200,
|
|
177
177
|
body: "",
|
|
178
178
|
headers: {
|
|
179
|
-
"Set-Cookie" => "
|
|
179
|
+
"Set-Cookie" => "_shopify_essential=#{new_shopify_essential}",
|
|
180
180
|
},
|
|
181
181
|
)
|
|
182
182
|
|
|
@@ -184,7 +184,7 @@ module ShopifyCLI
|
|
|
184
184
|
stub_request(:get, "https://dev-theme-server-store.myshopify.com/?_fd=0&pb=0")
|
|
185
185
|
.with(
|
|
186
186
|
headers: {
|
|
187
|
-
"Cookie" => "
|
|
187
|
+
"Cookie" => "_shopify_essential=#{new_shopify_essential}",
|
|
188
188
|
},
|
|
189
189
|
)
|
|
190
190
|
.to_return(status: 200)
|
|
@@ -319,24 +319,24 @@ module ShopifyCLI
|
|
|
319
319
|
end
|
|
320
320
|
end
|
|
321
321
|
|
|
322
|
-
def
|
|
322
|
+
def test_replaces_shopify_essential_cookie
|
|
323
323
|
stub_request(:get, "https://dev-theme-server-store.myshopify.com/?_fd=0&pb=0")
|
|
324
324
|
.with(
|
|
325
325
|
headers: {
|
|
326
|
-
"Cookie" => "
|
|
326
|
+
"Cookie" => "_shopify_essential=#{SECURE_SESSION_ID}",
|
|
327
327
|
},
|
|
328
328
|
)
|
|
329
329
|
|
|
330
330
|
stub_session_id_request
|
|
331
331
|
request.get("/",
|
|
332
|
-
"HTTP_COOKIE" => "
|
|
332
|
+
"HTTP_COOKIE" => "_shopify_essential=a12cef")
|
|
333
333
|
end
|
|
334
334
|
|
|
335
|
-
def
|
|
335
|
+
def test_appends_shopify_essential_cookie
|
|
336
336
|
stub_request(:get, "https://dev-theme-server-store.myshopify.com/?_fd=0&pb=0")
|
|
337
337
|
.with(
|
|
338
338
|
headers: {
|
|
339
|
-
"Cookie" => "cart_currency=CAD; secure_customer_sig=;
|
|
339
|
+
"Cookie" => "cart_currency=CAD; secure_customer_sig=; _shopify_essential=#{SECURE_SESSION_ID}",
|
|
340
340
|
},
|
|
341
341
|
)
|
|
342
342
|
|
|
@@ -373,7 +373,7 @@ module ShopifyCLI
|
|
|
373
373
|
"Accept-Encoding" => "none",
|
|
374
374
|
"Authorization" => "Bearer TOKEN",
|
|
375
375
|
"Content-Type" => "application/x-www-form-urlencoded",
|
|
376
|
-
"Cookie" => "
|
|
376
|
+
"Cookie" => "_shopify_essential=#{SECURE_SESSION_ID}",
|
|
377
377
|
"Host" => "dev-theme-server-store.myshopify.com",
|
|
378
378
|
"X-Forwarded-For" => "",
|
|
379
379
|
"User-Agent" => "Shopify CLI",
|
|
@@ -597,7 +597,7 @@ module ShopifyCLI
|
|
|
597
597
|
def default_proxy_headers(domain = "myshopify.com")
|
|
598
598
|
{
|
|
599
599
|
"Accept-Encoding" => "none",
|
|
600
|
-
"Cookie" => "
|
|
600
|
+
"Cookie" => "_shopify_essential=#{SECURE_SESSION_ID}",
|
|
601
601
|
"Host" => "dev-theme-server-store.#{domain}",
|
|
602
602
|
"X-Forwarded-For" => "",
|
|
603
603
|
"User-Agent" => "Shopify CLI",
|
|
@@ -614,7 +614,7 @@ module ShopifyCLI
|
|
|
614
614
|
.to_return(
|
|
615
615
|
status: 200,
|
|
616
616
|
headers: {
|
|
617
|
-
"Set-Cookie" => "
|
|
617
|
+
"Set-Cookie" => "_shopify_essential=#{SECURE_SESSION_ID}",
|
|
618
618
|
},
|
|
619
619
|
)
|
|
620
620
|
end
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require "test_helper"
|
|
4
4
|
|
|
5
|
+
require "shopify_cli/theme/dev_server/proxy"
|
|
5
6
|
require "shopify_cli/theme/theme_admin_api"
|
|
6
7
|
require "shopify_cli/theme/repl/api"
|
|
7
8
|
|
|
@@ -31,7 +32,7 @@ module ShopifyCLI
|
|
|
31
32
|
headers: {
|
|
32
33
|
"Authorization" => "Bearer",
|
|
33
34
|
"Content-Type" => "application/x-www-form-urlencoded",
|
|
34
|
-
"Cookie" => "storefront_digest=storefront_session_5678;
|
|
35
|
+
"Cookie" => "storefront_digest=storefront_session_5678; _shopify_essential=secure_session_id_1234",
|
|
35
36
|
"User-Agent" => "Shopify CLI",
|
|
36
37
|
},
|
|
37
38
|
)
|
|
@@ -57,7 +58,7 @@ module ShopifyCLI
|
|
|
57
58
|
},
|
|
58
59
|
headers: {
|
|
59
60
|
"Content-Type" => "application/x-www-form-urlencoded",
|
|
60
|
-
"Cookie" => "storefront_digest=storefront_session_5678;
|
|
61
|
+
"Cookie" => "storefront_digest=storefront_session_5678; _shopify_essential=secure_session_id_1234",
|
|
61
62
|
"X-Shopify-Shop" => "store.myshopify.com",
|
|
62
63
|
},
|
|
63
64
|
)
|
|
@@ -43238,7 +43238,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
43238
43238
|
try {
|
|
43239
43239
|
await getAndSet();
|
|
43240
43240
|
} catch (error) {
|
|
43241
|
-
const { sendErrorToBugsnag } = await import("./error-handler-
|
|
43241
|
+
const { sendErrorToBugsnag } = await import("./error-handler-QEGFFBIC.js");
|
|
43242
43242
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
43243
43243
|
}
|
|
43244
43244
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
staticService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OEX6JDK6.js";
|
|
4
4
|
import {
|
|
5
5
|
asyncTasks
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RLXHXFCQ.js";
|
|
7
7
|
import {
|
|
8
8
|
prompts
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-55MPIQCI.js";
|
|
10
10
|
import {
|
|
11
11
|
base_command_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-563LJHWO.js";
|
|
13
13
|
import {
|
|
14
14
|
init_cjs_shims
|
|
15
15
|
} from "./chunk-BVGYIZ3O.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CLI_KIT_VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XCEBJ6L5.js";
|
|
4
4
|
import {
|
|
5
5
|
checkForNewVersion,
|
|
6
6
|
packageManagerFromUserAgent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z2X3TPD2.js";
|
|
8
8
|
import {
|
|
9
9
|
getOutputUpdateCLIReminder,
|
|
10
10
|
outputContent,
|
|
11
11
|
outputInfo,
|
|
12
12
|
outputToken
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3GNPZUJY.js";
|
|
14
14
|
import {
|
|
15
15
|
init_cjs_shims
|
|
16
16
|
} from "./chunk-BVGYIZ3O.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandler,
|
|
3
3
|
registerCleanBugsnagErrorsFromWithinPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7NHPEC6Q.js";
|
|
5
5
|
import {
|
|
6
6
|
hashString
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UBA54P7M.js";
|
|
8
8
|
import {
|
|
9
9
|
AbortError,
|
|
10
10
|
addPublicMetadata,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
renderWarning,
|
|
21
21
|
terminalSupportsRawMode,
|
|
22
22
|
underscore
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3GNPZUJY.js";
|
|
24
24
|
import {
|
|
25
25
|
require_lib
|
|
26
26
|
} from "./chunk-3MMF34G4.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
findUpAndReadPackageJson,
|
|
5
5
|
getPackageManager,
|
|
6
6
|
usesWorkspaces
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z2X3TPD2.js";
|
|
8
8
|
import {
|
|
9
9
|
AbortError,
|
|
10
10
|
exec,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
outputSuccess,
|
|
16
16
|
outputToken,
|
|
17
17
|
outputWarn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3GNPZUJY.js";
|
|
19
19
|
import {
|
|
20
20
|
dirname,
|
|
21
21
|
joinPath,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-WBWFZ6IT.js";
|
|
7
7
|
import {
|
|
8
8
|
base_command_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-563LJHWO.js";
|
|
10
10
|
import {
|
|
11
11
|
ClientError,
|
|
12
12
|
GraphQLClient,
|
|
@@ -21,16 +21,16 @@ import {
|
|
|
21
21
|
httpsAgent,
|
|
22
22
|
sanitizedHeadersOutput,
|
|
23
23
|
shopifyFetch
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WASVWBNY.js";
|
|
25
25
|
import {
|
|
26
26
|
base64URLEncode,
|
|
27
27
|
randomBytes,
|
|
28
28
|
randomHex,
|
|
29
29
|
sha256
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UBA54P7M.js";
|
|
31
31
|
import {
|
|
32
32
|
require_semver
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-Z2X3TPD2.js";
|
|
34
34
|
import {
|
|
35
35
|
AbortError,
|
|
36
36
|
BugError,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
spinFqdn,
|
|
58
58
|
stringifyMessage,
|
|
59
59
|
useDeviceAuth
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-3GNPZUJY.js";
|
|
61
61
|
import {
|
|
62
62
|
envPaths,
|
|
63
63
|
sessionConstants
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
fanoutHooks,
|
|
6
6
|
reportAnalyticsEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WASVWBNY.js";
|
|
8
8
|
import {
|
|
9
9
|
getEnvironmentData
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UBA54P7M.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_KIT_VERSION
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XCEBJ6L5.js";
|
|
14
14
|
import {
|
|
15
15
|
AbortSilentError,
|
|
16
16
|
CancelExecution,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
printEventsJson,
|
|
25
25
|
require_stacktracey,
|
|
26
26
|
shouldReportError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3GNPZUJY.js";
|
|
28
28
|
import {
|
|
29
29
|
bugsnagApiKey
|
|
30
30
|
} from "./chunk-QI5VKSMW.js";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-CXG2USMP.js";
|
|
4
4
|
import {
|
|
5
5
|
demoStepsSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C3M3CYNZ.js";
|
|
7
7
|
import {
|
|
8
8
|
base_command_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-563LJHWO.js";
|
|
10
10
|
import {
|
|
11
11
|
outputInfo,
|
|
12
12
|
renderInfo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3GNPZUJY.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_cjs_shims
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
demo
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C3M3CYNZ.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-563LJHWO.js";
|
|
7
7
|
import {
|
|
8
8
|
outputInfo,
|
|
9
9
|
readFile,
|
|
10
10
|
renderAutocompletePrompt
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3GNPZUJY.js";
|
|
12
12
|
import {
|
|
13
13
|
joinPath
|
|
14
14
|
} from "./chunk-M336AND6.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-563LJHWO.js";
|
|
4
4
|
import {
|
|
5
5
|
renderTable,
|
|
6
6
|
renderText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3GNPZUJY.js";
|
|
8
8
|
import {
|
|
9
9
|
require_lib
|
|
10
10
|
} from "./chunk-3MMF34G4.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-CXG2USMP.js";
|
|
4
4
|
import {
|
|
5
5
|
demoStepsSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-C3M3CYNZ.js";
|
|
7
7
|
import {
|
|
8
8
|
base_command_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-563LJHWO.js";
|
|
10
10
|
import {
|
|
11
11
|
AbortError,
|
|
12
12
|
fileExists,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
readFile,
|
|
18
18
|
renderAutocompletePrompt,
|
|
19
19
|
writeFile
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3GNPZUJY.js";
|
|
21
21
|
import {
|
|
22
22
|
require_lib
|
|
23
23
|
} from "./chunk-3MMF34G4.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-563LJHWO.js";
|
|
4
4
|
import {
|
|
5
5
|
packageManagerFromUserAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z2X3TPD2.js";
|
|
7
7
|
import {
|
|
8
8
|
currentProcessIsGlobal,
|
|
9
9
|
inferPackageManagerForGlobalCLI,
|
|
10
10
|
renderInfo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3GNPZUJY.js";
|
|
12
12
|
import {
|
|
13
13
|
init_cjs_shims
|
|
14
14
|
} from "./chunk-BVGYIZ3O.js";
|