@deepmetier/pdfium 0.0.0-stage → 1.5.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/package.json CHANGED
@@ -1,6 +1,79 @@
1
1
  {
2
2
  "name": "@deepmetier/pdfium",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.5.0",
4
+ "private": false,
5
+ "description": "PDFium WebAssembly for the web platform. This package provides a powerful JavaScript interface to PDFium, enabling high-quality PDF rendering and manipulation directly in web applications.",
6
+ "type": "module",
7
+ "license": "MIT",
8
+ "main": "./dist/index.cjs",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "browser": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.browser.js"
16
+ },
17
+ "import": {
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js"
20
+ },
21
+ "require": {
22
+ "types": "./dist/index.d.cts",
23
+ "default": "./dist/index.cjs"
24
+ }
25
+ },
26
+ "./pdfium.wasm": "./dist/pdfium.wasm"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/embedpdf/embed-pdf-viewer",
31
+ "directory": "packages/pdfium"
32
+ },
33
+ "homepage": "https://www.embedpdf.com/docs/pdfium/introduction",
34
+ "bugs": {
35
+ "url": "https://github.com/embedpdf/embed-pdf-viewer/issues"
36
+ },
37
+ "keywords": [
38
+ "pdf",
39
+ "pdfium",
40
+ "webassembly",
41
+ "wasm",
42
+ "render",
43
+ "viewer"
44
+ ],
45
+ "files": [
46
+ "dist",
47
+ "README.md"
48
+ ],
49
+ "author": "Bob Singor, Ji Chang",
50
+ "devDependencies": {
51
+ "@rollup/plugin-commonjs": "^25.0.8",
52
+ "@rollup/plugin-node-resolve": "^15.2.1",
53
+ "@rollup/plugin-replace": "^5.0.2",
54
+ "@rollup/plugin-typescript": "^11.1.2",
55
+ "@types/emscripten": "^1.39.13",
56
+ "cpy-cli": "^5.0.0",
57
+ "magic-string": "^0.30.17",
58
+ "rollup": "^3.28.0",
59
+ "rollup-plugin-copy": "^3.4.0",
60
+ "rollup-plugin-dts": "^6.2.1",
61
+ "typescript": "^5.0.0"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ },
66
+ "scripts": {
67
+ "build": "rollup -c",
68
+ "build:watch": "rollup -c -w",
69
+ "wasm:dev": "docker compose up --build pdfium-dev",
70
+ "wasm:build": "docker compose run --rm pdfium-build",
71
+ "clean": "rimraf dist",
72
+ "lint": "eslint src --color",
73
+ "lint:fix": "eslint src --color --fix",
74
+ "prewasm": "node ./scripts/generate-exported-functions.js && node ./scripts/generate-exported-runtime-methods.js",
75
+ "wasm": "make build && pnpm run wasm:copy",
76
+ "wasm:copy": "cpy \"./docker/dist/{pdfium.cjs,pdfium.js,pdfium.wasm,functions.ts,runtime-methods.ts}\" ./src/vendor --flat",
77
+ "build:all": "pnpm run wasm && pnpm run build"
78
+ }
6
79
  }