@poe-platform/safe-bash 0.1.781 → 0.1.783
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/README.md +40 -0
- package/dist/office-package/zip-sync.d.ts +2 -0
- package/dist/office-package/zip-sync.js +111 -0
- package/dist/safe-bash/chunks/chunk-4FDQJUFW.js +3464 -0
- package/dist/safe-bash/chunks/csvkit-K55OYAQC.js +1564 -0
- package/dist/safe-bash/chunks/ffmpeg-BEFTQ6DZ.js +60 -0
- package/dist/safe-bash/chunks/gh-HQWOWLWE.js +41 -0
- package/dist/safe-bash/chunks/git-UFNPAOYZ.js +52 -0
- package/dist/safe-bash/chunks/imagemagick-53BMHH6D.js +134 -0
- package/dist/safe-bash/chunks/implementation-QUTAAYMT.js +105 -0
- package/dist/safe-bash/chunks/pdfimages-4OYI6FLG.js +73 -0
- package/dist/safe-bash/chunks/pdfinfo-I7U6TQPP.js +153 -0
- package/dist/safe-bash/chunks/pdftk-SUA6FMHI.js +79 -0
- package/dist/safe-bash/chunks/pdftoppm-4C5DGEWX.js +139 -0
- package/dist/safe-bash/chunks/pdftotext-Y4WI225Y.js +118 -0
- package/dist/safe-bash/chunks/qpdf-IORB4RV5.js +68 -0
- package/dist/safe-bash/chunks/sips-WHAMJFEU.js +77 -0
- package/dist/safe-bash/chunks/soffice-SYEK6WJS.js +89 -0
- package/dist/safe-bash/chunks/wkhtmltopdf-ZIICWJLF.js +85 -0
- package/dist/safe-bash/command-chunks/chunk-2LP3VMPA.js +58 -0
- package/dist/safe-bash/command-chunks/{chunk-CG4JSOK2.js → chunk-3HDIDEUJ.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-4DSJDVBM.js +2897 -0
- package/dist/safe-bash/command-chunks/{chunk-GBHSE6ZO.js → chunk-5GRLAARV.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-7OKDCM5U.js +112 -0
- package/dist/safe-bash/command-chunks/{chunk-FH3D75FC.js → chunk-ADCGH6A7.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-MTKXVRXL.js → chunk-DREUDEQG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-ADBFNLLK.js → chunk-FXYWQ6S4.js} +16 -14
- package/dist/safe-bash/command-chunks/{chunk-Y2KHC6TZ.js → chunk-IDKD76KR.js} +5 -3
- package/dist/safe-bash/command-chunks/{chunk-K6KBYLQC.js → chunk-JUDOV5MJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-3ZK5F23O.js → chunk-L3MLMXL4.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-E5TEVROY.js → chunk-PFBJR2PY.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-YGYOVXTO.js → chunk-UUR2S7AD.js} +9 -5
- package/dist/safe-bash/command-chunks/chunk-VIVYKW7Q.js +101 -0
- package/dist/safe-bash/command-chunks/{chunk-I5GLTNVH.js → chunk-X4P42NYK.js} +2 -27
- package/dist/safe-bash/command-chunks/{chunk-XF6TXYLD.js → chunk-Z57TV6TC.js} +4 -54
- package/dist/safe-bash/command-chunks/{chunk-QDPRSPHQ.js → chunk-Z64BW7CG.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-X3IVPNC3.js → chunk-Z7TYZG3A.js} +5 -3
- package/dist/safe-bash/command-chunks/{chunk-GZXLPWT5.js → chunk-ZF3ZVGQC.js} +259 -258
- package/dist/safe-bash/command-chunks/{pptx-ZL6L7KP2-QVZEYFUV.js → pptx-KY2OJWZW-76LBHCHD.js} +4 -3
- package/dist/safe-bash/commands/csvkit/index.d.ts +1 -8
- package/dist/safe-bash/commands/csvkit/index.js +5 -1639
- package/dist/safe-bash/commands/csvkit/sync.d.ts +9 -0
- package/dist/safe-bash/commands/csvkit/sync.js +1639 -0
- package/dist/safe-bash/commands/pandoc/implementation.d.ts +8 -0
- package/dist/safe-bash/commands/pandoc/implementation.js +92 -0
- package/dist/safe-bash/commands/pandoc/index.d.ts +2 -6
- package/dist/safe-bash/commands/pandoc/index.js +2 -90
- package/dist/safe-bash/core.browser.js +808 -6271
- package/dist/safe-bash/core.d.ts +17 -16
- package/dist/safe-bash/core.js +17 -16
- package/dist/safe-bash/lazy-gh.d.ts +10 -0
- package/dist/safe-bash/lazy-gh.js +30 -0
- package/dist/safe-bash/lazy-optional.d.ts +499 -0
- package/dist/safe-bash/lazy-optional.js +609 -0
- package/dist/safe-bash/plugins/composition.d.ts +1 -1
- package/dist/safe-bash/plugins/composition.js +1 -1
- package/dist/safe-bash/plugins/lazy-command.d.ts +9 -0
- package/dist/safe-bash/plugins/lazy-command.js +57 -0
- package/dist/safe-bash/shell/runtime.js +24 -25
- package/dist/safe-bash-command-csvkit/cli/lexical.d.ts +3 -0
- package/dist/safe-bash-command-csvkit/cli/parser.d.ts +1 -2
- package/dist/safe-bash-command-csvkit/codecs/python.js +3 -2
- package/dist/safe-bash-command-csvkit/codecs/utf8.js +2 -1
- package/dist/safe-bash-command-csvkit/index.js +453 -3270
- package/dist/safe-bash-command-csvkit/sync-support.d.ts +7 -0
- package/dist/safe-bash-command-csvkit/sync-support.js +31 -0
- package/dist/safe-bash-command-gh/index.js +25 -17
- package/dist/safe-bash-command-git/index.js +6 -10
- package/dist/safe-bash-command-imagemagick/index.js +2 -2
- package/dist/safe-bash-command-pandoc/citeproc-filters.js +4 -2
- package/dist/safe-bash-command-pandoc/command.js +8 -6
- package/dist/safe-bash-command-pandoc/index.js +8 -6
- package/dist/safe-bash-command-pandoc/lua-filters.js +3 -2
- package/dist/safe-bash-command-pandoc/options.d.ts +5 -0
- package/dist/safe-bash-command-pandoc/options.js +93 -0
- package/dist/safe-bash-command-sips/index.js +2 -2
- package/dist/safe-bash-command-soffice/index.d.ts +1 -2
- package/dist/safe-bash-command-soffice/index.js +22 -18
- package/dist/safe-bash-command-ssconvert/commands.js +2 -2
- package/dist/safe-bash-command-ssconvert/core.js +2 -2
- package/dist/safe-bash-command-ssconvert/formats/csv.js +2 -2
- package/dist/safe-bash-command-ssconvert/formats/xls.js +3 -3
- package/dist/safe-bash-command-ssconvert/formats/xlsx.js +3 -3
- package/dist/safe-bash-command-timeout/index.js +3 -3
- package/dist/safe-bash-command-yq/index.js +5 -5
- package/dist/safe-bash-compression-engine/bounded-codec.js +3 -3
- package/dist/safe-bash-compression-engine/codec-loader.js +2 -2
- package/dist/safe-bash-compression-engine/files.js +7 -7
- package/dist/safe-bash-compression-engine/index.js +6 -6
- package/dist/safe-bash-compression-engine/operand.js +7 -7
- package/dist/safe-bash-compression-engine/stream.js +6 -6
- package/dist/safe-bash-compression-engine/zstd-decode.js +5 -5
- package/dist/safe-bash-contracts/diagnostics.js +3 -3
- package/dist/safe-bash-contracts/escaping.js +9 -9
- package/dist/safe-bash-contracts/filesystem-descriptor.js +1 -1
- package/dist/safe-bash-contracts/filesystem-output.js +10 -10
- package/dist/safe-bash-contracts/index.js +40 -40
- package/dist/safe-bash-io-engine/commands/search/requirements.js +4 -4
- package/dist/safe-bash-io-engine/commands/text-programs/shared.js +4 -4
- package/dist/safe-bash-io-engine/internal.d.ts +9 -0
- package/dist/safe-bash-io-engine/internal.js +3 -3
- package/dist/safe-bash-query-engine/index.js +6 -6
- package/dist/safe-bash-query-engine/interpreter.js +5 -5
- package/dist/safe-bash-query-engine/query-core.js +6 -6
- package/dist/safe-bash-regex-engine/execution/bounded-provider.js +3 -3
- package/dist/safe-bash-regex-engine/index.js +2 -2
- package/dist/safe-bash-regex-engine/text/regex.js +2 -2
- package/dist/safe-bash-xml-engine/index.js +3 -3
- package/package.json +4 -4
- package/dist/safe-bash/command-chunks/{chunk-DC52GWRK.js → chunk-BUKYQBXO.js} +13 -13
- package/dist/safe-bash/command-chunks/{chunk-QJ3ONEBI.js → chunk-DEH3CMGL.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-Y64PA6IA.js → chunk-KHZZ4V3L.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-I7PKIGII.js → chunk-QIRUOY2W.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-HQG2IBZL.js → chunk-TOSM3T3A.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-F4IQCXZG.js → chunk-VBZMCL23.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-J2NPH7DO.js → chunk-W2T7JWT3.js} +3 -3
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_buffer
|
|
3
|
+
} from "./chunk-HX3SHTCE.js";
|
|
4
|
+
|
|
5
|
+
// packages/safe-bash-command-pandoc/dist/chunks/chunk-FOCIZYL3.js
|
|
6
|
+
init_buffer();
|
|
7
|
+
var AstError = class extends Error {
|
|
8
|
+
constructor(code, path, message) {
|
|
9
|
+
super(`${path}: ${message}`);
|
|
10
|
+
this.code = code;
|
|
11
|
+
this.path = path;
|
|
12
|
+
}
|
|
13
|
+
code;
|
|
14
|
+
path;
|
|
15
|
+
};
|
|
16
|
+
var PandocError = class extends Error {
|
|
17
|
+
constructor(code, operation, message, format, location) {
|
|
18
|
+
super(message);
|
|
19
|
+
this.code = code;
|
|
20
|
+
this.operation = operation;
|
|
21
|
+
this.format = format;
|
|
22
|
+
this.location = location;
|
|
23
|
+
this.name = "PandocError";
|
|
24
|
+
}
|
|
25
|
+
code;
|
|
26
|
+
operation;
|
|
27
|
+
format;
|
|
28
|
+
location;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
AstError,
|
|
33
|
+
PandocError
|
|
34
|
+
};
|
|
35
|
+
/*!
|
|
36
|
+
MIT License
|
|
37
|
+
|
|
38
|
+
Copyright © 2017-2019 Benoit Giannangeli
|
|
39
|
+
Copyright © 2017-2025 Daurnimator
|
|
40
|
+
Copyright © 1994–2017 Lua.org, PUC-Rio.
|
|
41
|
+
|
|
42
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
43
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
44
|
+
in the Software without restriction, including without limitation the rights
|
|
45
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
46
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
47
|
+
furnished to do so, subject to the following conditions:
|
|
48
|
+
|
|
49
|
+
The above copyright notice and this permission notice shall be included in all
|
|
50
|
+
copies or substantial portions of the Software.
|
|
51
|
+
|
|
52
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
53
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
54
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
55
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
56
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
57
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
58
|
+
SOFTWARE.
|
|
59
|
+
|
|
60
|
+
*/
|
|
61
|
+
/*!
|
|
62
|
+
Copyright (c) 2007-present, Alexandru Mărășteanu <hello@alexei.ro>
|
|
63
|
+
All rights reserved.
|
|
64
|
+
|
|
65
|
+
Redistribution and use in source and binary forms, with or without
|
|
66
|
+
modification, are permitted provided that the following conditions are met:
|
|
67
|
+
* Redistributions of source code must retain the above copyright
|
|
68
|
+
notice, this list of conditions and the following disclaimer.
|
|
69
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
70
|
+
notice, this list of conditions and the following disclaimer in the
|
|
71
|
+
documentation and/or other materials provided with the distribution.
|
|
72
|
+
* Neither the name of this software nor the names of its contributors may be
|
|
73
|
+
used to endorse or promote products derived from this software without
|
|
74
|
+
specific prior written permission.
|
|
75
|
+
|
|
76
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
77
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
78
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
79
|
+
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
|
80
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
81
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
82
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
83
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
84
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
85
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
86
|
+
|
|
87
|
+
*/
|
|
88
|
+
/*!
|
|
89
|
+
Copyright (c) 2009-2019 Frank Bennett
|
|
90
|
+
|
|
91
|
+
This program is free software: you can redistribute it and/or
|
|
92
|
+
modify it under EITHER
|
|
93
|
+
|
|
94
|
+
* the terms of the Common Public Attribution License (CPAL) as
|
|
95
|
+
published by the Open Source Initiative, either version 1 of
|
|
96
|
+
the CPAL, or (at your option) any later version; OR
|
|
97
|
+
|
|
98
|
+
* the terms of the GNU Affero General Public License (AGPL)
|
|
99
|
+
as published by the Free Software Foundation, either version
|
|
100
|
+
3 of the AGPL, or (at your option) any later version.
|
|
101
|
+
|
|
102
|
+
This program is distributed in the hope that it will be useful,
|
|
103
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
104
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
105
|
+
Affero General Public License for more details.
|
|
106
|
+
|
|
107
|
+
You should have received copies of the Common Public Attribution
|
|
108
|
+
License and of the GNU Affero General Public License along with
|
|
109
|
+
this program. If not, see <https://opensource.org/licenses/> or
|
|
110
|
+
<http://www.gnu.org/licenses/> respectively.
|
|
111
|
+
|
|
112
|
+
*/
|
|
@@ -48,14 +48,14 @@ import {
|
|
|
48
48
|
trimImage,
|
|
49
49
|
unflattenImage,
|
|
50
50
|
unpremultiplyRgbaImage
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-5GRLAARV.js";
|
|
52
52
|
import {
|
|
53
53
|
PdfDocument,
|
|
54
54
|
encodePng
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-ZF3ZVGQC.js";
|
|
56
56
|
import {
|
|
57
57
|
createLuaFilterCapability
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-IDKD76KR.js";
|
|
59
59
|
import {
|
|
60
60
|
createCiteprocFilterCapability,
|
|
61
61
|
defaultTreeAdapter,
|
|
@@ -63,19 +63,24 @@ import {
|
|
|
63
63
|
htmlTreeDocument,
|
|
64
64
|
html_exports,
|
|
65
65
|
parseFragment
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-UUR2S7AD.js";
|
|
67
67
|
import {
|
|
68
68
|
AstError,
|
|
69
|
-
PandocError
|
|
69
|
+
PandocError
|
|
70
|
+
} from "./chunk-7OKDCM5U.js";
|
|
71
|
+
import {
|
|
72
|
+
validatePandocOptions
|
|
73
|
+
} from "./chunk-VIVYKW7Q.js";
|
|
74
|
+
import {
|
|
70
75
|
__commonJS,
|
|
71
76
|
__reExport,
|
|
72
77
|
__toESM
|
|
73
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-X4P42NYK.js";
|
|
74
79
|
import {
|
|
75
80
|
init_buffer
|
|
76
81
|
} from "./chunk-HX3SHTCE.js";
|
|
77
82
|
|
|
78
|
-
// packages/safe-bash-command-pandoc/dist/chunks/chunk-
|
|
83
|
+
// packages/safe-bash-command-pandoc/dist/chunks/chunk-GDTQSZQM.js
|
|
79
84
|
init_buffer();
|
|
80
85
|
import * as gfm_syntax_star from "../../safe-bash-markdown-engine/gfm-syntax.js";
|
|
81
86
|
import * as commonmark_blocks_star from "../../safe-bash-markdown-engine/commonmark-blocks.js";
|
|
@@ -3346,7 +3351,7 @@ async function renderPdf(document, context = {}) {
|
|
|
3346
3351
|
return bytes;
|
|
3347
3352
|
}
|
|
3348
3353
|
|
|
3349
|
-
// packages/safe-bash-command-pandoc/dist/chunks/chunk-
|
|
3354
|
+
// packages/safe-bash-command-pandoc/dist/chunks/chunk-GDTQSZQM.js
|
|
3350
3355
|
import { hasYieldCheckpoint, runYieldCheckpoint, yieldTurn } from "../../safe-bash-contracts/yield.js";
|
|
3351
3356
|
import { dirname } from "@poe-platform/safe-fs/core";
|
|
3352
3357
|
import { createOutputOperation, getCommandArguments, readBytes, FsError } from "../../safe-bash-contracts/index.js";
|
|
@@ -13852,7 +13857,7 @@ var pptx_default = {
|
|
|
13852
13857
|
format: "pptx",
|
|
13853
13858
|
async read(input, context, selection) {
|
|
13854
13859
|
context.signal?.throwIfAborted();
|
|
13855
|
-
const { pptxReader } = await import("./pptx-
|
|
13860
|
+
const { pptxReader } = await import("./pptx-KY2OJWZW-76LBHCHD.js");
|
|
13856
13861
|
context.signal?.throwIfAborted();
|
|
13857
13862
|
return pptxReader.read(input, context, selection);
|
|
13858
13863
|
}
|
|
@@ -13861,7 +13866,7 @@ var pptx_default = {
|
|
|
13861
13866
|
format: "pptx",
|
|
13862
13867
|
async write(document, context, selection) {
|
|
13863
13868
|
context.signal?.throwIfAborted();
|
|
13864
|
-
const { pptxWriter } = await import("./pptx-
|
|
13869
|
+
const { pptxWriter } = await import("./pptx-KY2OJWZW-76LBHCHD.js");
|
|
13865
13870
|
context.signal?.throwIfAborted();
|
|
13866
13871
|
return pptxWriter.write(document, context, selection);
|
|
13867
13872
|
}
|
|
@@ -23109,11 +23114,8 @@ function parseShebangCommand(bytes) {
|
|
|
23109
23114
|
return first || void 0;
|
|
23110
23115
|
}
|
|
23111
23116
|
function createPandocCommand(options = {}, hasCommand) {
|
|
23112
|
-
|
|
23117
|
+
validatePandocOptions(options);
|
|
23113
23118
|
const interpreter = options.jsonFilterCommand;
|
|
23114
|
-
if (interpreter !== void 0 && (typeof interpreter !== "string" || !interpreter || [...interpreter].some((character) => character.trim() === "" || character === "/" || character === "\0")))
|
|
23115
|
-
throw new TypeError("pandoc jsonFilterCommand must be a registered command name");
|
|
23116
|
-
if (interpreter !== void 0 && options.filters !== void 0) throw new TypeError("Supply either filters or jsonFilterCommand");
|
|
23117
23119
|
const limits = { ...options.limits };
|
|
23118
23120
|
const configuredFilters = options.filters;
|
|
23119
23121
|
const citeprocCapability = createCiteprocFilterCapability(options.citeproc);
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
PandocError
|
|
2
|
+
PandocError
|
|
3
|
+
} from "./chunk-7OKDCM5U.js";
|
|
4
|
+
import {
|
|
3
5
|
__commonJS,
|
|
4
6
|
__toESM
|
|
5
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X4P42NYK.js";
|
|
6
8
|
import {
|
|
7
9
|
init_buffer
|
|
8
10
|
} from "./chunk-HX3SHTCE.js";
|
|
9
11
|
|
|
10
|
-
// packages/safe-bash-command-pandoc/dist/chunks/chunk-
|
|
12
|
+
// packages/safe-bash-command-pandoc/dist/chunks/chunk-ITO6VAHP.js
|
|
11
13
|
init_buffer();
|
|
12
14
|
var require_luaconf = __commonJS({
|
|
13
15
|
"../../node_modules/fengari/src/luaconf.js"(exports, module) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
zstdDecode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L3MLMXL4.js";
|
|
4
4
|
import {
|
|
5
5
|
gunzipMembers
|
|
6
6
|
} from "./chunk-6NTY42E5.js";
|
|
7
|
-
import {
|
|
8
|
-
boundedCodec
|
|
9
|
-
} from "./chunk-FH3D75FC.js";
|
|
10
7
|
import {
|
|
11
8
|
CodecReader,
|
|
12
9
|
codec
|
|
13
10
|
} from "./chunk-2MFNTNK7.js";
|
|
11
|
+
import {
|
|
12
|
+
boundedCodec
|
|
13
|
+
} from "./chunk-ADCGH6A7.js";
|
|
14
14
|
import {
|
|
15
15
|
init_buffer
|
|
16
16
|
} from "./chunk-HX3SHTCE.js";
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
PandocError
|
|
2
|
+
PandocError
|
|
3
|
+
} from "./chunk-7OKDCM5U.js";
|
|
4
|
+
import {
|
|
5
|
+
validateCiteprocOptions
|
|
6
|
+
} from "./chunk-VIVYKW7Q.js";
|
|
7
|
+
import {
|
|
3
8
|
__commonJS,
|
|
4
9
|
__export,
|
|
5
10
|
__toESM
|
|
6
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-X4P42NYK.js";
|
|
7
12
|
import {
|
|
8
13
|
init_buffer
|
|
9
14
|
} from "./chunk-HX3SHTCE.js";
|
|
10
15
|
|
|
11
|
-
// packages/safe-bash-command-pandoc/dist/chunks/chunk-
|
|
16
|
+
// packages/safe-bash-command-pandoc/dist/chunks/chunk-FTHS6SXK.js
|
|
12
17
|
init_buffer();
|
|
13
18
|
var require_citeproc_commonjs = __commonJS({
|
|
14
19
|
"../../node_modules/citeproc/citeproc_commonjs.js"(exports, module) {
|
|
@@ -27262,8 +27267,7 @@ function metaValueToCsl(value2, numeric = false) {
|
|
|
27262
27267
|
return Object.fromEntries(Object.entries(value2.c).map(([key, child]) => [key, metaValueToCsl(child, numeric || key === "date-parts")]));
|
|
27263
27268
|
}
|
|
27264
27269
|
function createCiteprocFilterCapability(options = {}) {
|
|
27265
|
-
|
|
27266
|
-
throw new TypeError("CSL style, locale and references must be valid when supplied");
|
|
27270
|
+
validateCiteprocOptions(options);
|
|
27267
27271
|
const style = options.style ?? defaultStyle;
|
|
27268
27272
|
const locale = options.locale ?? defaultLocale;
|
|
27269
27273
|
return {
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_buffer
|
|
3
|
+
} from "./chunk-HX3SHTCE.js";
|
|
4
|
+
|
|
5
|
+
// packages/safe-bash-command-pandoc/dist/chunks/chunk-3B7AZ7AO.js
|
|
6
|
+
init_buffer();
|
|
7
|
+
function validatePandocOptions(options) {
|
|
8
|
+
if (options.replace !== void 0 && typeof options.replace !== "boolean") throw new TypeError("pandoc replace must be boolean");
|
|
9
|
+
const interpreter = options.jsonFilterCommand;
|
|
10
|
+
if (interpreter !== void 0 && (typeof interpreter !== "string" || !interpreter || [...interpreter].some((character) => character.trim() === "" || character === "/" || character === "\0")))
|
|
11
|
+
throw new TypeError("pandoc jsonFilterCommand must be a registered command name");
|
|
12
|
+
if (interpreter !== void 0 && options.filters !== void 0) throw new TypeError("Supply either filters or jsonFilterCommand");
|
|
13
|
+
validateCiteprocOptions(options.citeproc === void 0 ? {} : options.citeproc);
|
|
14
|
+
}
|
|
15
|
+
function validateCiteprocOptions(options) {
|
|
16
|
+
if (!options || typeof options !== "object" || options.style !== void 0 && typeof options.style !== "string" || options.locale !== void 0 && typeof options.locale !== "string" || options.references !== void 0 && !Array.isArray(options.references))
|
|
17
|
+
throw new TypeError("CSL style, locale and references must be valid when supplied");
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
validatePandocOptions,
|
|
22
|
+
validateCiteprocOptions
|
|
23
|
+
};
|
|
24
|
+
/*!
|
|
25
|
+
MIT License
|
|
26
|
+
|
|
27
|
+
Copyright © 2017-2019 Benoit Giannangeli
|
|
28
|
+
Copyright © 2017-2025 Daurnimator
|
|
29
|
+
Copyright © 1994–2017 Lua.org, PUC-Rio.
|
|
30
|
+
|
|
31
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
32
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
33
|
+
in the Software without restriction, including without limitation the rights
|
|
34
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
35
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
36
|
+
furnished to do so, subject to the following conditions:
|
|
37
|
+
|
|
38
|
+
The above copyright notice and this permission notice shall be included in all
|
|
39
|
+
copies or substantial portions of the Software.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
42
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
43
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
44
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
45
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
46
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
47
|
+
SOFTWARE.
|
|
48
|
+
|
|
49
|
+
*/
|
|
50
|
+
/*!
|
|
51
|
+
Copyright (c) 2007-present, Alexandru Mărășteanu <hello@alexei.ro>
|
|
52
|
+
All rights reserved.
|
|
53
|
+
|
|
54
|
+
Redistribution and use in source and binary forms, with or without
|
|
55
|
+
modification, are permitted provided that the following conditions are met:
|
|
56
|
+
* Redistributions of source code must retain the above copyright
|
|
57
|
+
notice, this list of conditions and the following disclaimer.
|
|
58
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
59
|
+
notice, this list of conditions and the following disclaimer in the
|
|
60
|
+
documentation and/or other materials provided with the distribution.
|
|
61
|
+
* Neither the name of this software nor the names of its contributors may be
|
|
62
|
+
used to endorse or promote products derived from this software without
|
|
63
|
+
specific prior written permission.
|
|
64
|
+
|
|
65
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
66
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
67
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
68
|
+
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
|
|
69
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
70
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
71
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
72
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
73
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
74
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
75
|
+
|
|
76
|
+
*/
|
|
77
|
+
/*!
|
|
78
|
+
Copyright (c) 2009-2019 Frank Bennett
|
|
79
|
+
|
|
80
|
+
This program is free software: you can redistribute it and/or
|
|
81
|
+
modify it under EITHER
|
|
82
|
+
|
|
83
|
+
* the terms of the Common Public Attribution License (CPAL) as
|
|
84
|
+
published by the Open Source Initiative, either version 1 of
|
|
85
|
+
the CPAL, or (at your option) any later version; OR
|
|
86
|
+
|
|
87
|
+
* the terms of the GNU Affero General Public License (AGPL)
|
|
88
|
+
as published by the Free Software Foundation, either version
|
|
89
|
+
3 of the AGPL, or (at your option) any later version.
|
|
90
|
+
|
|
91
|
+
This program is distributed in the hope that it will be useful,
|
|
92
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
93
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
94
|
+
Affero General Public License for more details.
|
|
95
|
+
|
|
96
|
+
You should have received copies of the Common Public Attribution
|
|
97
|
+
License and of the GNU Affero General Public License along with
|
|
98
|
+
this program. If not, see <https://opensource.org/licenses/> or
|
|
99
|
+
<http://www.gnu.org/licenses/> respectively.
|
|
100
|
+
|
|
101
|
+
*/
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
init_buffer
|
|
3
3
|
} from "./chunk-HX3SHTCE.js";
|
|
4
4
|
|
|
5
|
-
// packages/safe-bash-command-pandoc/dist/chunks/chunk-
|
|
5
|
+
// packages/safe-bash-command-pandoc/dist/chunks/chunk-FL3XDD2I.js
|
|
6
6
|
init_buffer();
|
|
7
7
|
var __create = Object.create;
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
@@ -38,37 +38,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
39
|
mod
|
|
40
40
|
));
|
|
41
|
-
var AstError = class extends Error {
|
|
42
|
-
constructor(code, path, message) {
|
|
43
|
-
super(`${path}: ${message}`);
|
|
44
|
-
this.code = code;
|
|
45
|
-
this.path = path;
|
|
46
|
-
}
|
|
47
|
-
code;
|
|
48
|
-
path;
|
|
49
|
-
};
|
|
50
|
-
var PandocError = class extends Error {
|
|
51
|
-
constructor(code, operation, message, format, location) {
|
|
52
|
-
super(message);
|
|
53
|
-
this.code = code;
|
|
54
|
-
this.operation = operation;
|
|
55
|
-
this.format = format;
|
|
56
|
-
this.location = location;
|
|
57
|
-
this.name = "PandocError";
|
|
58
|
-
}
|
|
59
|
-
code;
|
|
60
|
-
operation;
|
|
61
|
-
format;
|
|
62
|
-
location;
|
|
63
|
-
};
|
|
64
41
|
|
|
65
42
|
export {
|
|
66
43
|
__commonJS,
|
|
67
44
|
__export,
|
|
68
45
|
__reExport,
|
|
69
|
-
__toESM
|
|
70
|
-
AstError,
|
|
71
|
-
PandocError
|
|
46
|
+
__toESM
|
|
72
47
|
};
|
|
73
48
|
/*!
|
|
74
49
|
MIT License
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CsvkitBlocked,
|
|
3
|
+
PythonException
|
|
4
|
+
} from "./chunk-2LP3VMPA.js";
|
|
1
5
|
import {
|
|
2
6
|
init_buffer
|
|
3
7
|
} from "./chunk-HX3SHTCE.js";
|
|
@@ -5,54 +9,6 @@ import {
|
|
|
5
9
|
// packages/safe-bash-command-csvkit/dist/codecs/utf8.js
|
|
6
10
|
init_buffer();
|
|
7
11
|
|
|
8
|
-
// packages/safe-bash-command-csvkit/dist/diagnostics/exception.js
|
|
9
|
-
init_buffer();
|
|
10
|
-
|
|
11
|
-
// packages/safe-bash-command-csvkit/dist/errors.js
|
|
12
|
-
init_buffer();
|
|
13
|
-
var CsvkitDiagnostic = class extends Error {
|
|
14
|
-
status;
|
|
15
|
-
constructor(message, status = 1) {
|
|
16
|
-
super(message);
|
|
17
|
-
this.status = status;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
var CsvkitBlocked = class extends CsvkitDiagnostic {
|
|
21
|
-
constructor(message) {
|
|
22
|
-
super(`csvkit: unsupported or unqualified: ${message}`, 78);
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
var CsvkitOutputBudgetError = class extends CsvkitBlocked {
|
|
26
|
-
constructor() {
|
|
27
|
-
super("output byte budget exceeded");
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
var CsvkitWorkBudgetError = class extends CsvkitBlocked {
|
|
31
|
-
constructor() {
|
|
32
|
-
super("work budget exceeded");
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
var CsvkitCleanupError = class extends AggregateError {
|
|
36
|
-
constructor(errors, message) {
|
|
37
|
-
super(errors, message);
|
|
38
|
-
this.name = "CsvkitCleanupError";
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
// packages/safe-bash-command-csvkit/dist/diagnostics/exception.js
|
|
43
|
-
var PythonException = class extends CsvkitDiagnostic {
|
|
44
|
-
exceptionClass;
|
|
45
|
-
detail;
|
|
46
|
-
traceback;
|
|
47
|
-
constructor(exceptionClass, detail, traceback) {
|
|
48
|
-
super(detail);
|
|
49
|
-
this.exceptionClass = exceptionClass;
|
|
50
|
-
this.detail = detail;
|
|
51
|
-
this.traceback = traceback;
|
|
52
|
-
this.name = exceptionClass;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
12
|
// packages/safe-bash-command-csvkit/dist/codecs/frames.js
|
|
57
13
|
init_buffer();
|
|
58
14
|
async function* decodeFrames(source, signal) {
|
|
@@ -141,12 +97,6 @@ var utf8Codec = Object.freeze({
|
|
|
141
97
|
});
|
|
142
98
|
|
|
143
99
|
export {
|
|
144
|
-
CsvkitDiagnostic,
|
|
145
|
-
CsvkitBlocked,
|
|
146
|
-
CsvkitOutputBudgetError,
|
|
147
|
-
CsvkitWorkBudgetError,
|
|
148
|
-
CsvkitCleanupError,
|
|
149
|
-
PythonException,
|
|
150
100
|
decodeFrames,
|
|
151
101
|
utf8Codec
|
|
152
102
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
CsvkitBlocked,
|
|
3
|
-
PythonException,
|
|
4
2
|
decodeFrames,
|
|
5
3
|
utf8Codec
|
|
6
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z57TV6TC.js";
|
|
5
|
+
import {
|
|
6
|
+
CsvkitBlocked,
|
|
7
|
+
PythonException
|
|
8
|
+
} from "./chunk-2LP3VMPA.js";
|
|
7
9
|
import {
|
|
8
10
|
init_buffer
|
|
9
11
|
} from "./chunk-HX3SHTCE.js";
|