@adelin-io/cli 0.1.4 → 0.1.5
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/authoring-release.json +2 -2
- package/package.json +1 -1
- package/runtime-integrity.json +1 -1
- package/scripts/runtime.mjs +2 -2
package/authoring-release.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"packageName": "@adelin-io/cli",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"compilerVersion": "6.0.3",
|
|
6
6
|
"hostProtocol": 1,
|
|
7
7
|
"files": {
|
|
@@ -170,5 +170,5 @@
|
|
|
170
170
|
"types/adelin-worklets.d.ts": "f56edc56715df189933f180605ee8c41a785d11ad0c0d454258f1c1f71159ab9",
|
|
171
171
|
"workspace-tsconfig.json": "a1321a0ea06e5fb9d4e3c1a7d92045e730b44114ab10553172142cb978b9147a"
|
|
172
172
|
},
|
|
173
|
-
"contractId": "
|
|
173
|
+
"contractId": "5eaa80f49fbe614194ec10c268b08e19ab2ccb59d4c25a6fe6d66353bc70f15d"
|
|
174
174
|
}
|
package/package.json
CHANGED
package/runtime-integrity.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"scripts/assemble-checkout.mjs": "3f35e00a76075b3b0e8c72b5477184a986b15ae1e933317ceaad9a08cbeb589c",
|
|
4
4
|
"scripts/local-save.mjs": "c8b4f81ffdf2bbc87d47edf4f97438b4381fe9b10a98c9ba28e288c5fe6d7eed",
|
|
5
5
|
"scripts/materialize.mjs": "8c00ec43de43698c5d7ef918e6d2f0c2f4eb01c51172b67ea36f7544cfe5b03f",
|
|
6
|
-
"scripts/runtime.mjs": "
|
|
6
|
+
"scripts/runtime.mjs": "ad75e7b82dd7257f6f02c3d599184968a108d063c2e603ef4421a701b691d942",
|
|
7
7
|
"scripts/typecheck.mjs": "2ed3b248bd1d8f8152cda2a57f8975da39028e5eb63a7475678af6fc5117042c",
|
|
8
8
|
"scripts/workspace-state.mjs": "e8a2a8d85ac0add04a5a19fcb20183cdc0929387c4487f7747b81baa1ae2ecff"
|
|
9
9
|
}
|
package/scripts/runtime.mjs
CHANGED
|
@@ -5862,7 +5862,7 @@ function uploadTarget(ticket, file) {
|
|
|
5862
5862
|
} catch {
|
|
5863
5863
|
target2 = null;
|
|
5864
5864
|
}
|
|
5865
|
-
if (!target2 || !(target2.protocol === "https:" || !1) || target2.username || target2.password || target2.hash || ticket.method !== "PUT" || typeof ticket.attachmentId != "string" || !UUID7.test(ticket.attachmentId) || ticket.headers?.["content-type"] !== file.contentType || ticket.headers?.["content-length"] !== String(file.size))
|
|
5865
|
+
if (!target2 || !(target2.protocol === "https:" || !1) || target2.username || target2.password || target2.hash || ticket.method !== "PUT" || typeof ticket.attachmentId != "string" || !UUID7.test(ticket.attachmentId) || ticket.headers?.["content-type"] !== file.contentType || ticket.headers?.["content-length"] !== String(file.size) || typeof ticket.headers?.["if-match"] != "string" || !/^"[!#-~]*"$/.test(ticket.headers["if-match"]))
|
|
5866
5866
|
throw coded("ADELIN_TOOL_FAILED", "Adelin returned an invalid asset upload.");
|
|
5867
5867
|
return target2;
|
|
5868
5868
|
}
|
|
@@ -5876,7 +5876,7 @@ async function saveOne({ root, appId, edit, call, fetcher, timeout }, file) {
|
|
|
5876
5876
|
redirect: "error",
|
|
5877
5877
|
body: bytes2,
|
|
5878
5878
|
signal: timeout(transferDeadlineMs(file.size)),
|
|
5879
|
-
headers: { "content-type": file.contentType, "content-length": String(file.size) }
|
|
5879
|
+
headers: { "content-type": file.contentType, "content-length": String(file.size), "if-match": ticket.headers["if-match"] }
|
|
5880
5880
|
}), await uploaded.body?.cancel();
|
|
5881
5881
|
} catch {
|
|
5882
5882
|
throw coded("ASSET_UPLOAD_FAILED", `Uploading ${file.path} did not finish. Build again.`);
|