@shopify/cli-kit 3.45.1 → 3.45.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.
|
@@ -21,8 +21,14 @@ module ShopifyCLI
|
|
|
21
21
|
|
|
22
22
|
# Proxy the request, and replace the URLs in the response
|
|
23
23
|
status, headers, body = @app.call(env)
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
# Use Rack::Response to get the content type header regardless of case
|
|
25
|
+
response = Rack::Response.new(nil, status, headers)
|
|
26
|
+
content_type = response.get_header("Content-Type")
|
|
27
|
+
if content_type.nil? || content_type == "" || content_type&.start_with?("text/")
|
|
28
|
+
Rack::Response.new(replace_font_urls(body), status, headers).finish
|
|
29
|
+
else
|
|
30
|
+
Rack::Response.new(body, status, headers).finish
|
|
31
|
+
end
|
|
26
32
|
end
|
|
27
33
|
|
|
28
34
|
private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CLI_KIT_VERSION = "3.45.
|
|
1
|
+
export declare const CLI_KIT_VERSION = "3.45.2";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const CLI_KIT_VERSION = '3.45.
|
|
1
|
+
export const CLI_KIT_VERSION = '3.45.2';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/public/common/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA","sourcesContent":["export const CLI_KIT_VERSION = '3.45.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/public/common/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA","sourcesContent":["export const CLI_KIT_VERSION = '3.45.2'\n"]}
|