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.
@@ -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
- if(!statusChecked && !fetchResponse.response.ok) {
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
- if(!statusChecked && !fetchResponse.response.ok) {
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
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly compiler",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.4.73",
7
+ "version": "0.4.75",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly language support",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.4.73",
7
+ "version": "0.4.75",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"