@bendyline/squisq-cli 2.2.0 → 2.3.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/NOTICE.md CHANGED
@@ -6,14 +6,10 @@ Third-party components remain under their respective license terms.
6
6
 
7
7
  ## Runtime dependencies
8
8
 
9
- | Package | Version | License | Repository |
10
- | ------------------------- | ------- | ---------- | --------------------------------------- |
11
- | @bendyline/squisq | 2.1.0 | MIT | https://github.com/bendyline/squisq |
12
- | @bendyline/squisq-formats | 2.1.0 | MIT | https://github.com/bendyline/squisq |
13
- | @bendyline/squisq-react | 2.1.0 | MIT | https://github.com/bendyline/squisq |
14
- | @bendyline/squisq-video | 2.0.2 | MIT | https://github.com/bendyline/squisq |
15
- | commander | 12.1.0 | MIT | https://github.com/tj/commander.js |
16
- | playwright-core | 1.58.2 | Apache-2.0 | https://github.com/microsoft/playwright |
9
+ | Package | Version | License | Repository |
10
+ | --------------- | ------- | ---------- | --------------------------------------- |
11
+ | commander | 12.1.0 | MIT | https://github.com/tj/commander.js |
12
+ | playwright-core | 1.58.2 | Apache-2.0 | https://github.com/microsoft/playwright |
17
13
 
18
14
  Copyright and complete license texts for these dependencies are included in
19
15
  their respective npm distributions and source repositories.
package/README.md CHANGED
@@ -248,7 +248,7 @@ await extractThumbnails({
248
248
  - `MemoryContentContainer` (re-export from `@bendyline/squisq/storage`)
249
249
  - `VideoQuality`, `VideoOrientation` types (re-exports from `@bendyline/squisq-video`)
250
250
 
251
- See the full [API Reference](../../docs/API.md#bendylinesquisq-cli) for all types and options.
251
+ See the full [API Reference](https://github.com/bendyline/squisq/blob/main/docs/API.md#bendylinesquisq-cli) for all types and options.
252
252
 
253
253
  ## Related Packages
254
254
 
package/dist/index.js CHANGED
@@ -296,7 +296,7 @@ var VALID_CAPTIONS = ["off", "standard", "social"];
296
296
  var VALID_FORMATS2 = ["mp4", "gif"];
297
297
  var VALID_GIF_DITHERS = ["bayer", "sierra2_4a", "none"];
298
298
  function registerVideoCommand(program2) {
299
- program2.command("video").description("Render a squisq document to MP4 video or animated GIF").argument("<input>", "Path to .md file, .zip/.dbk container, or folder").argument("[output]", "Output .mp4 or .gif path (default: <input>.<format>)").option("-o, --output <path>", "Output .mp4 or .gif path (format inferred from extension)").option("--format <format>", `Output format: ${VALID_FORMATS2.join(", ")} (default: mp4)`).option("--fps <number>", "Frames per second (default: 30 for MP4, 10 for GIF)").option(
299
+ program2.command("video").description("Render a squisq document to MP4 video or animated GIF").argument("<input>", "Path to .md/.json file, .zip/.dbk container, or folder").argument("[output]", "Output .mp4 or .gif path (default: <input>.<format>)").option("-o, --output <path>", "Output .mp4 or .gif path (format inferred from extension)").option("--format <format>", `Output format: ${VALID_FORMATS2.join(", ")} (default: mp4)`).option("--fps <number>", "Frames per second (default: 30 for MP4, 10 for GIF)").option(
300
300
  "--quality <level>",
301
301
  `MP4 encoding quality: ${VALID_QUALITIES.join(", ")} (default: normal)`
302
302
  ).option(
@@ -615,9 +615,11 @@ async function runDoctor(runtime = defaultDoctorRuntime) {
615
615
  // src/index.ts
616
616
  var require2 = createRequire(import.meta.url);
617
617
  var { version } = require2("../package.json");
618
- console.error(
619
- `\x1B[36m{[\x1B[0m \x1B[1msquiggly square\x1B[0m \x1B[2m\u2014\x1B[0m \x1B[1msquisq\x1B[0m \x1B[2m\u2014\x1B[0m \x1B[33mv${version}\x1B[0m \x1B[36m]}\x1B[0m`
620
- );
618
+ if (process.stderr.isTTY) {
619
+ console.error(
620
+ `\x1B[36m{[\x1B[0m \x1B[1msquiggly square\x1B[0m \x1B[2m\u2014\x1B[0m \x1B[1msquisq\x1B[0m \x1B[2m\u2014\x1B[0m \x1B[33mv${version}\x1B[0m \x1B[36m]}\x1B[0m`
621
+ );
622
+ }
621
623
  var program = new Command();
622
624
  program.name("squisq").description("Squisq CLI \u2014 convert and process markdown-based documents").version(version);
623
625
  registerConvertCommand(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/squisq-cli",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Squisq CLI — convert documents and render MP4 video or animated GIF",
5
5
  "license": "MIT",
6
6
  "author": "Bendyline",
@@ -24,6 +24,9 @@
24
24
  "access": "public"
25
25
  },
26
26
  "type": "module",
27
+ "engines": {
28
+ "node": ">=22.14.0"
29
+ },
27
30
  "bin": {
28
31
  "squisq": "./dist/index.js"
29
32
  },
@@ -48,16 +51,16 @@
48
51
  "NOTICE.md"
49
52
  ],
50
53
  "scripts": {
51
- "build": "tsup",
54
+ "build": "tsup && node ../../scripts/remove-empty-chunks.mjs dist",
52
55
  "typecheck": "tsc --noEmit",
53
56
  "test": "mocha",
54
57
  "test:native": "mocha --grep \"flagship pptx|native animated GIF\""
55
58
  },
56
59
  "dependencies": {
57
- "@bendyline/squisq": "2.2.0",
58
- "@bendyline/squisq-formats": "2.2.0",
59
- "@bendyline/squisq-react": "2.2.0",
60
- "@bendyline/squisq-video": "2.1.0",
60
+ "@bendyline/squisq": "2.3.0",
61
+ "@bendyline/squisq-formats": "2.3.0",
62
+ "@bendyline/squisq-react": "2.3.0",
63
+ "@bendyline/squisq-video": "2.2.0",
61
64
  "commander": "12.1.0",
62
65
  "playwright-core": "1.58.2"
63
66
  },