document-cli 1.11.17 → 1.12.0
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/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as odbFormSummary, c as formatDocxExtrasLines, d as writeOutput, f as loadProvidedFonts, h as isDocumentFormat, i as formatOdbReportLines, l as readInput, m as inferFormatFromExtension, n as describeOdbReport, o as formatMetadataLines, r as formatOdbFormLines, s as presentMetadataEntries, t as describeOdbForm, u as resolveDefaultOutputPath } from "./odb-structure-
|
|
2
|
+
import { a as odbFormSummary, c as formatDocxExtrasLines, d as writeOutput, f as loadProvidedFonts, h as isDocumentFormat, i as formatOdbReportLines, l as readInput, m as inferFormatFromExtension, n as describeOdbReport, o as formatMetadataLines, r as formatOdbFormLines, s as presentMetadataEntries, t as describeOdbForm, u as resolveDefaultOutputPath } from "./odb-structure-CTdKi6lF.js";
|
|
3
3
|
import { Command, CommanderError, InvalidArgumentError } from "commander";
|
|
4
4
|
import { writeFile } from "node:fs/promises";
|
|
5
5
|
import { HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, OdbNoEmbeddedDataSourceError, OdbReportNotSpecifiedError, OdbTableNotFoundError, OdbTableNotSpecifiedError, OdbUnsupportedFormatError, OdmUnresolvedSectionError, PdfEncryptedError, PdfParseError, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, buildDocumentBytes, createLocalDocumentConverter, decodeOdbPackage, decodePackage, documentFromJson, documentPackageWithSchema, evaluateSelect, extractSourceFontsForFormat, hsqldbCellDisplayText, layoutDocumentWithSchema, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbToCsv, odbToXlsx, odmToPdf, parseSelect, readDocumentMetadata, readDocxExtras, readOdbForms, readOdbInventory, readOdbReportContent, readOdbReports, readOdbTables, readPdf, setDocumentMetadata } from "documents.js";
|
|
@@ -1046,7 +1046,7 @@ function registerSetMetadataCommand(program) {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
//#endregion
|
|
1048
1048
|
//#region package.json
|
|
1049
|
-
var version = "1.
|
|
1049
|
+
var version = "1.12.0";
|
|
1050
1050
|
//#endregion
|
|
1051
1051
|
//#region src/program.ts
|
|
1052
1052
|
function createProgram() {
|
|
@@ -1073,7 +1073,7 @@ function createProgram() {
|
|
|
1073
1073
|
//#region src/cli.ts
|
|
1074
1074
|
async function launchTui(startPath, signal) {
|
|
1075
1075
|
try {
|
|
1076
|
-
const { runTui } = await import("./tui-
|
|
1076
|
+
const { runTui } = await import("./tui-CfIgxbsu.js");
|
|
1077
1077
|
await runTui({
|
|
1078
1078
|
startPath,
|
|
1079
1079
|
signal
|
package/dist/index.cjs
CHANGED
|
@@ -8,13 +8,24 @@ let node_fs = require("node:fs");
|
|
|
8
8
|
//#region src/format.ts
|
|
9
9
|
const EXTENSION_TO_FORMAT = {
|
|
10
10
|
docx: "docx",
|
|
11
|
+
dotx: "docx",
|
|
12
|
+
docm: "docx",
|
|
11
13
|
pptx: "pptx",
|
|
14
|
+
potx: "pptx",
|
|
15
|
+
pptm: "pptx",
|
|
12
16
|
xlsx: "xlsx",
|
|
17
|
+
xltx: "xlsx",
|
|
18
|
+
xlsm: "xlsx",
|
|
13
19
|
odt: "odt",
|
|
20
|
+
ott: "odt",
|
|
14
21
|
odp: "odp",
|
|
22
|
+
otp: "odp",
|
|
15
23
|
ods: "ods",
|
|
24
|
+
ots: "ods",
|
|
16
25
|
odg: "odg",
|
|
26
|
+
otg: "odg",
|
|
17
27
|
odf: "odf",
|
|
28
|
+
otf: "odf",
|
|
18
29
|
markdown: "markdown",
|
|
19
30
|
md: "markdown",
|
|
20
31
|
pdf: "pdf"
|
|
@@ -1364,7 +1375,7 @@ function registerSetMetadataCommand(program) {
|
|
|
1364
1375
|
}
|
|
1365
1376
|
//#endregion
|
|
1366
1377
|
//#region package.json
|
|
1367
|
-
var version = "1.
|
|
1378
|
+
var version = "1.12.0";
|
|
1368
1379
|
//#endregion
|
|
1369
1380
|
//#region src/program.ts
|
|
1370
1381
|
function createProgram() {
|
package/dist/index.js
CHANGED
|
@@ -7,13 +7,24 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
7
7
|
//#region src/format.ts
|
|
8
8
|
const EXTENSION_TO_FORMAT = {
|
|
9
9
|
docx: "docx",
|
|
10
|
+
dotx: "docx",
|
|
11
|
+
docm: "docx",
|
|
10
12
|
pptx: "pptx",
|
|
13
|
+
potx: "pptx",
|
|
14
|
+
pptm: "pptx",
|
|
11
15
|
xlsx: "xlsx",
|
|
16
|
+
xltx: "xlsx",
|
|
17
|
+
xlsm: "xlsx",
|
|
12
18
|
odt: "odt",
|
|
19
|
+
ott: "odt",
|
|
13
20
|
odp: "odp",
|
|
21
|
+
otp: "odp",
|
|
14
22
|
ods: "ods",
|
|
23
|
+
ots: "ods",
|
|
15
24
|
odg: "odg",
|
|
25
|
+
otg: "odg",
|
|
16
26
|
odf: "odf",
|
|
27
|
+
otf: "odf",
|
|
17
28
|
markdown: "markdown",
|
|
18
29
|
md: "markdown",
|
|
19
30
|
pdf: "pdf"
|
|
@@ -1363,7 +1374,7 @@ function registerSetMetadataCommand(program) {
|
|
|
1363
1374
|
}
|
|
1364
1375
|
//#endregion
|
|
1365
1376
|
//#region package.json
|
|
1366
|
-
var version = "1.
|
|
1377
|
+
var version = "1.12.0";
|
|
1367
1378
|
//#endregion
|
|
1368
1379
|
//#region src/program.ts
|
|
1369
1380
|
function createProgram() {
|
|
@@ -5,13 +5,24 @@ import { basename, dirname, extname, join } from "node:path";
|
|
|
5
5
|
//#region src/format.ts
|
|
6
6
|
const EXTENSION_TO_FORMAT = {
|
|
7
7
|
docx: "docx",
|
|
8
|
+
dotx: "docx",
|
|
9
|
+
docm: "docx",
|
|
8
10
|
pptx: "pptx",
|
|
11
|
+
potx: "pptx",
|
|
12
|
+
pptm: "pptx",
|
|
9
13
|
xlsx: "xlsx",
|
|
14
|
+
xltx: "xlsx",
|
|
15
|
+
xlsm: "xlsx",
|
|
10
16
|
odt: "odt",
|
|
17
|
+
ott: "odt",
|
|
11
18
|
odp: "odp",
|
|
19
|
+
otp: "odp",
|
|
12
20
|
ods: "ods",
|
|
21
|
+
ots: "ods",
|
|
13
22
|
odg: "odg",
|
|
23
|
+
otg: "odg",
|
|
14
24
|
odf: "odf",
|
|
25
|
+
otf: "odf",
|
|
15
26
|
markdown: "markdown",
|
|
16
27
|
md: "markdown",
|
|
17
28
|
pdf: "pdf"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as formatDocxExtrasLines, f as loadProvidedFonts, i as formatOdbReportLines, l as readInput, m as inferFormatFromExtension, n as describeOdbReport, o as formatMetadataLines, p as formatToExtension, r as formatOdbFormLines, t as describeOdbForm } from "./odb-structure-
|
|
1
|
+
import { c as formatDocxExtrasLines, f as loadProvidedFonts, i as formatOdbReportLines, l as readInput, m as inferFormatFromExtension, n as describeOdbReport, o as formatMetadataLines, p as formatToExtension, r as formatOdbFormLines, t as describeOdbForm } from "./odb-structure-CTdKi6lF.js";
|
|
2
2
|
import { readFile, writeFile } from "node:fs/promises";
|
|
3
3
|
import { bytesToBase64, createDocx, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, decodeMarkdownText, decodeOdbPackage, docxToPdf, encodeMarkdownText, hsqldbCellDisplayText, markdownToPdf, odbReportToDocx, odbReportToOdt, odbReportToPdf, odgToPdf, odpToPdf, odsToPdf, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, parseXml, pptxToPdf, readDocxContent, readDocxExtras, readMarkdownContent, readOdbForms, readOdbReportContent, readOdbReports, readOdbTables, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readPdf, readPptxContent, rgbHexToColor, xlsxToPdf } from "documents.js";
|
|
4
4
|
import { basename, dirname, extname, join } from "node:path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"description": "CLI and interactive Ink TUI for documents.js: every docx/pptx/odt/odp/ods/odg/odf/pdf/odm/odb/xlsx/markdown conversion, bridge, and editor as a scriptable command or a terminal app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"packageManager": "pnpm@11.6.0",
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"commander": "^15.0.0",
|
|
75
|
-
"documents.js": "^1.
|
|
75
|
+
"documents.js": "^1.83.0",
|
|
76
76
|
"ink": "^7.1.1",
|
|
77
77
|
"ink-text-input": "^6.0.0",
|
|
78
78
|
"odf.js": "^2.3.4",
|