shopify-cli 1.13.0 → 1.13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efb6500804d976bce67276002bd2e95343cc080c7278fc7c510017676abb24a0
4
- data.tar.gz: 3f0ab9095319fb4743fb37d19db43195c4fd4c737122ceada5958c00bad01b84
3
+ metadata.gz: 7f924d0de5639f7af794a6b35305b0bdcd78e2fad0f8a4c589006d249f48bbac
4
+ data.tar.gz: 701e91a9b522933b26f3a26baeab8f900a9cb3aa181e3b847b8a231c9edd5f04
5
5
  SHA512:
6
- metadata.gz: 27cf1b9e1256bb8732fbc291eb423a26ec1570e79cd960c9cc508e387ca58edeb5559680183f5a94009255b17f970e78ed4e1aee591f2782a29be2b9ab9b79b2
7
- data.tar.gz: d6e489fc945ce4f27f3800238ff62b24b23073debfe29e48a196c972f7c7ebb34cea7f0affe7d7d326e48573e6df61c7ff68d062e261e83844fbd72cb0ce29ab
6
+ metadata.gz: 96191b61830023526627944dcf5c4ac6a6b883aa060f81be3095cf5275763ef1552268cdcf46bc9d9b65cf9960ce879aa12b07cd799f2068f65329143a3149cc
7
+ data.tar.gz: 7e4d1e6c0c6b60609b661261cb0846acf5e42d58da4d525a8706df538c0ef3b7d55e9b26d45f8db8a6977aa5802d041bb639b0d4618718366333f2768f2dc1b8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased
2
2
  ------
3
3
 
4
+ Version 1.13.1
5
+ --------------
6
+ * [1274](https://github.com/Shopify/shopify-app-cli/pull/1274): Only print api_key during error if it exists
7
+ * [1272](https://github.com/Shopify/shopify-app-cli/pull/1272): Fix minor bug with extension serve for UI extensions
8
+
4
9
  Version 1.13.0
5
10
  --------------
6
11
 
@@ -7,6 +7,7 @@ module Extension
7
7
  ARGO_ADMIN_CLI_PACKAGE_NAME = "@shopify/argo-admin-cli"
8
8
 
9
9
  ARGO_RUN_0_4_0 = Models::NpmPackage.new(name: "@shopify/argo-run", version: "0.4.0")
10
+ ARGO_ADMIN_CLI_0_9_0 = Models::NpmPackage.new(name: "@shopify/argo-admin-cli", version: "0.9.0")
10
11
  ARGO_ADMIN_CLI_0_9_3 = Models::NpmPackage.new(name: "@shopify/argo-admin-cli", version: "0.9.3")
11
12
  ARGO_ADMIN_CLI_0_11_0 = Models::NpmPackage.new(name: "@shopify/argo-admin-cli", version: "0.11.0")
12
13
 
@@ -67,6 +68,15 @@ module Extension
67
68
  end
68
69
  end
69
70
 
71
+ def accepts_name?
72
+ case cli
73
+ when admin?
74
+ cli >= ARGO_ADMIN_CLI_0_9_0
75
+ else
76
+ false
77
+ end
78
+ end
79
+
70
80
  private
71
81
 
72
82
  def admin?
@@ -34,6 +34,7 @@ module Extension
34
34
  options << "--argoVersion=#{renderer_package.version}" if argo_runtime.accepts_argo_version?
35
35
  options << "--uuid=#{project.registration_uuid}" if argo_runtime.accepts_uuid?
36
36
  options << "--publicUrl=#{public_url}" if argo_runtime.accepts_tunnel_url?
37
+ options << "--name=#{project.title}" if argo_runtime.accepts_name?
37
38
  end
38
39
  end
39
40
  end
@@ -16,7 +16,11 @@ module Script
16
16
  Layers::Application::PushScript.call(ctx: @ctx, force: options.flags.key?(:force))
17
17
  @ctx.puts(@ctx.message("script.push.script_pushed", api_key: api_key))
18
18
  rescue StandardError => e
19
- msg = @ctx.message("script.push.error.operation_failed", api_key: api_key)
19
+ msg = if api_key
20
+ @ctx.message("script.push.error.operation_failed_with_api_key", api_key: api_key)
21
+ else
22
+ @ctx.message("script.push.error.operation_failed_no_api_key")
23
+ end
20
24
  UI::ErrorHandler.pretty_print_and_raise(e, failed_op: msg)
21
25
  end
22
26
 
@@ -161,7 +161,8 @@ module Script
161
161
  HELP
162
162
 
163
163
  error: {
164
- operation_failed: "Couldn't push script to app (API key: %{api_key}).",
164
+ operation_failed_with_api_key: "Couldn't push script to app (API key: %{api_key}).",
165
+ operation_failed_no_api_key: "Couldn't push script to app.",
165
166
  },
166
167
 
167
168
  script_pushed: "{{v}} Script pushed to app (API key: %{api_key}).",
@@ -27,6 +27,8 @@ module Script
27
27
  private
28
28
 
29
29
  def ask_org
30
+ return stubbed_org if partner_proxy_bypass
31
+
30
32
  if ShopifyCli::Shopifolk.check && wants_to_run_against_shopify_org?
31
33
  ShopifyCli::Shopifolk.act_as_shopify_organization
32
34
  end
@@ -47,6 +49,23 @@ module Script
47
49
  end
48
50
  end
49
51
 
52
+ def stubbed_org
53
+ {
54
+ "apps" => [
55
+ {
56
+ "appType" => "custom",
57
+ "apiKey" => "stubbed-api-key",
58
+ "apiSecretKeys" => [{ "secret" => "stubbed-api-secret" }],
59
+ "title" => "Fake App (Not connected to Partners)",
60
+ },
61
+ ],
62
+ }
63
+ end
64
+
65
+ def partner_proxy_bypass
66
+ !ENV["BYPASS_PARTNERS_PROXY"].nil?
67
+ end
68
+
50
69
  def ask_app(apps)
51
70
  unless ShopifyCli::Shopifolk.acting_as_shopify_organization?
52
71
  apps = apps.select { |app| app["appType"] == "custom" }
@@ -1,3 +1,3 @@
1
1
  module ShopifyCli
2
- VERSION = "1.13.0"
2
+ VERSION = "1.13.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-08 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler