File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ def ensure_vendor_directory_exists
96
96
97
97
def remove_existing_package_file ( package )
98
98
FileUtils . rm_rf vendored_package_path ( package )
99
- FileUtils . rm_rf "#{ vendored_package_path ( package ) } .br" # Temp workaround for jspm.io
100
99
end
101
100
102
101
def remove_package_from_importmap ( package )
@@ -109,17 +108,12 @@ def remove_package_from_importmap(package)
109
108
end
110
109
111
110
def download_package_file ( package , url )
112
- if url =~ /jspm.io/
113
- # Temporary workaround jspm.io only sending brotli
114
- `curl -s '#{ url } ' | brotli -d > #{ vendored_package_path ( package ) } `
115
- else
116
- response = Net ::HTTP . get_response ( URI ( url ) )
111
+ response = Net ::HTTP . get_response ( URI ( url ) )
117
112
118
- if response . code == "200"
119
- save_vendored_package ( package , response . body )
120
- else
121
- handle_failure_response ( response )
122
- end
113
+ if response . code == "200"
114
+ save_vendored_package ( package , response . body )
115
+ else
116
+ handle_failure_response ( response )
123
117
end
124
118
end
125
119
You can’t perform that action at this time.
0 commit comments