@poe-platform/safe-bash 0.1.839 → 0.1.840
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/mp4-ast/types.d.ts +4 -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/command-chunks/{chunk-SG2KOOD4.js → chunk-3SAYZFMD.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-FH5VMAPS.js → chunk-45ZH6CNF.js} +20 -4
- package/dist/safe-bash/command-chunks/{chunk-T6OXG7QQ.js → chunk-AAOPVEPF.js} +66 -1
- 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-RSFKQE2U.js → chunk-T5WFJ44Z.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-77ROD2TR.js → chunk-X3WNWRVT.js} +11 -5
- package/dist/safe-bash/command-chunks/{chunk-TCXM7BSZ.js → chunk-YFMNXPLP.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-DQVOBGI2.js → chunk-YVFQ5I36.js} +7335 -7162
- package/dist/safe-bash-command-exiftool/index.js +25 -1
- package/dist/safe-bash-command-ffmpeg/index.js +174 -41
- 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 +482 -98
- 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 +51 -51
- 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
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
probeOggStreamMetadata,
|
|
13
13
|
scanMp4Frames,
|
|
14
14
|
scanMp4Packets
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-45ZH6CNF.js";
|
|
16
16
|
|
|
17
17
|
// packages/safe-bash-command-ffprobe/src/probe-text.ts
|
|
18
18
|
import { yieldTurn } from "../../safe-bash-contracts/yield.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bareAutolink,
|
|
3
3
|
filterGfmHtml
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N52AHO6S.js";
|
|
5
5
|
import {
|
|
6
6
|
asciiPunctuation,
|
|
7
7
|
decodeSyntax,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
readLabel,
|
|
15
15
|
readTitle,
|
|
16
16
|
whitespace
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-AAOPVEPF.js";
|
|
18
18
|
import {
|
|
19
19
|
unicodePunctuation,
|
|
20
20
|
unicodeWhitespace
|
|
@@ -156,7 +156,7 @@ function html(text, start, context) {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
async function parseCommonMarkInlines(pending, definitions, context, extensions = {}) {
|
|
159
|
+
async function parseCommonMarkInlines(pending, definitions, context, extensions = {}, footnote) {
|
|
160
160
|
context.checkpoint(0);
|
|
161
161
|
const size = pending.lines.reduce((n, line) => n + line.text.length + 1, -1);
|
|
162
162
|
context.bound("text", Math.max(0, size));
|
|
@@ -353,10 +353,16 @@ async function parseCommonMarkInlines(pending, definitions, context, extensions
|
|
|
353
353
|
continue;
|
|
354
354
|
}
|
|
355
355
|
if (char === "[" || char === "!" && text[i + 1] === "[") {
|
|
356
|
-
if (char === "[" && text[i + 1] === "^" && context.footnoteReference) {
|
|
356
|
+
if (char === "[" && text[i + 1] === "^" && (footnote || context.footnoteReference)) {
|
|
357
357
|
const end = text.indexOf("]", i + 2);
|
|
358
358
|
const label = end < 0 ? "" : text.slice(i + 2, end);
|
|
359
|
-
|
|
359
|
+
const note = label ? await footnote?.(label) : void 0;
|
|
360
|
+
if (note) {
|
|
361
|
+
append(note);
|
|
362
|
+
i = end + 1;
|
|
363
|
+
continue;
|
|
364
|
+
}
|
|
365
|
+
if (label && context.footnoteReference?.(label)) {
|
|
360
366
|
append({ t: "RawInline", c: ["mdq-footnote", label] });
|
|
361
367
|
i = end + 1;
|
|
362
368
|
continue;
|
|
@@ -123,8 +123,8 @@ function decimalTime(value) {
|
|
|
123
123
|
return value.toFixed(9).replace(/(\.[0-9]*?)0+$/u, "$1").replace(/\.$/u, "");
|
|
124
124
|
}
|
|
125
125
|
var supportedKeywords = /* @__PURE__ */ new Set(["path", "linkpath", "size", "uid", "gid", "mtime", "atime", "ctime", "uname", "gname", "comment", "charset", "hdrcharset"]);
|
|
126
|
-
var
|
|
127
|
-
var
|
|
126
|
+
var unsupportedKeywords = /* @__PURE__ */ new Set(["SCHILY.realsize", "SCHILY.filetype", "SCHILY.offset", "SCHILY.dev", "SCHILY.ino", "SCHILY.nlink", "SUN.holesdata", "LIBARCHIVE.symlinktype"]);
|
|
127
|
+
var unsupportedKeywordPrefixes = ["GNU.sparse.", "GNU.volume."];
|
|
128
128
|
function parsePax(payload) {
|
|
129
129
|
const result = /* @__PURE__ */ new Map();
|
|
130
130
|
let offset = 0;
|
|
@@ -141,8 +141,8 @@ function parsePax(payload) {
|
|
|
141
141
|
const key = text(record.subarray(0, equals));
|
|
142
142
|
if (/[\0\n]/u.test(key)) fail("invalid PAX key/value");
|
|
143
143
|
offset += size;
|
|
144
|
-
if (
|
|
145
|
-
if (!supportedKeywords.has(key))
|
|
144
|
+
if (unsupportedKeywords.has(key) || unsupportedKeywordPrefixes.some((prefix) => key.startsWith(prefix))) fail(`unsupported PAX keyword: ${key}`);
|
|
145
|
+
if (!supportedKeywords.has(key)) continue;
|
|
146
146
|
const value = text(record.subarray(equals + 1));
|
|
147
147
|
if (value.includes("\0")) fail("invalid PAX key/value");
|
|
148
148
|
if (key === "hdrcharset" && value !== "" && value !== "ISO-IR 10646 2000 UTF-8") fail("unsupported PAX header charset");
|