firefly-compiler 0.4.75 → 0.4.77
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 +1 -1
- package/output/js/ff/core/HttpClient.mjs +1 -1
- package/package.json +1 -1
- package/s3/S3.ff +5 -1
- package/vscode/package.json +1 -1
package/core/HttpClient.ff
CHANGED
|
@@ -65,7 +65,7 @@ extend self: HttpClient {
|
|
|
65
65
|
const options = {headers: {}, signal: $task.controller.signal};
|
|
66
66
|
options.method = method_;
|
|
67
67
|
headers_.forEach(pair => {options.headers[pair.first_] = pair.second_});
|
|
68
|
-
if(
|
|
68
|
+
if(payload_.value_) options.body = payload_.value_;
|
|
69
69
|
if(options_.redirect_.RedirectError) options.redirect = "error";
|
|
70
70
|
else if(options_.redirect_.RedirectManual) options.redirect = "manual";
|
|
71
71
|
if(options_.referrer_.value_) options.referrer = options_.referrer_.value_;
|
|
@@ -178,7 +178,7 @@ export async function HttpClient_fetch$(self_, method_, url_, headers_ = [], pay
|
|
|
178
178
|
const options = {headers: {}, signal: $task.controller.signal};
|
|
179
179
|
options.method = method_;
|
|
180
180
|
headers_.forEach(pair => {options.headers[pair.first_] = pair.second_});
|
|
181
|
-
if(
|
|
181
|
+
if(payload_.value_) options.body = payload_.value_;
|
|
182
182
|
if(options_.redirect_.RedirectError) options.redirect = "error";
|
|
183
183
|
else if(options_.redirect_.RedirectManual) options.redirect = "manual";
|
|
184
184
|
if(options_.referrer_.value_) options.referrer = options_.referrer_.value_;
|
package/package.json
CHANGED
package/s3/S3.ff
CHANGED
|
@@ -23,7 +23,11 @@ put(
|
|
|
23
23
|
let allHeaders = [...canonicalHeaders, Pair("Authorization", authenticationHeader)]
|
|
24
24
|
|
|
25
25
|
let url = "https://" + host + "/" + encodedKey
|
|
26
|
-
system.httpClient().put(url, allHeaders, body) {
|
|
26
|
+
system.httpClient().put(url, allHeaders, body) {response =>
|
|
27
|
+
if(!response.ok()) {
|
|
28
|
+
panic(response.status() + " " + response.statusText() + "\n" + response.readText())
|
|
29
|
+
}
|
|
30
|
+
}
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
makeS3AuthorizationHeader(
|