firefly-compiler 0.4.72 → 0.4.73
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/core/HttpClient.ff
CHANGED
|
@@ -66,13 +66,13 @@ extend self: HttpClient {
|
|
|
66
66
|
options.method = method_;
|
|
67
67
|
headers_.forEach(pair => {options.headers[pair.first_] = pair.second_});
|
|
68
68
|
if(body_.value_) options.body = body_.value_;
|
|
69
|
-
if(redirect_.RedirectError) options.redirect = "error";
|
|
70
|
-
else if(redirect_.RedirectManual) options.redirect = "manual";
|
|
71
|
-
if(referrer_.value_) options.referrer = referrer_.value_;
|
|
72
|
-
if(integrity_.value_) options.integrity = integrity_.value_;
|
|
73
|
-
if(mode_.value_) options.mode = mode_.value_;
|
|
74
|
-
if(credentials_.value_) options.credentials = credentials_.value_;
|
|
75
|
-
if(cache_.value_) options.cache = cache_.value_;
|
|
69
|
+
if(options_.redirect_.RedirectError) options.redirect = "error";
|
|
70
|
+
else if(options_.redirect_.RedirectManual) options.redirect = "manual";
|
|
71
|
+
if(options_.referrer_.value_) options.referrer = options_.referrer_.value_;
|
|
72
|
+
if(options_.integrity_.value_) options.integrity = options_.integrity_.value_;
|
|
73
|
+
if(options_.mode_.value_) options.mode = options_.mode_.value_;
|
|
74
|
+
if(options_.credentials_.value_) options.credentials = options_.credentials_.value_;
|
|
75
|
+
if(options_.cache_.value_) options.cache = options_.cache_.value_;
|
|
76
76
|
fetchResponse.response = await self_.fetch(url_, options);
|
|
77
77
|
const result = await body_(fetchResponse, $task);
|
|
78
78
|
if(!statusChecked && !fetchResponse.response.ok) {
|
|
@@ -179,13 +179,13 @@ export async function HttpClient_fetch$(self_, method_, url_, headers_ = [], pay
|
|
|
179
179
|
options.method = method_;
|
|
180
180
|
headers_.forEach(pair => {options.headers[pair.first_] = pair.second_});
|
|
181
181
|
if(body_.value_) options.body = body_.value_;
|
|
182
|
-
if(redirect_.RedirectError) options.redirect = "error";
|
|
183
|
-
else if(redirect_.RedirectManual) options.redirect = "manual";
|
|
184
|
-
if(referrer_.value_) options.referrer = referrer_.value_;
|
|
185
|
-
if(integrity_.value_) options.integrity = integrity_.value_;
|
|
186
|
-
if(mode_.value_) options.mode = mode_.value_;
|
|
187
|
-
if(credentials_.value_) options.credentials = credentials_.value_;
|
|
188
|
-
if(cache_.value_) options.cache = cache_.value_;
|
|
182
|
+
if(options_.redirect_.RedirectError) options.redirect = "error";
|
|
183
|
+
else if(options_.redirect_.RedirectManual) options.redirect = "manual";
|
|
184
|
+
if(options_.referrer_.value_) options.referrer = options_.referrer_.value_;
|
|
185
|
+
if(options_.integrity_.value_) options.integrity = options_.integrity_.value_;
|
|
186
|
+
if(options_.mode_.value_) options.mode = options_.mode_.value_;
|
|
187
|
+
if(options_.credentials_.value_) options.credentials = options_.credentials_.value_;
|
|
188
|
+
if(options_.cache_.value_) options.cache = options_.cache_.value_;
|
|
189
189
|
fetchResponse.response = await self_.fetch(url_, options);
|
|
190
190
|
const result = await body_(fetchResponse, $task);
|
|
191
191
|
if(!statusChecked && !fetchResponse.response.ok) {
|
package/package.json
CHANGED