@poe-platform/safe-bash 0.1.839 → 0.1.841
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/audio-ast/binary.d.ts +19 -0
- package/dist/audio-ast/index.d.ts +1 -0
- package/dist/audio-ast/index.js +92 -91
- package/dist/audio-ast/mpeg.d.ts +23 -0
- package/dist/mp4-ast/containers/adapters.d.ts +1 -0
- package/dist/mp4-ast/types.d.ts +8 -2
- package/dist/pdf-ast/cos/security.d.ts +10 -0
- package/dist/pdf-ast/edit/retained-attachment-edits.d.ts +4 -0
- package/dist/pdf-ast/edit/retained-graph.d.ts +1 -1
- package/dist/pdf-ast/image.js +1 -1
- package/dist/pdf-ast/index.d.ts +2 -1
- package/dist/pdf-ast/index.js +7 -1
- package/dist/pdf-ast/vendor/pdfjs-fonts.d.mts +8 -0
- package/dist/pdf-ast/vendor/pdfjs-fonts.mjs +28 -0
- package/dist/safe-bash/audio-ast.browser.js +2 -1
- package/dist/safe-bash/audio-ast.js +1 -1
- package/dist/safe-bash/command-chunks/{chunk-SG2KOOD4.js → chunk-3SAYZFMD.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-T6OXG7QQ.js → chunk-AAOPVEPF.js} +66 -1
- package/dist/safe-bash/command-chunks/{chunk-FH5VMAPS.js → chunk-BZW25LNV.js} +420 -131
- package/dist/safe-bash/command-chunks/{chunk-DQVOBGI2.js → chunk-CIV3GER2.js} +6770 -6523
- package/dist/safe-bash/command-chunks/{chunk-46GA576V.js → chunk-CPKVUB7S.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-MBXNG6C3.js → chunk-DLLN3C3Q.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ZSQCROFE.js → chunk-DM5T5D2K.js} +5 -1
- package/dist/safe-bash/command-chunks/{chunk-3EAZRKI4.js → chunk-G7HQYFIU.js} +10 -1
- package/dist/safe-bash/command-chunks/{chunk-GYKQ3IOV.js → chunk-LMYQMJYY.js} +94 -18
- package/dist/safe-bash/command-chunks/{chunk-DX7KU6YU.js → chunk-N52AHO6S.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4BSD2RGK.js → chunk-QPKL5GWH.js} +102 -42
- package/dist/safe-bash/command-chunks/{chunk-Z2T7E4ID.js → chunk-R7QLP5RH.js} +1212 -1119
- package/dist/safe-bash/command-chunks/{chunk-77ROD2TR.js → chunk-X3WNWRVT.js} +11 -5
- package/dist/safe-bash/command-chunks/{chunk-RSFKQE2U.js → chunk-YAXP4EHP.js} +19 -10
- package/dist/safe-bash/command-chunks/{chunk-TCXM7BSZ.js → chunk-YFMNXPLP.js} +4 -4
- package/dist/safe-bash-command-exiftool/index.js +25 -1
- package/dist/safe-bash-command-ffmpeg/index.js +191 -49
- package/dist/safe-bash-command-ffprobe/index.js +2 -2
- package/dist/safe-bash-command-ffprobe/media.js +2 -2
- package/dist/safe-bash-command-imagemagick/index.js +498 -101
- package/dist/safe-bash-command-mdq/index.js +2 -0
- package/dist/safe-bash-command-pandoc/citeproc-filters.js +7 -7
- package/dist/safe-bash-command-pandoc/command.js +8 -8
- package/dist/safe-bash-command-pandoc/index.js +52 -52
- package/dist/safe-bash-command-qpdf/index.js +1037 -654
- package/dist/safe-bash-command-qpdf/page-range.d.ts +2 -0
- package/dist/safe-bash-command-soffice/index.js +28 -8
- package/dist/safe-bash-command-sqlite3/btree.d.ts +2 -1
- package/dist/safe-bash-command-sqlite3/engine.d.ts +15 -1
- package/dist/safe-bash-command-sqlite3/index.js +294 -68
- package/dist/safe-bash-command-tar/create.js +2 -2
- package/dist/safe-bash-command-tar/extract.js +2 -2
- package/dist/safe-bash-command-tar/format.js +1 -1
- package/dist/safe-bash-command-tar/index.js +4 -4
- package/dist/safe-bash-command-tar/modes.js +4 -4
- package/dist/safe-bash-command-unzip/index.js +1 -1
- package/dist/safe-bash-command-unzip/unzip.js +1 -1
- package/dist/safe-bash-markdown-engine/commonmark-blocks.d.ts +17 -1
- package/dist/safe-bash-markdown-engine/commonmark-blocks.js +3 -3
- package/dist/safe-bash-markdown-engine/commonmark-inlines.d.ts +1 -1
- package/dist/safe-bash-markdown-engine/commonmark-inlines.js +3 -3
- package/dist/safe-bash-markdown-engine/commonmark-syntax.d.ts +5 -0
- package/dist/safe-bash-markdown-engine/commonmark-syntax.js +5 -1
- package/dist/safe-bash-markdown-engine/gfm-syntax.js +2 -2
- package/dist/safe-bash-markdown-engine/index.js +4 -4
- package/dist/safe-bash-zip-engine/index.js +1 -1
- package/dist/safe-bash-zip-engine/zip/repair.js +1 -1
- package/dist/safe-bash-zip-engine/zip/sfx.js +1 -1
- package/dist/safe-bash-zip-engine/zip-format.d.ts +2 -0
- package/dist/safe-bash-zip-engine/zip-format.js +1 -1
- package/package.json +2 -2
- package/third-party/pdf-ast/THIRD_PARTY_NOTICES.md +2 -0
|
@@ -409,6 +409,8 @@ found multiple definitions for link/image/footnote: ${b.label}
|
|
|
409
409
|
n = node("table", { rows, alignments: b.alignments.map((a) => a === "AlignDefault" ? "none" : a.slice(5).toLowerCase()) });
|
|
410
410
|
break;
|
|
411
411
|
}
|
|
412
|
+
default:
|
|
413
|
+
throw new Error(`Unexpected CommonMark block ${b.kind}`);
|
|
412
414
|
}
|
|
413
415
|
(sections.at(-1)?.children ?? result).push(n);
|
|
414
416
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
2
|
+
Xe,
|
|
3
|
+
ge,
|
|
4
|
+
jr
|
|
5
|
+
} from "../safe-bash/command-chunks/chunk-R7QLP5RH.js";
|
|
6
6
|
import "../safe-bash/command-chunks/chunk-MO4CWGBR.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-5NKZJEUI.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-QIFS4QHZ.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
jr as createCiteprocFilterCapability,
|
|
12
|
+
ge as upgradeBracketedCitationsInBlocks,
|
|
13
|
+
Xe as upgradeBracketedCitationsInInlines
|
|
14
14
|
};
|
|
15
15
|
/*!
|
|
16
16
|
MIT License
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
2
|
+
dp,
|
|
3
|
+
hO,
|
|
4
|
+
uO
|
|
5
|
+
} from "../safe-bash/command-chunks/chunk-CIV3GER2.js";
|
|
6
6
|
import "../safe-bash/command-chunks/chunk-7QRIAJEQ.js";
|
|
7
7
|
import "../safe-bash/command-chunks/chunk-VJQ5OWS5.js";
|
|
8
8
|
import "../safe-bash/command-chunks/chunk-IOEUZ4EA.js";
|
|
9
9
|
import "../safe-bash/command-chunks/chunk-E6SK3OU2.js";
|
|
10
|
-
import "../safe-bash/command-chunks/chunk-
|
|
10
|
+
import "../safe-bash/command-chunks/chunk-R7QLP5RH.js";
|
|
11
11
|
import "../safe-bash/command-chunks/chunk-MO4CWGBR.js";
|
|
12
12
|
import "../safe-bash/command-chunks/chunk-IC5XC4TO.js";
|
|
13
13
|
import "../safe-bash/command-chunks/chunk-NUGQQDGE.js";
|
|
@@ -15,9 +15,9 @@ import "../safe-bash/command-chunks/chunk-5NKZJEUI.js";
|
|
|
15
15
|
import "../safe-bash/command-chunks/chunk-QIFS4QHZ.js";
|
|
16
16
|
import "../safe-bash/command-chunks/chunk-65DS4IOB.js";
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
dp as createPandocCommand,
|
|
19
|
+
uO as createPandocCommands,
|
|
20
|
+
hO as pandocCommands
|
|
21
21
|
};
|
|
22
22
|
/*!
|
|
23
23
|
MIT License
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
$l,
|
|
3
|
-
|
|
4
|
-
BI,
|
|
5
|
-
Bh,
|
|
6
|
-
CN,
|
|
3
|
+
Cr,
|
|
7
4
|
En,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
FI,
|
|
6
|
+
FN,
|
|
7
|
+
LN,
|
|
8
|
+
Lh,
|
|
9
|
+
ON,
|
|
10
|
+
Re,
|
|
11
|
+
Rr,
|
|
12
|
+
_l,
|
|
13
|
+
_u,
|
|
14
|
+
ap,
|
|
16
15
|
as,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
un
|
|
27
|
-
|
|
16
|
+
dp,
|
|
17
|
+
eu,
|
|
18
|
+
gc,
|
|
19
|
+
hO,
|
|
20
|
+
np,
|
|
21
|
+
oA,
|
|
22
|
+
sp,
|
|
23
|
+
tE,
|
|
24
|
+
uO,
|
|
25
|
+
un,
|
|
26
|
+
wc
|
|
27
|
+
} from "../safe-bash/command-chunks/chunk-CIV3GER2.js";
|
|
28
28
|
import "../safe-bash/command-chunks/chunk-7QRIAJEQ.js";
|
|
29
29
|
import "../safe-bash/command-chunks/chunk-VJQ5OWS5.js";
|
|
30
30
|
import "../safe-bash/command-chunks/chunk-IOEUZ4EA.js";
|
|
31
31
|
import "../safe-bash/command-chunks/chunk-E6SK3OU2.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "../safe-bash/command-chunks/chunk-
|
|
33
|
+
jr
|
|
34
|
+
} from "../safe-bash/command-chunks/chunk-R7QLP5RH.js";
|
|
35
35
|
import "../safe-bash/command-chunks/chunk-MO4CWGBR.js";
|
|
36
36
|
import {
|
|
37
37
|
_r
|
|
@@ -53,7 +53,7 @@ function K(u = {}) {
|
|
|
53
53
|
e2.signal.throwIfAborted();
|
|
54
54
|
let a = new TextEncoder(), f, C;
|
|
55
55
|
try {
|
|
56
|
-
let o =
|
|
56
|
+
let o = _l(e2.args, i);
|
|
57
57
|
if (o !== void 0) f = a.encode(o);
|
|
58
58
|
else {
|
|
59
59
|
let s = e2.fs ? { ...e2.cwd === void 0 ? {} : { cwd: e2.cwd }, stdin: e2.stdin, ...e2.createOutput ? { createOutput: e2.createOutput.bind(e2) } : {}, ...e2.fs.readStream ? { readStream: async function* (t2, r, n) {
|
|
@@ -64,7 +64,7 @@ function K(u = {}) {
|
|
|
64
64
|
if (typeof m != "object" || m === null || !("code" in m) || m.code !== "ENOTSUP" && m.code !== "EOPNOTSUPP") throw m;
|
|
65
65
|
}
|
|
66
66
|
yield await s.readFile(t2, r, n);
|
|
67
|
-
} } : {}, readFile: (t2, r, n) => e2.fs.readFile(O(e2.cwd ?? "/", t2), { signal: r, ...n === void 0 || n === 1 / 0 ? {} : { maxBytes: n } }), writeFile: (t2, r, n) => e2.fs.writeFile(O(e2.cwd ?? "/", t2), r, { signal: n }) } : e2, { options: S, operands: R, destination: d, limits: P } = await
|
|
67
|
+
} } : {}, readFile: (t2, r, n) => e2.fs.readFile(O(e2.cwd ?? "/", t2), { signal: r, ...n === void 0 || n === 1 / 0 ? {} : { maxBytes: n } }), writeFile: (t2, r, n) => e2.fs.writeFile(O(e2.cwd ?? "/", t2), r, { signal: n }) } : e2, { options: S, operands: R, destination: d, limits: P } = await sp(e2.args, s, e2.signal, i), A = (R ?? [{ chunks: e2.stdin }]).map((t2) => ({ ...t2, ...t2.base === void 0 && e2.cwd !== void 0 ? { base: e2.cwd } : {} })), F = { ...i, limits: P, signal: e2.signal, ...e2.fs === void 0 ? {} : { resourceFiles: e2.fs, resources: { resolve: async (t2, r, n) => e2.fs.readFile(`${r ?? e2.cwd ?? "/"}/${t2}`, { ...n === void 0 ? {} : { signal: n } }) } }, ...e2.cwd === void 0 ? {} : { resourceCwd: e2.cwd } }, p, v = d !== void 0 && s.createOutput ? { async write(t2, r) {
|
|
68
68
|
p ??= s.createOutput(d, r ?? e2.signal), (r ?? e2.signal).throwIfAborted(), await p.write(t2, r);
|
|
69
69
|
}, async close(t2) {
|
|
70
70
|
p ??= s.createOutput(d, t2 ?? e2.signal), (t2 ?? e2.signal).throwIfAborted(), await p.close(t2);
|
|
@@ -78,7 +78,7 @@ function K(u = {}) {
|
|
|
78
78
|
}
|
|
79
79
|
}, async close() {
|
|
80
80
|
}, async abort() {
|
|
81
|
-
} }, c = d === void 0 || s.createOutput ? await
|
|
81
|
+
} }, c = d === void 0 || s.createOutput ? await np(A, S, { ...F, output: v }) : await wc(A, S, { ...F, output: { publish: async (t2, r) => s.writeFile(d, t2, r) } });
|
|
82
82
|
for (let t2 of c.diagnostics) await e2.stderr.write(a.encode(`${t2.code}: ${t2.location ? `${t2.location}: ` : ""}${t2.message}
|
|
83
83
|
`)), e2.signal.throwIfAborted();
|
|
84
84
|
if (c.kind === "output") return { exitCode: 0 };
|
|
@@ -99,7 +99,7 @@ function Z(u = {}) {
|
|
|
99
99
|
i.signal.throwIfAborted();
|
|
100
100
|
let e2;
|
|
101
101
|
try {
|
|
102
|
-
e2 =
|
|
102
|
+
e2 = Rr(i.args, u);
|
|
103
103
|
} catch (a) {
|
|
104
104
|
if (!(a instanceof t)) throw a;
|
|
105
105
|
return await i.stderr.write(new TextEncoder().encode(`${a.code}: ${a.message}
|
|
@@ -114,33 +114,33 @@ export {
|
|
|
114
114
|
En as ExecutionContext,
|
|
115
115
|
t as PandocError,
|
|
116
116
|
export_assertNever as assertNever,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
117
|
+
wc as convert,
|
|
118
|
+
FN as convertSync,
|
|
119
|
+
np as convertToOutput,
|
|
120
|
+
$l as coreFormats,
|
|
121
|
+
jr as createCiteprocFilterCapability,
|
|
122
|
+
FI as createExecutionContext,
|
|
123
|
+
gc as createFileOutput,
|
|
124
124
|
Z as createFormatInspectionCommand,
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
Re as createFormatRegistry,
|
|
126
|
+
Lh as createJsonFilterCapability,
|
|
127
127
|
_r as createLuaFilterCapability,
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
dp as createPandocCommand,
|
|
129
|
+
uO as createPandocCommands,
|
|
130
130
|
K as createStandalonePandocCommand,
|
|
131
131
|
as as defaultLimits,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
132
|
+
ap as evalSyncPandoc,
|
|
133
|
+
tE as formatCapabilities,
|
|
134
|
+
_l as inspectCommand,
|
|
135
|
+
Rr as inspectFormats,
|
|
136
|
+
oA as normalizeDocument,
|
|
137
|
+
_u as normalizeDocumentCooperatively,
|
|
138
|
+
hO as pandocCommands,
|
|
139
|
+
Cr as parseConversionArgs,
|
|
140
|
+
eu as pdfReader,
|
|
141
|
+
ON as readDocument,
|
|
142
|
+
sp as resolveConversionArgs,
|
|
143
|
+
LN as writeDocument
|
|
144
144
|
};
|
|
145
145
|
/*!
|
|
146
146
|
MIT License
|