@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.
Files changed (61) hide show
  1. package/dist/mp4-ast/types.d.ts +4 -2
  2. package/dist/pdf-ast/cos/security.d.ts +10 -0
  3. package/dist/pdf-ast/edit/retained-attachment-edits.d.ts +4 -0
  4. package/dist/pdf-ast/edit/retained-graph.d.ts +1 -1
  5. package/dist/pdf-ast/image.js +1 -1
  6. package/dist/pdf-ast/index.d.ts +2 -1
  7. package/dist/pdf-ast/index.js +7 -1
  8. package/dist/pdf-ast/vendor/pdfjs-fonts.d.mts +8 -0
  9. package/dist/pdf-ast/vendor/pdfjs-fonts.mjs +28 -0
  10. package/dist/safe-bash/command-chunks/{chunk-SG2KOOD4.js → chunk-3SAYZFMD.js} +2 -2
  11. package/dist/safe-bash/command-chunks/{chunk-FH5VMAPS.js → chunk-45ZH6CNF.js} +20 -4
  12. package/dist/safe-bash/command-chunks/{chunk-T6OXG7QQ.js → chunk-AAOPVEPF.js} +66 -1
  13. package/dist/safe-bash/command-chunks/{chunk-46GA576V.js → chunk-CPKVUB7S.js} +2 -2
  14. package/dist/safe-bash/command-chunks/{chunk-MBXNG6C3.js → chunk-DLLN3C3Q.js} +1 -1
  15. package/dist/safe-bash/command-chunks/{chunk-ZSQCROFE.js → chunk-DM5T5D2K.js} +5 -1
  16. package/dist/safe-bash/command-chunks/{chunk-3EAZRKI4.js → chunk-G7HQYFIU.js} +10 -1
  17. package/dist/safe-bash/command-chunks/{chunk-GYKQ3IOV.js → chunk-LMYQMJYY.js} +94 -18
  18. package/dist/safe-bash/command-chunks/{chunk-DX7KU6YU.js → chunk-N52AHO6S.js} +1 -1
  19. package/dist/safe-bash/command-chunks/{chunk-4BSD2RGK.js → chunk-QPKL5GWH.js} +102 -42
  20. package/dist/safe-bash/command-chunks/{chunk-Z2T7E4ID.js → chunk-R7QLP5RH.js} +1212 -1119
  21. package/dist/safe-bash/command-chunks/{chunk-RSFKQE2U.js → chunk-T5WFJ44Z.js} +1 -1
  22. package/dist/safe-bash/command-chunks/{chunk-77ROD2TR.js → chunk-X3WNWRVT.js} +11 -5
  23. package/dist/safe-bash/command-chunks/{chunk-TCXM7BSZ.js → chunk-YFMNXPLP.js} +4 -4
  24. package/dist/safe-bash/command-chunks/{chunk-DQVOBGI2.js → chunk-YVFQ5I36.js} +7335 -7162
  25. package/dist/safe-bash-command-exiftool/index.js +25 -1
  26. package/dist/safe-bash-command-ffmpeg/index.js +174 -41
  27. package/dist/safe-bash-command-ffprobe/index.js +2 -2
  28. package/dist/safe-bash-command-ffprobe/media.js +2 -2
  29. package/dist/safe-bash-command-imagemagick/index.js +482 -98
  30. package/dist/safe-bash-command-mdq/index.js +2 -0
  31. package/dist/safe-bash-command-pandoc/citeproc-filters.js +7 -7
  32. package/dist/safe-bash-command-pandoc/command.js +8 -8
  33. package/dist/safe-bash-command-pandoc/index.js +51 -51
  34. package/dist/safe-bash-command-qpdf/index.js +1037 -654
  35. package/dist/safe-bash-command-qpdf/page-range.d.ts +2 -0
  36. package/dist/safe-bash-command-soffice/index.js +28 -8
  37. package/dist/safe-bash-command-sqlite3/btree.d.ts +2 -1
  38. package/dist/safe-bash-command-sqlite3/engine.d.ts +15 -1
  39. package/dist/safe-bash-command-sqlite3/index.js +294 -68
  40. package/dist/safe-bash-command-tar/create.js +2 -2
  41. package/dist/safe-bash-command-tar/extract.js +2 -2
  42. package/dist/safe-bash-command-tar/format.js +1 -1
  43. package/dist/safe-bash-command-tar/index.js +4 -4
  44. package/dist/safe-bash-command-tar/modes.js +4 -4
  45. package/dist/safe-bash-command-unzip/index.js +1 -1
  46. package/dist/safe-bash-command-unzip/unzip.js +1 -1
  47. package/dist/safe-bash-markdown-engine/commonmark-blocks.d.ts +17 -1
  48. package/dist/safe-bash-markdown-engine/commonmark-blocks.js +3 -3
  49. package/dist/safe-bash-markdown-engine/commonmark-inlines.d.ts +1 -1
  50. package/dist/safe-bash-markdown-engine/commonmark-inlines.js +3 -3
  51. package/dist/safe-bash-markdown-engine/commonmark-syntax.d.ts +5 -0
  52. package/dist/safe-bash-markdown-engine/commonmark-syntax.js +5 -1
  53. package/dist/safe-bash-markdown-engine/gfm-syntax.js +2 -2
  54. package/dist/safe-bash-markdown-engine/index.js +4 -4
  55. package/dist/safe-bash-zip-engine/index.js +1 -1
  56. package/dist/safe-bash-zip-engine/zip/repair.js +1 -1
  57. package/dist/safe-bash-zip-engine/zip/sfx.js +1 -1
  58. package/dist/safe-bash-zip-engine/zip-format.d.ts +2 -0
  59. package/dist/safe-bash-zip-engine/zip-format.js +1 -1
  60. package/package.json +2 -2
  61. 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-FH5VMAPS.js";
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-DX7KU6YU.js";
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-T6OXG7QQ.js";
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
- if (label && context.footnoteReference(label)) {
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 optionalKeywords = /* @__PURE__ */ new Set(["SCHILY.fflags", "LIBARCHIVE.creationtime"]);
127
- var optionalKeywordPrefixes = ["LIBARCHIVE.xattr.", "SCHILY.xattr."];
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 (optionalKeywords.has(key) || optionalKeywordPrefixes.some((prefix) => key.startsWith(prefix) && key.length > prefix.length)) continue;
145
- if (!supportedKeywords.has(key)) fail(`unsupported PAX keyword: ${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");