gutterpress 0.11.20 → 0.11.21
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 +1 -1
- package/dist/api/index.js +2 -2
- package/dist/{build-t49xka15.js → build-0neyk5h6.js} +4 -4
- package/dist/checks/asset/extensions.d.ts +9 -5
- package/dist/checks/asset/index.d.ts +0 -3
- package/dist/checks/pdf/index.d.ts +0 -1
- package/dist/checks/types.d.ts +8 -1
- package/dist/{cli-cyej3p9v.js → cli-b57adna7.js} +5 -2
- package/dist/{cli-stt6691c.js → cli-j0drzb6f.js} +268 -429
- package/dist/{cli-8gm4p42f.js → cli-j79451n6.js} +2 -2
- package/dist/{cli-nh16svye.js → cli-sqkccnm7.js} +1 -1
- package/dist/cli.js +12 -12
- package/dist/{doctor-53hq2v2n.js → doctor-fptq8tvn.js} +2 -2
- package/dist/{engine-5fw55dfb.js → engine-0b8bt05n.js} +2 -2
- package/dist/{engine-4rkhv5ga.js → engine-x07q927h.js} +1 -1
- package/dist/{ext-bvgfwtk7.js → ext-gp624t5c.js} +4 -4
- package/dist/{gutterpress-agent-yvd8w8my.js → gutterpress-agent-d29ry3ak.js} +5 -1
- package/dist/{index-crys9951.js → index-mr72vt8n.js} +2 -2
- package/dist/{index-379qafjq.js → index-mr7zs8mv.js} +442 -605
- package/dist/{index-yw16cfm8.js → index-t7r8g75c.js} +4 -1
- package/dist/index.js +3 -3
- package/dist/lib/asset-inline.d.ts +2 -0
- package/dist/lib/image-inspect.d.ts +0 -1
- package/dist/lib/presets.d.ts +0 -3
- package/dist/lib/validation-exec.d.ts +1 -1
- package/dist/{manifest.schema-c4wfpg6g.json → manifest.schema-n292sb77.json} +7 -10
- package/dist/{new-jzpneexb.js → new-dre6aw05.js} +4 -4
- package/dist/{preflight-c0f0s3y1.js → preflight-1k1zkg1p.js} +4 -4
- package/dist/{preview-x6wn3vdh.js → preview-dtrksvxf.js} +4 -4
- package/dist/{publish-rskr6x6b.js → publish-g1ytnrmr.js} +4 -4
- package/dist/schema/manifest.types.d.ts +10 -2
- package/dist/{validate-88w89ye7.js → validate-yrrq8639.js} +4 -4
- package/package.json +1 -1
- package/dist/checks/asset/image-color-space.d.ts +0 -3
- package/dist/checks/asset/image-resolution.d.ts +0 -3
- package/dist/checks/asset/image-tac.d.ts +0 -3
- package/dist/checks/pdf/rasterized-pages.d.ts +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
package_default
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-sqkccnm7.js";
|
|
4
4
|
import {
|
|
5
5
|
enhancedPath,
|
|
6
6
|
execCapture,
|
|
@@ -600,7 +600,7 @@ var TOOLS_TO_PROBE = [
|
|
|
600
600
|
hintKey: "gs",
|
|
601
601
|
usedBy: [
|
|
602
602
|
{ feature: "PDF/X CMYK conversion (build --format pdfx)", severity: "required" },
|
|
603
|
-
{ feature: "validate: pdf.print.ink-coverage
|
|
603
|
+
{ feature: "validate: pdf.print.ink-coverage", severity: "optional" }
|
|
604
604
|
]
|
|
605
605
|
},
|
|
606
606
|
{
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "gutterpress",
|
|
7
|
-
version: "0.11.
|
|
7
|
+
version: "0.11.21",
|
|
8
8
|
description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
9
9
|
author: "itlackey",
|
|
10
10
|
license: "MPL-2.0",
|
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
UsageError,
|
|
7
7
|
package_default,
|
|
8
8
|
rejectUnknownFlags
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-sqkccnm7.js";
|
|
10
10
|
import {
|
|
11
11
|
EXIT_CODES
|
|
12
12
|
} from "./cli-46ycxe6r.js";
|
|
@@ -18,14 +18,14 @@ import {
|
|
|
18
18
|
import { defineCommand, parseArgs, runMain } from "citty";
|
|
19
19
|
import { statSync } from "node:fs";
|
|
20
20
|
var SUBCOMMANDS = {
|
|
21
|
-
new: () => import("./new-
|
|
22
|
-
preview: () => import("./preview-
|
|
23
|
-
build: () => import("./build-
|
|
24
|
-
publish: () => import("./publish-
|
|
25
|
-
validate: () => import("./validate-
|
|
26
|
-
preflight: () => import("./preflight-
|
|
27
|
-
doctor: () => import("./doctor-
|
|
28
|
-
ext: () => import("./ext-
|
|
21
|
+
new: () => import("./new-dre6aw05.js").then((m) => m.default),
|
|
22
|
+
preview: () => import("./preview-dtrksvxf.js").then((m) => m.default),
|
|
23
|
+
build: () => import("./build-0neyk5h6.js").then((m) => m.default),
|
|
24
|
+
publish: () => import("./publish-g1ytnrmr.js").then((m) => m.default),
|
|
25
|
+
validate: () => import("./validate-yrrq8639.js").then((m) => m.default),
|
|
26
|
+
preflight: () => import("./preflight-1k1zkg1p.js").then((m) => m.default),
|
|
27
|
+
doctor: () => import("./doctor-fptq8tvn.js").then((m) => m.default),
|
|
28
|
+
ext: () => import("./ext-gp624t5c.js").then((m) => m.default)
|
|
29
29
|
};
|
|
30
30
|
var VERSION = package_default.version;
|
|
31
31
|
var main = defineCommand({
|
|
@@ -50,7 +50,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
50
50
|
const [command, ...commandArgs] = rawArgs;
|
|
51
51
|
try {
|
|
52
52
|
if (command === "new") {
|
|
53
|
-
const { newArgs } = await import("./new-
|
|
53
|
+
const { newArgs } = await import("./new-dre6aw05.js");
|
|
54
54
|
rejectUnknownFlags(commandArgs, newArgs, "new");
|
|
55
55
|
const parsed = parseArgs(commandArgs, {
|
|
56
56
|
...newArgs,
|
|
@@ -62,7 +62,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
if (command === "preflight") {
|
|
65
|
-
const { preflightArgs } = await import("./preflight-
|
|
65
|
+
const { preflightArgs } = await import("./preflight-1k1zkg1p.js");
|
|
66
66
|
rejectUnknownFlags(commandArgs, preflightArgs, "preflight");
|
|
67
67
|
const parsed = parseArgs(commandArgs, {
|
|
68
68
|
...preflightArgs,
|
|
@@ -82,7 +82,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
82
82
|
}
|
|
83
83
|
if (subcommand.startsWith("-"))
|
|
84
84
|
return;
|
|
85
|
-
const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-
|
|
85
|
+
const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-gp624t5c.js");
|
|
86
86
|
if (!EXT_SUBCOMMANDS.includes(subcommand)) {
|
|
87
87
|
throw new UsageError(`gutterpress ext: unknown command "${subcommand}"`);
|
|
88
88
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSystemDiagnostics,
|
|
3
3
|
log
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-j79451n6.js";
|
|
5
5
|
import {
|
|
6
6
|
UsageError,
|
|
7
7
|
rejectExtraPositionals,
|
|
8
8
|
rejectUnknownFlags
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-sqkccnm7.js";
|
|
10
10
|
import"./cli-46ycxe6r.js";
|
|
11
11
|
import"./cli-asap4t1z.js";
|
|
12
12
|
import"./cli-37x76zdn.js";
|
|
@@ -12,17 +12,17 @@ import {
|
|
|
12
12
|
searchNpmExtensions,
|
|
13
13
|
setExtensionEnabled,
|
|
14
14
|
updateExtensions
|
|
15
|
-
} from "./cli-
|
|
16
|
-
import"./cli-
|
|
15
|
+
} from "./cli-j0drzb6f.js";
|
|
16
|
+
import"./cli-j79451n6.js";
|
|
17
17
|
import {
|
|
18
18
|
UsageError,
|
|
19
19
|
exitForUsage,
|
|
20
20
|
rejectExtraPositionals,
|
|
21
21
|
rejectUnknownFlags,
|
|
22
22
|
resolveProjectDir
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-sqkccnm7.js";
|
|
24
24
|
import"./cli-ht1bcqdd.js";
|
|
25
|
-
import"./cli-
|
|
25
|
+
import"./cli-b57adna7.js";
|
|
26
26
|
import {
|
|
27
27
|
EXIT_CODES
|
|
28
28
|
} from "./cli-46ycxe6r.js";
|
|
@@ -496,11 +496,15 @@
|
|
|
496
496
|
const rect = img.getBoundingClientRect();
|
|
497
497
|
if (!rect.width || !img.naturalWidth)
|
|
498
498
|
continue;
|
|
499
|
+
const src = img.currentSrc || img.src;
|
|
500
|
+
if (/^data:image\/svg|\.svg(?:[?#]|$)/i.test(src))
|
|
501
|
+
continue;
|
|
499
502
|
const dpi = img.naturalWidth / (rect.width / 96);
|
|
500
503
|
if (dpi < dpiFloor) {
|
|
504
|
+
const file = src.startsWith("data:") ? "" : decodeURIComponent(src.split(/[?#]/)[0].split("/").pop());
|
|
501
505
|
out.push({
|
|
502
506
|
kind: "low-dpi",
|
|
503
|
-
what: name(img),
|
|
507
|
+
what: file ? `${name(img)} (${file})` : name(img),
|
|
504
508
|
detail: `${img.naturalWidth}px wide printed at ${(rect.width / 96).toFixed(2)}in = ${Math.round(dpi)} DPI`
|
|
505
509
|
});
|
|
506
510
|
}
|
|
@@ -148,7 +148,7 @@ import { fileURLToPath } from "node:url";
|
|
|
148
148
|
var favicon_default = "./favicon-272ga6y0.ico";
|
|
149
149
|
|
|
150
150
|
// src/assets/manifest.schema.json
|
|
151
|
-
var manifest_schema_default = "./manifest.schema-
|
|
151
|
+
var manifest_schema_default = "./manifest.schema-n292sb77.json";
|
|
152
152
|
|
|
153
153
|
// src/assets/preview/scripts/preview-interface.js
|
|
154
154
|
var preview_interface_default = "./preview-interface-nnmrxyqm.js";
|
|
@@ -166,7 +166,7 @@ var CGATS21_CRPC1_default = "./CGATS21_CRPC1-g0e3k7kr.icc";
|
|
|
166
166
|
var gutterpress_viewer_default = "./gutterpress-viewer-w7njnkj7.js";
|
|
167
167
|
|
|
168
168
|
// src/assets/engine/gutterpress-agent.js
|
|
169
|
-
var gutterpress_agent_default = "./gutterpress-agent-
|
|
169
|
+
var gutterpress_agent_default = "./gutterpress-agent-d29ry3ak.js";
|
|
170
170
|
|
|
171
171
|
// src/assets/templates/book/manifest.yaml
|
|
172
172
|
var manifest_default = "./manifest-n1gh3qw5.yaml";
|