deployai 0.1.0-beta.48 → 0.1.0-beta.49
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/dist/index.js +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25519,7 +25519,7 @@ function formatBytes(n2) {
|
|
|
25519
25519
|
}
|
|
25520
25520
|
|
|
25521
25521
|
// src/version.ts
|
|
25522
|
-
var CLI_VERSION = "0.1.0-beta.
|
|
25522
|
+
var CLI_VERSION = "0.1.0-beta.49";
|
|
25523
25523
|
|
|
25524
25524
|
// src/api.ts
|
|
25525
25525
|
function apiContext(apiFlag, root) {
|
|
@@ -28649,7 +28649,10 @@ function readTar(tar) {
|
|
|
28649
28649
|
const h = tar.subarray(offset, offset + BLOCK);
|
|
28650
28650
|
if (h.every((b) => b === 0)) break;
|
|
28651
28651
|
const name = readString(h, 0, 100);
|
|
28652
|
-
const
|
|
28652
|
+
const sizeField = readString(h, 124, 12).trim() || "0";
|
|
28653
|
+
if (!/^[0-7]{1,12}$/.test(sizeField)) throw new Error("Archive header is damaged");
|
|
28654
|
+
const size = parseInt(sizeField, 8);
|
|
28655
|
+
if (offset + BLOCK + size > tar.length) throw new Error("Archive header is damaged");
|
|
28653
28656
|
const type = String.fromCharCode(h[156] || 48);
|
|
28654
28657
|
const prefix = readString(h, 345, 155);
|
|
28655
28658
|
const data = tar.subarray(offset + BLOCK, offset + BLOCK + size);
|
|
@@ -28923,6 +28926,7 @@ function safeSourceName(raw) {
|
|
|
28923
28926
|
if (!name || name.startsWith("/") || /^[a-zA-Z]:/.test(name) || name.includes("\0")) return null;
|
|
28924
28927
|
if (name.split("/").some((p) => p === ".." || p === ".")) return null;
|
|
28925
28928
|
if (privateProjectFile(name)) return null;
|
|
28929
|
+
if (name.split("/").some((p) => /^[^.]{1,8}~\d+(\.[^.]{0,3})?$/.test(p) || /[. ]$/.test(p))) return null;
|
|
28926
28930
|
return name;
|
|
28927
28931
|
}
|
|
28928
28932
|
var same2 = (a, b) => a === void 0 && b === void 0 || a !== void 0 && b !== void 0 && a.equals(b);
|