pptx-glimpse 0.1.1 → 0.1.3

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pptx-glimpse",
3
- "version": "0.1.1",
4
- "description": "Convert PPTX slides to SVG and PNG",
3
+ "version": "0.1.3",
4
+ "description": "A Node.js library to render PPTX as SVG / PNG.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -15,21 +15,28 @@
15
15
  },
16
16
  "scripts": {
17
17
  "build": "tsup src/index.ts --format cjs,esm --dts",
18
- "lint": "eslint src/ vrt/ scripts/",
19
- "lint:fix": "eslint src/ vrt/ scripts/ --fix",
20
- "format": "prettier --write 'src/**/*.ts' 'vrt/**/*.ts' 'scripts/**/*.ts'",
21
- "format:check": "prettier --check 'src/**/*.ts' 'vrt/**/*.ts' 'scripts/**/*.ts'",
18
+ "bench": "vitest bench",
19
+ "lint": "eslint src/ vrt/ scripts/ bench/",
20
+ "lint:fix": "eslint src/ vrt/ scripts/ bench/ --fix",
21
+ "format": "prettier --write 'src/**/*.ts' 'vrt/**/*.ts' 'scripts/**/*.ts' 'bench/**/*.ts'",
22
+ "format:check": "prettier --check 'src/**/*.ts' 'vrt/**/*.ts' 'scripts/**/*.ts' 'bench/**/*.ts'",
22
23
  "test": "vitest run",
24
+ "test:coverage": "vitest run --coverage",
23
25
  "test:watch": "vitest",
24
26
  "typecheck": "tsc --noEmit",
27
+ "dev": "tsx scripts/dev-server.ts",
25
28
  "render": "tsx scripts/test-render.ts",
26
- "test:vrt:fixtures": "tsx vrt/internal/create-fixtures.ts",
27
- "test:vrt:update": "tsx vrt/internal/update-snapshots.ts",
29
+ "inspect": "tsx scripts/inspect-pptx.ts",
30
+ "vrt:snapshot:docker-build": "docker build -t pptx-glimpse-snapshot-vrt docker/snapshot-vrt",
31
+ "vrt:snapshot:fixtures": "tsx vrt/snapshot/create-fixtures.ts",
32
+ "vrt:snapshot:update": "docker run --rm -v \"$(pwd)\":/workspace -v pptx-glimpse-snapshot-vrt-nm:/workspace/node_modules pptx-glimpse-snapshot-vrt bash /workspace/vrt/snapshot/docker-run.sh npx tsx vrt/snapshot/create-fixtures.ts && docker run --rm -v \"$(pwd)\":/workspace -v pptx-glimpse-snapshot-vrt-nm:/workspace/node_modules pptx-glimpse-snapshot-vrt bash /workspace/vrt/snapshot/docker-run.sh npx tsx vrt/snapshot/update-snapshots.ts",
28
33
  "vrt:lo:docker-build": "docker build -t pptx-glimpse-vrt docker/libreoffice-vrt",
29
- "vrt:lo:fixtures": "docker run --rm -v \"$(pwd)\":/workspace pptx-glimpse-vrt python3 /workspace/vrt/libreoffice/generate_fixtures.py",
30
- "vrt:lo:reference": "docker run --rm -v \"$(pwd)\":/workspace pptx-glimpse-vrt bash /workspace/vrt/libreoffice/render_references.sh",
31
- "vrt:lo:update": "npm run vrt:lo:docker-build && npm run vrt:lo:fixtures && npm run vrt:lo:reference",
32
- "test:package": "npm run build && bash scripts/test-package.sh"
34
+ "vrt:lo:fixtures": "docker run --rm -v \"$(pwd)\":/workspace pptx-glimpse-vrt python3 /workspace/vrt/libreoffice/create_fixtures.py",
35
+ "vrt:lo:update": "npm run vrt:lo:docker-build && npm run vrt:lo:fixtures && docker run --rm -v \"$(pwd)\":/workspace pptx-glimpse-vrt bash /workspace/vrt/libreoffice/update_snapshots.sh",
36
+ "test:package": "npm run build && bash scripts/test-package.sh",
37
+ "changeset": "changeset",
38
+ "demo:dev": "cd demo && npm run dev",
39
+ "demo:build": "npm run build && cd demo && npm install && npm run build"
33
40
  },
34
41
  "files": [
35
42
  "dist"
@@ -56,20 +63,25 @@
56
63
  "license": "MIT",
57
64
  "dependencies": {
58
65
  "fast-xml-parser": "^4.5.0",
59
- "jszip": "^3.10.0",
60
- "sharp": "^0.33.0"
66
+ "fflate": "^0.8.2",
67
+ "opentype.js": "^1.3.4",
68
+ "sharp": "^0.34.5"
61
69
  },
62
70
  "devDependencies": {
71
+ "@changesets/cli": "^2.29.8",
63
72
  "@types/node": "^25.2.2",
73
+ "@types/ws": "^8.18.1",
74
+ "@vitest/coverage-v8": "^3.2.4",
64
75
  "eslint": "^9.0.0",
65
76
  "eslint-config-prettier": "^10.0.0",
66
- "opentype.js": "^1.3.4",
77
+ "jszip": "^3.10.1",
67
78
  "pixelmatch": "^7.1.0",
68
79
  "prettier": "^3.0.0",
69
80
  "tsup": "^8.0.0",
70
81
  "tsx": "^4.21.0",
71
82
  "typescript": "^5.5.0",
72
83
  "typescript-eslint": "^8.55.0",
73
- "vitest": "^3.0.0"
84
+ "vitest": "^3.0.0",
85
+ "ws": "^8.19.0"
74
86
  }
75
87
  }