1 | {
|
2 | "name": "@worker-tools/parsed-html-rewriter",
|
3 | "version": "0.1.11",
|
4 | "description": "A DOM-based implementation of Cloudflare Worker's HTMLRewriter.",
|
5 | "type": "module",
|
6 | "main": "cjs/index.cjs",
|
7 | "module": "index.js",
|
8 | "types": "index.d.ts",
|
9 | "exports": {
|
10 | ".": {
|
11 | "import": "./index.js",
|
12 | "require": "./cjs/index.cjs"
|
13 | },
|
14 | "./polyfill": {
|
15 | "import": "./polyfill.js",
|
16 | "require": "./cjs/polyfill.cjs"
|
17 | }
|
18 | },
|
19 | "files": [
|
20 | "src",
|
21 | "cjs",
|
22 | "dist",
|
23 | "*.js*",
|
24 | "*.d.ts*"
|
25 | ],
|
26 | "publishConfig": {
|
27 | "access": "public"
|
28 | },
|
29 | "scripts": {
|
30 | "clean": "shx rm -rf cjs dist *.d.ts *.js *.js.map *.d.ts.map *.tgz",
|
31 | "test": "npm run build:mjs && node test/test.js",
|
32 | "build": "npm run build:mjs & npm run build:cjs & npm run build:dist & wait",
|
33 | "build:mjs": "tsc -p tsconfig.json",
|
34 | "build:cjs": "tsc -p tsconfig.cjs.json && npm run sed && npm run mv",
|
35 | "build:dist": "esbuild src/index.ts --bundle --format=esm --target=es2020 --outfile=dist/index.js --tsconfig=tsconfig.json",
|
36 | "sed": "shx sed -i 's/\\.(.*)\\.js/\\.$1\\.cjs/g' cjs/*.js > /dev/null ",
|
37 | "mv": "for f in cjs/*.js; do shx mv \"$f\" \"${f%.js}.cjs\"; done",
|
38 | "prepack": "npm run clean && npm run build"
|
39 | },
|
40 | "author": "Florian Klampfer <mail@qwtel.com> (https://qwtel.com/)",
|
41 | "license": "MIT",
|
42 | "dependencies": {
|
43 | "@cloudflare/workers-types": "^2.2.2",
|
44 | "linkedom": "^0.13.2",
|
45 | "tslib": "^2.3.1",
|
46 | "whatwg-stream-to-async-iter": "^0.4.1"
|
47 | },
|
48 | "devDependencies": {
|
49 | "esbuild": "^0.14.20",
|
50 | "node-fetch-polyfill": "^2.0.6",
|
51 | "node-web-streams": "^0.2.2",
|
52 | "shx": "^0.3.4",
|
53 | "typed-array-utils": "^0.2.2",
|
54 | "typescript": "^4.5.5",
|
55 | "web-streams-polyfill": "^3.2.0"
|
56 | },
|
57 | "repository": {
|
58 | "type": "git",
|
59 | "url": "git+https://github.com/worker-tools/parsed-html-rewriter.git"
|
60 | },
|
61 | "bugs": {
|
62 | "url": "https://github.com/worker-tools/parsed-html-rewriter/issues"
|
63 | },
|
64 | "homepage": "https://github.com/worker-tools/parsed-html-rewriter#readme",
|
65 | "keywords": [
|
66 | "polyfill",
|
67 | "html",
|
68 | "dom",
|
69 | "cloudflare-workers",
|
70 | "html-rewriter"
|
71 | ]
|
72 | }
|