@poe-platform/safe-bash 0.1.768 → 0.1.770
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/image-ast/index.browser.js +1 -1
- package/dist/image-ast/index.js +1 -1
- package/dist/pdf-ast/index.js +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2JQONXIY.js → chunk-C4AAJTXF.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-G55GHZV2.js → chunk-M2XU2YCK.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-A5S6M37L.js → chunk-NBENXODJ.js} +1 -1
- package/dist/safe-bash/core.browser.js +6 -8
- package/dist/safe-bash/shell/runtime.js +14 -8
- package/dist/safe-bash-command-ffmpeg/index.js +1 -1
- package/dist/safe-bash-command-git/git_rust.wasm +0 -0
- package/dist/safe-bash-command-git/wasm.generated.js +1 -1
- package/dist/safe-bash-command-imagemagick/index.js +2 -2
- package/dist/safe-bash-command-pandoc/command.js +3 -3
- package/dist/safe-bash-command-pandoc/index.js +3 -3
- package/dist/safe-bash-command-pdfimages/index.js +1 -1
- package/dist/safe-bash-command-pdfinfo/index.js +1 -1
- package/dist/safe-bash-command-pdftk/index.js +1 -1
- package/dist/safe-bash-command-pdftoppm/index.js +1 -1
- package/dist/safe-bash-command-pdftotext/index.js +1 -1
- package/dist/safe-bash-command-qpdf/index.js +1 -1
- package/dist/safe-bash-command-sips/index.js +2 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +1 -1
- package/dist/safe-bash-command-wkhtmltopdf/index.js +1 -1
- package/package.json +2 -2
|
@@ -43899,7 +43899,7 @@ function evaluateContentStreamToDisplayList(params) {
|
|
|
43899
43899
|
const groupType = group ? params.cosDoc.resolve(dictGet(group, "S")) : void 0;
|
|
43900
43900
|
const isolation = group ? params.cosDoc.resolve(dictGet(group, "I")) : void 0;
|
|
43901
43901
|
const isolated = isolation?.kind === "boolean" && isolation.value;
|
|
43902
|
-
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
43902
|
+
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || !!st.blendMode && st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
43903
43903
|
const formStreamBytes = params.cosDoc.decodeStream(form);
|
|
43904
43904
|
const formNodes = parseContentStream(formStreamBytes);
|
|
43905
43905
|
const formResDict = params.cosDoc.resolveDict(dictGet(form.dict, "Resources")) ?? activeResources;
|
package/dist/image-ast/index.js
CHANGED
|
@@ -43899,7 +43899,7 @@ function evaluateContentStreamToDisplayList(params) {
|
|
|
43899
43899
|
const groupType = group ? params.cosDoc.resolve(dictGet(group, "S")) : void 0;
|
|
43900
43900
|
const isolation = group ? params.cosDoc.resolve(dictGet(group, "I")) : void 0;
|
|
43901
43901
|
const isolated = isolation?.kind === "boolean" && isolation.value;
|
|
43902
|
-
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
43902
|
+
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || !!st.blendMode && st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
43903
43903
|
const formStreamBytes = params.cosDoc.decodeStream(form);
|
|
43904
43904
|
const formNodes = parseContentStream(formStreamBytes);
|
|
43905
43905
|
const formResDict = params.cosDoc.resolveDict(dictGet(form.dict, "Resources")) ?? activeResources;
|
package/dist/pdf-ast/index.js
CHANGED
|
@@ -36613,7 +36613,7 @@ function evaluateContentStreamToDisplayList(params) {
|
|
|
36613
36613
|
const groupType = group ? params.cosDoc.resolve(dictGet(group, "S")) : void 0;
|
|
36614
36614
|
const isolation = group ? params.cosDoc.resolve(dictGet(group, "I")) : void 0;
|
|
36615
36615
|
const isolated = isolation?.kind === "boolean" && isolation.value;
|
|
36616
|
-
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
36616
|
+
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || !!st.blendMode && st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
36617
36617
|
const formStreamBytes = params.cosDoc.decodeStream(form);
|
|
36618
36618
|
const formNodes = parseContentStream(formStreamBytes);
|
|
36619
36619
|
const formResDict = params.cosDoc.resolveDict(dictGet(form.dict, "Resources")) ?? activeResources;
|
|
@@ -32408,7 +32408,7 @@ function evaluateContentStreamToDisplayList(params) {
|
|
|
32408
32408
|
const groupType = group ? params.cosDoc.resolve(dictGet(group, "S")) : void 0;
|
|
32409
32409
|
const isolation = group ? params.cosDoc.resolve(dictGet(group, "I")) : void 0;
|
|
32410
32410
|
const isolated = isolation?.kind === "boolean" && isolation.value;
|
|
32411
|
-
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
32411
|
+
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || !!st.blendMode && st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
32412
32412
|
const formStreamBytes = params.cosDoc.decodeStream(form);
|
|
32413
32413
|
const formNodes = parseContentStream(formStreamBytes);
|
|
32414
32414
|
const formResDict = params.cosDoc.resolveDict(dictGet(form.dict, "Resources")) ?? activeResources;
|
|
@@ -48,11 +48,11 @@ import {
|
|
|
48
48
|
trimImage,
|
|
49
49
|
unflattenImage,
|
|
50
50
|
unpremultiplyRgbaImage
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-NBENXODJ.js";
|
|
52
52
|
import {
|
|
53
53
|
PdfDocument,
|
|
54
54
|
encodePng
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-C4AAJTXF.js";
|
|
56
56
|
import {
|
|
57
57
|
createLuaFilterCapability
|
|
58
58
|
} from "./chunk-Y2KHC6TZ.js";
|
|
@@ -70469,14 +70469,11 @@ var Runtime = class _Runtime {
|
|
|
70469
70469
|
if (p.commands.some((c) => c.kind === "simple" && (c.words[0]?.plain === "envsubst" || c.words[0]?.plain === "uname" || c.words[0]?.plain === "id" || c.words[0]?.plain === "whoami" || c.words[0]?.plain === "hostname" || c.words[0]?.plain === "nproc" || c.words[0]?.plain === "locale" || c.words[0]?.plain === "getopt" || c.words[0]?.plain === "cal" || c.words[0]?.plain === "ncal" || c.words[0]?.plain === "date" || c.words[0]?.plain === "printenv" || c.words[0]?.plain === "env" || c.words[0]?.plain === "df" || c.words[0]?.plain === "du" || c.words[0]?.plain === "stat" || c.words[0]?.plain === "which")) && (rawState.allexport || [...assigned].some((v) => rawState.exported.has(v)))) {
|
|
70470
70470
|
return false;
|
|
70471
70471
|
}
|
|
70472
|
+
if (usesInduction) return false;
|
|
70472
70473
|
const savedBytes = this.budget.bytes;
|
|
70473
70474
|
const savedCmds = this.budget.commands;
|
|
70474
70475
|
const savedStatus = rawState.status;
|
|
70475
70476
|
const savedSubStatus = rawState.substitutionStatus;
|
|
70476
|
-
const savedIndVal = indName !== void 0 ? rawState.variables[indName] : void 0;
|
|
70477
|
-
if (usesInduction && indName !== void 0 && savedIndVal === void 0) {
|
|
70478
|
-
rawState.variables[indName] = "1";
|
|
70479
|
-
}
|
|
70480
70477
|
if (this._activeSyncLoopHasFileMutations || p.commands.some((c) => c.kind === "simple" && (c.words[0]?.plain === "mktemp" || c.words[0]?.plain === "shuf" || c.words[0]?.plain === "sponge" || c.words[0]?.plain === "truncate" || c.words[0]?.plain === "install" || c.words[0]?.plain === "apply_patch" || c.words[0]?.plain === "split" || c.words[0]?.plain === "csplit" || c.words[0]?.plain === "tee" || c.words[0]?.plain === "touch" || c.words[0]?.plain === "cp" || c.words[0]?.plain === "mv" || c.words[0]?.plain === "rmdir" || c.words[0]?.plain === "chmod" || c.words[0]?.plain === "patch" || c.words[0]?.plain === "mkdir" || c.words[0]?.plain === "rm" || c.words[0]?.plain === "ln" || c.words[0]?.plain === "soffice" || c.words[0]?.plain === "libreoffice" || c.words[0]?.plain === "mmdc" || c.words[0]?.plain === "sips" || c.words[0]?.plain === "qpdf" || c.words[0]?.plain === "pdftk" || c.words[0]?.plain === "pdftotext" || c.words[0]?.plain === "pdftohtml" || c.words[0]?.plain === "pdfimages" || c.words[0]?.plain === "pdfdetach" || c.words[0]?.plain === "pdftoppm" || c.words[0]?.plain === "pdftocairo" || c.words[0]?.plain === "sqlite3" || c.words[0]?.plain === "openssl" || c.words[0]?.plain === "tar" || c.words[0]?.plain === "unzip" || c.words[0]?.plain === "zip" || c.words[0]?.plain === "dd" || c.words[0]?.plain === "magick" || c.words[0]?.plain === "convert" || c.words[0]?.plain === "mogrify" || c.words[0]?.plain === "composite" || c.words[0]?.plain === "montage" || c.words[0]?.plain === "compare" || c.words[0]?.plain === "exiftool" || c.words[0]?.plain === "pandoc" || c.words[0]?.plain === "wkhtmltopdf" || c.words[0]?.plain === "gpg" || c.words[0]?.plain === "ssh-keygen" || c.words[0]?.plain === "ffmpeg" || c.words[0]?.plain === "git" || c.words[0]?.plain === "gh" || c.words[0]?.plain === "ssconvert" || c.words[0]?.plain === "op"))) {
|
|
70481
70478
|
usesInduction = true;
|
|
70482
70479
|
}
|
|
@@ -70489,9 +70486,6 @@ var Runtime = class _Runtime {
|
|
|
70489
70486
|
res = void 0;
|
|
70490
70487
|
} finally {
|
|
70491
70488
|
this._inSyncLoopPreflight = prevPreflight;
|
|
70492
|
-
if (usesInduction && indName !== void 0 && savedIndVal === void 0) {
|
|
70493
|
-
delete rawState.variables[indName];
|
|
70494
|
-
}
|
|
70495
70489
|
}
|
|
70496
70490
|
const outBytes = this.budget.bytes - savedBytes;
|
|
70497
70491
|
const exitStatus = rawState.status;
|
|
@@ -86942,7 +86936,7 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
|
|
|
86942
86936
|
const absVal = neg2 ? -v.c : v.c;
|
|
86943
86937
|
return (neg2 && v.c !== 0n ? "-" : "") + absVal.toString(obase).toUpperCase();
|
|
86944
86938
|
}
|
|
86945
|
-
if (v.s === 0) return v.c.toString();
|
|
86939
|
+
if (v.c === 0n || v.s === 0) return v.c.toString();
|
|
86946
86940
|
const neg = v.c < 0n;
|
|
86947
86941
|
const absStr = (neg ? -v.c : v.c).toString().padStart(v.s + 1, "0");
|
|
86948
86942
|
const intStr = absStr.slice(0, absStr.length - v.s);
|
|
@@ -87761,12 +87755,16 @@ unsigned int ${ident}_len = ${view.byteLength};
|
|
|
87761
87755
|
else if (a === "-A" && i + 1 < opArgs.length && ["o", "x", "d", "n"].includes(opArgs[i + 1])) {
|
|
87762
87756
|
addrRadix = opArgs[++i];
|
|
87763
87757
|
} else if (a === "-tx1" || a === "-tu1" || a === "-to1" || a === "-tc") {
|
|
87758
|
+
if (typeSpec !== void 0) return void 0;
|
|
87764
87759
|
typeSpec = a.slice(2);
|
|
87765
87760
|
} else if (a === "-c") {
|
|
87761
|
+
if (typeSpec !== void 0) return void 0;
|
|
87766
87762
|
typeSpec = "c";
|
|
87767
87763
|
} else if (a === "-b") {
|
|
87764
|
+
if (typeSpec !== void 0) return void 0;
|
|
87768
87765
|
typeSpec = "o1";
|
|
87769
87766
|
} else if (a === "-t" && i + 1 < opArgs.length && ["x1", "u1", "o1", "c"].includes(opArgs[i + 1])) {
|
|
87767
|
+
if (typeSpec !== void 0) return void 0;
|
|
87770
87768
|
typeSpec = opArgs[++i];
|
|
87771
87769
|
} else if (a === "-v" || a === "--output-duplicates") verbose2 = true;
|
|
87772
87770
|
else if (a === "-w" && i + 1 < opArgs.length && /^[1-9][0-9]{0,3}$/.test(opArgs[i + 1])) width = Number(opArgs[++i]);
|
|
@@ -13907,14 +13907,15 @@ export class Runtime {
|
|
|
13907
13907
|
if (p.commands.some(c => c.kind === "simple" && (c.words[0]?.plain === "envsubst" || c.words[0]?.plain === "uname" || c.words[0]?.plain === "id" || c.words[0]?.plain === "whoami" || c.words[0]?.plain === "hostname" || c.words[0]?.plain === "nproc" || c.words[0]?.plain === "locale" || c.words[0]?.plain === "getopt" || c.words[0]?.plain === "cal" || c.words[0]?.plain === "ncal" || c.words[0]?.plain === "date" || c.words[0]?.plain === "printenv" || c.words[0]?.plain === "env" || c.words[0]?.plain === "df" || c.words[0]?.plain === "du" || c.words[0]?.plain === "stat" || c.words[0]?.plain === "which")) && (rawState.allexport || [...assigned].some(v => rawState.exported.has(v)))) {
|
|
13908
13908
|
return false;
|
|
13909
13909
|
}
|
|
13910
|
+
// A successful probe cannot prove totality for later induction values.
|
|
13911
|
+
// The loop steps cannot resume a declined expansion after earlier effects.
|
|
13912
|
+
// Leave dynamic words to the separately checked path or normal execution.
|
|
13913
|
+
if (usesInduction)
|
|
13914
|
+
return false;
|
|
13910
13915
|
const savedBytes = this.budget.bytes;
|
|
13911
13916
|
const savedCmds = this.budget.commands;
|
|
13912
13917
|
const savedStatus = rawState.status;
|
|
13913
13918
|
const savedSubStatus = rawState.substitutionStatus;
|
|
13914
|
-
const savedIndVal = indName !== undefined ? rawState.variables[indName] : undefined;
|
|
13915
|
-
if (usesInduction && indName !== undefined && savedIndVal === undefined) {
|
|
13916
|
-
rawState.variables[indName] = "1";
|
|
13917
|
-
}
|
|
13918
13919
|
if (this._activeSyncLoopHasFileMutations || p.commands.some(c => c.kind === "simple" && (c.words[0]?.plain === "mktemp" || c.words[0]?.plain === "shuf" || c.words[0]?.plain === "sponge" || c.words[0]?.plain === "truncate" || c.words[0]?.plain === "install" || c.words[0]?.plain === "apply_patch" || c.words[0]?.plain === "split" || c.words[0]?.plain === "csplit" || c.words[0]?.plain === "tee" || c.words[0]?.plain === "touch" || c.words[0]?.plain === "cp" || c.words[0]?.plain === "mv" || c.words[0]?.plain === "rmdir" || c.words[0]?.plain === "chmod" || c.words[0]?.plain === "patch" || c.words[0]?.plain === "mkdir" || c.words[0]?.plain === "rm" || c.words[0]?.plain === "ln" || c.words[0]?.plain === "soffice" || c.words[0]?.plain === "libreoffice" || c.words[0]?.plain === "mmdc" || c.words[0]?.plain === "sips" || c.words[0]?.plain === "qpdf" || c.words[0]?.plain === "pdftk" || c.words[0]?.plain === "pdftotext" || c.words[0]?.plain === "pdftohtml" || c.words[0]?.plain === "pdfimages" || c.words[0]?.plain === "pdfdetach" || c.words[0]?.plain === "pdftoppm" || c.words[0]?.plain === "pdftocairo" || c.words[0]?.plain === "sqlite3" || c.words[0]?.plain === "openssl" || c.words[0]?.plain === "tar" || c.words[0]?.plain === "unzip" || c.words[0]?.plain === "zip" || c.words[0]?.plain === "dd" || c.words[0]?.plain === "magick" || c.words[0]?.plain === "convert" || c.words[0]?.plain === "mogrify" || c.words[0]?.plain === "composite" || c.words[0]?.plain === "montage" || c.words[0]?.plain === "compare" || c.words[0]?.plain === "exiftool" || c.words[0]?.plain === "pandoc" || c.words[0]?.plain === "wkhtmltopdf" || c.words[0]?.plain === "gpg" || c.words[0]?.plain === "ssh-keygen" || c.words[0]?.plain === "ffmpeg" || c.words[0]?.plain === "git" || c.words[0]?.plain === "gh" || c.words[0]?.plain === "ssconvert" || c.words[0]?.plain === "op"))) {
|
|
13919
13920
|
usesInduction = true;
|
|
13920
13921
|
}
|
|
@@ -13929,9 +13930,6 @@ export class Runtime {
|
|
|
13929
13930
|
}
|
|
13930
13931
|
finally {
|
|
13931
13932
|
this._inSyncLoopPreflight = prevPreflight;
|
|
13932
|
-
if (usesInduction && indName !== undefined && savedIndVal === undefined) {
|
|
13933
|
-
delete rawState.variables[indName];
|
|
13934
|
-
}
|
|
13935
13933
|
}
|
|
13936
13934
|
const outBytes = this.budget.bytes - savedBytes;
|
|
13937
13935
|
const exitStatus = rawState.status;
|
|
@@ -33538,7 +33536,7 @@ export class Runtime {
|
|
|
33538
33536
|
const absVal = neg ? -v.c : v.c;
|
|
33539
33537
|
return (neg && v.c !== 0n ? "-" : "") + absVal.toString(obase).toUpperCase();
|
|
33540
33538
|
}
|
|
33541
|
-
if (v.s === 0)
|
|
33539
|
+
if (v.c === 0n || v.s === 0)
|
|
33542
33540
|
return v.c.toString();
|
|
33543
33541
|
const neg = v.c < 0n;
|
|
33544
33542
|
const absStr = (neg ? -v.c : v.c).toString().padStart(v.s + 1, "0");
|
|
@@ -34494,15 +34492,23 @@ export class Runtime {
|
|
|
34494
34492
|
addrRadix = opArgs[++i];
|
|
34495
34493
|
}
|
|
34496
34494
|
else if (a === "-tx1" || a === "-tu1" || a === "-to1" || a === "-tc") {
|
|
34495
|
+
if (typeSpec !== undefined)
|
|
34496
|
+
return undefined;
|
|
34497
34497
|
typeSpec = a.slice(2);
|
|
34498
34498
|
}
|
|
34499
34499
|
else if (a === "-c") {
|
|
34500
|
+
if (typeSpec !== undefined)
|
|
34501
|
+
return undefined;
|
|
34500
34502
|
typeSpec = "c";
|
|
34501
34503
|
}
|
|
34502
34504
|
else if (a === "-b") {
|
|
34505
|
+
if (typeSpec !== undefined)
|
|
34506
|
+
return undefined;
|
|
34503
34507
|
typeSpec = "o1";
|
|
34504
34508
|
}
|
|
34505
34509
|
else if (a === "-t" && i + 1 < opArgs.length && ["x1", "u1", "o1", "c"].includes(opArgs[i + 1])) {
|
|
34510
|
+
if (typeSpec !== undefined)
|
|
34511
|
+
return undefined;
|
|
34506
34512
|
typeSpec = opArgs[++i];
|
|
34507
34513
|
}
|
|
34508
34514
|
else if (a === "-v" || a === "--output-duplicates")
|
|
@@ -13607,7 +13607,7 @@ function is(e) {
|
|
|
13607
13607
|
let P = h();
|
|
13608
13608
|
f.push({ ...P, clipImages: [...P.clipImages ?? [], B] }), x([{ kind: "path-op", paint: "f", segments: [{ kind: "rect", x: 0, y: 0, width: 1, height: 1 }] }], void 0, void 0, k, C, H), f.pop();
|
|
13609
13609
|
}, w = (B, y, k, C, H, P, E = false) => {
|
|
13610
|
-
let F = h(), G = e.cosDoc.resolveDict(O(B.dict, "Group")), M = G ? e.cosDoc.resolve(O(G, "S")) : void 0, D = G ? e.cosDoc.resolve(O(G, "I")) : void 0, I = D?.kind === "boolean" && D.value, S = !E && M?.kind === "name" && M.decoded === "Transparency" && (I || F.fillAlpha !== 1 || !!F.softMask || F.blendMode !== "Normal" && F.blendMode !== "Compatible"), T = e.cosDoc.decodeStream(B), K = Ca(T), L = e.cosDoc.resolveDict(O(B.dict, "Resources")) ?? y, z = new Map(k);
|
|
13610
|
+
let F = h(), G = e.cosDoc.resolveDict(O(B.dict, "Group")), M = G ? e.cosDoc.resolve(O(G, "S")) : void 0, D = G ? e.cosDoc.resolve(O(G, "I")) : void 0, I = D?.kind === "boolean" && D.value, S = !E && M?.kind === "name" && M.decoded === "Transparency" && (I || F.fillAlpha !== 1 || !!F.softMask || !!F.blendMode && F.blendMode !== "Normal" && F.blendMode !== "Compatible"), T = e.cosDoc.decodeStream(B), K = Ca(T), L = e.cosDoc.resolveDict(O(B.dict, "Resources")) ?? y, z = new Map(k);
|
|
13611
13611
|
for (let [j, Q] of qr(e.cosDoc, L).entries()) z.set(j, Q);
|
|
13612
13612
|
let V = [...F.ctm], q = e.cosDoc.resolveArray(O(B.dict, "Matrix"));
|
|
13613
13613
|
if (q && q.items.length >= 6) {
|
|
Binary file
|