firefly-compiler 0.4.73 → 0.4.75
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
|
@@ -75,9 +75,7 @@ extend self: HttpClient {
|
|
|
75
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
|
-
|
|
79
|
-
throw new Error("Unexpected HTTP status code: " + fetchResponse.response.status);
|
|
80
|
-
}
|
|
78
|
+
internalCheck_(fetchResponse);
|
|
81
79
|
return result;
|
|
82
80
|
} finally {
|
|
83
81
|
fetchResponse.response = null;
|
|
@@ -188,9 +188,7 @@ export async function HttpClient_fetch$(self_, method_, url_, headers_ = [], pay
|
|
|
188
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
|
-
|
|
192
|
-
throw new Error("Unexpected HTTP status code: " + fetchResponse.response.status);
|
|
193
|
-
}
|
|
191
|
+
internalCheck_(fetchResponse);
|
|
194
192
|
return result;
|
|
195
193
|
} finally {
|
|
196
194
|
fetchResponse.response = null;
|
package/package.json
CHANGED