wasm-quickjs-dom 0.0.1 → 0.0.4

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/dist/quickjs.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wasm-quickjs-dom",
3
- "version": "0.0.1",
3
+ "version": "0.0.4",
4
4
  "description": "A small JSDOM for runtimes without Node or eval: QuickJS-ng (WebAssembly) on a linkedom DOM, for Cloudflare Workers, Vercel Edge, Deno, Bun and browsers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -41,11 +41,6 @@
41
41
  "default": "./dist/quickjs-web.js"
42
42
  }
43
43
  },
44
- "scripts": {
45
- "build": "node scripts/build-quickjs.mjs && tsc -b && node scripts/build-edge-js.mjs",
46
- "prepublishOnly": "npm run build",
47
- "test": "vitest run"
48
- },
49
44
  "exports": {
50
45
  ".": {
51
46
  "types": "./dist/index.d.ts",
@@ -71,5 +66,9 @@
71
66
  "typescript": "^7.0.2",
72
67
  "vitest": "^5.0.5",
73
68
  "web-streams-polyfill": "4.3.0"
69
+ },
70
+ "scripts": {
71
+ "build": "node scripts/build-quickjs.mjs && tsc -b && node scripts/build-edge-js.mjs",
72
+ "test": "vitest run"
74
73
  }
75
- }
74
+ }
@@ -1,3 +0,0 @@
1
- # vendor/quickjs
2
-
3
- The core of [QuickJS-ng](https://github.com/quickjs-ng/quickjs) **v0.18.0** (tag `v0.18.0`, commit `d7215b0`), unmodified: the files `scripts/build-quickjs.mjs` compiles (`quickjs.c`, `libregexp.c`, `libunicode.c`, `dtoa.c`) and the headers they include. To update it, copy the same files from a newer tag, then rebuild: the guest program's bytecode (`dist/edge-js-payload.js`) only runs on the QuickJS it was made with, and `pnpm build` makes both together.