gutterpress 0.11.20 → 0.11.21-alpha.1

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 (37) hide show
  1. package/README.md +1 -1
  2. package/dist/api/index.js +2 -2
  3. package/dist/{build-t49xka15.js → build-jd5ky1xh.js} +4 -4
  4. package/dist/checks/asset/extensions.d.ts +9 -5
  5. package/dist/checks/asset/index.d.ts +0 -3
  6. package/dist/checks/pdf/index.d.ts +0 -1
  7. package/dist/checks/types.d.ts +8 -1
  8. package/dist/{cli-8gm4p42f.js → cli-3zab895b.js} +2 -2
  9. package/dist/{cli-nh16svye.js → cli-a8azwpgj.js} +1 -1
  10. package/dist/{cli-cyej3p9v.js → cli-b57adna7.js} +5 -2
  11. package/dist/{cli-stt6691c.js → cli-xvtqsqy3.js} +268 -429
  12. package/dist/cli.js +12 -12
  13. package/dist/{doctor-53hq2v2n.js → doctor-0kgq1ns6.js} +2 -2
  14. package/dist/{engine-5fw55dfb.js → engine-0b8bt05n.js} +2 -2
  15. package/dist/{engine-4rkhv5ga.js → engine-x07q927h.js} +1 -1
  16. package/dist/{ext-bvgfwtk7.js → ext-f90yv3dv.js} +4 -4
  17. package/dist/{gutterpress-agent-yvd8w8my.js → gutterpress-agent-d29ry3ak.js} +5 -1
  18. package/dist/{index-379qafjq.js → index-5qam734s.js} +442 -605
  19. package/dist/{index-crys9951.js → index-mr72vt8n.js} +2 -2
  20. package/dist/{index-yw16cfm8.js → index-t7r8g75c.js} +4 -1
  21. package/dist/index.js +3 -3
  22. package/dist/lib/asset-inline.d.ts +2 -0
  23. package/dist/lib/image-inspect.d.ts +0 -1
  24. package/dist/lib/presets.d.ts +0 -3
  25. package/dist/lib/validation-exec.d.ts +1 -1
  26. package/dist/{manifest.schema-c4wfpg6g.json → manifest.schema-n292sb77.json} +7 -10
  27. package/dist/{new-jzpneexb.js → new-fc7nwxea.js} +4 -4
  28. package/dist/{preflight-c0f0s3y1.js → preflight-hwvj3k3d.js} +4 -4
  29. package/dist/{preview-x6wn3vdh.js → preview-ktqjnf3d.js} +4 -4
  30. package/dist/{publish-rskr6x6b.js → publish-nf3d5cbv.js} +4 -4
  31. package/dist/schema/manifest.types.d.ts +10 -2
  32. package/dist/{validate-88w89ye7.js → validate-7aywy6m4.js} +4 -4
  33. package/package.json +1 -1
  34. package/dist/checks/asset/image-color-space.d.ts +0 -3
  35. package/dist/checks/asset/image-resolution.d.ts +0 -3
  36. package/dist/checks/asset/image-tac.d.ts +0 -3
  37. package/dist/checks/pdf/rasterized-pages.d.ts +0 -3
package/dist/cli.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  UsageError,
7
7
  package_default,
8
8
  rejectUnknownFlags
9
- } from "./cli-nh16svye.js";
9
+ } from "./cli-a8azwpgj.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-jzpneexb.js").then((m) => m.default),
22
- preview: () => import("./preview-x6wn3vdh.js").then((m) => m.default),
23
- build: () => import("./build-t49xka15.js").then((m) => m.default),
24
- publish: () => import("./publish-rskr6x6b.js").then((m) => m.default),
25
- validate: () => import("./validate-88w89ye7.js").then((m) => m.default),
26
- preflight: () => import("./preflight-c0f0s3y1.js").then((m) => m.default),
27
- doctor: () => import("./doctor-53hq2v2n.js").then((m) => m.default),
28
- ext: () => import("./ext-bvgfwtk7.js").then((m) => m.default)
21
+ new: () => import("./new-fc7nwxea.js").then((m) => m.default),
22
+ preview: () => import("./preview-ktqjnf3d.js").then((m) => m.default),
23
+ build: () => import("./build-jd5ky1xh.js").then((m) => m.default),
24
+ publish: () => import("./publish-nf3d5cbv.js").then((m) => m.default),
25
+ validate: () => import("./validate-7aywy6m4.js").then((m) => m.default),
26
+ preflight: () => import("./preflight-hwvj3k3d.js").then((m) => m.default),
27
+ doctor: () => import("./doctor-0kgq1ns6.js").then((m) => m.default),
28
+ ext: () => import("./ext-f90yv3dv.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-jzpneexb.js");
53
+ const { newArgs } = await import("./new-fc7nwxea.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-c0f0s3y1.js");
65
+ const { preflightArgs } = await import("./preflight-hwvj3k3d.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-bvgfwtk7.js");
85
+ const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-f90yv3dv.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-8gm4p42f.js";
4
+ } from "./cli-3zab895b.js";
5
5
  import {
6
6
  UsageError,
7
7
  rejectExtraPositionals,
8
8
  rejectUnknownFlags
9
- } from "./cli-nh16svye.js";
9
+ } from "./cli-a8azwpgj.js";
10
10
  import"./cli-46ycxe6r.js";
11
11
  import"./cli-asap4t1z.js";
12
12
  import"./cli-37x76zdn.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  build
3
- } from "./index-yw16cfm8.js";
3
+ } from "./index-t7r8g75c.js";
4
4
  import {
5
5
  BuildError
6
- } from "./index-crys9951.js";
6
+ } from "./index-mr72vt8n.js";
7
7
  import"./index-bt0qws5c.js";
8
8
  import"./index-37x76zdn.js";
9
9
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  build
3
- } from "./cli-cyej3p9v.js";
3
+ } from "./cli-b57adna7.js";
4
4
  import {
5
5
  BuildError
6
6
  } from "./cli-46ycxe6r.js";
@@ -12,17 +12,17 @@ import {
12
12
  searchNpmExtensions,
13
13
  setExtensionEnabled,
14
14
  updateExtensions
15
- } from "./cli-stt6691c.js";
16
- import"./cli-8gm4p42f.js";
15
+ } from "./cli-xvtqsqy3.js";
16
+ import"./cli-3zab895b.js";
17
17
  import {
18
18
  UsageError,
19
19
  exitForUsage,
20
20
  rejectExtraPositionals,
21
21
  rejectUnknownFlags,
22
22
  resolveProjectDir
23
- } from "./cli-nh16svye.js";
23
+ } from "./cli-a8azwpgj.js";
24
24
  import"./cli-ht1bcqdd.js";
25
- import"./cli-cyej3p9v.js";
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
  }