qr 0.4.2 → 0.5.1

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,64 +1,42 @@
1
1
  {
2
2
  "name": "qr",
3
- "version": "0.4.2",
3
+ "version": "0.5.1",
4
4
  "description": "Minimal 0-dep QR code generator & reader. Supports ascii, term, gif and svg formats",
5
5
  "files": [
6
- "esm",
7
6
  "index.js",
7
+ "index.js.map",
8
8
  "index.d.ts",
9
9
  "index.d.ts.map",
10
- "index.ts",
11
10
  "decode.js",
11
+ "decode.js.map",
12
12
  "decode.d.ts",
13
13
  "decode.d.ts.map",
14
- "decode.ts",
15
14
  "dom.js",
15
+ "dom.js.map",
16
16
  "dom.d.ts",
17
17
  "dom.d.ts.map",
18
- "dom.ts",
18
+ "src",
19
19
  "LICENSE",
20
20
  "LICENSE-MIT"
21
21
  ],
22
- "main": "index.js",
23
- "module": "index.js",
24
- "types": "index.d.ts",
25
- "sideEffects": false,
26
22
  "devDependencies": {
27
- "@paulmillr/jsbt": "0.3.3",
28
- "micro-bmark": "0.4.1",
29
- "micro-should": "0.5.2",
30
- "prettier": "3.5.3",
31
- "typescript": "5.8.3"
32
- },
33
- "author": "Paul Miller (https://paulmillr.com)",
34
- "license": "(MIT OR Apache-2.0)",
35
- "homepage": "https://github.com/paulmillr/qr",
36
- "repository": {
37
- "type": "git",
38
- "url": "git+https://github.com/paulmillr/qr.git"
23
+ "@paulmillr/jsbt": "0.4.3",
24
+ "@types/node": "24.2.1",
25
+ "prettier": "3.6.2",
26
+ "typescript": "5.9.2"
39
27
  },
40
28
  "scripts": {
41
- "build": "tsc && tsc -p tsconfig.cjs.json",
42
- "build:release": "npx jsbt esbuild test/build",
43
- "lint": "prettier --check src",
29
+ "build": "tsc",
30
+ "build:release": "npx --no @paulmillr/jsbt esbuild test/build",
31
+ "bench": "cd test/benchmark && npm ci && node index.ts",
44
32
  "format": "prettier --write src",
45
- "test": "cd test; npm ci; node index.js",
46
- "test:bun": "cd test; bun install; bun index.js",
47
- "test:deno": "cd test; npm install; deno --allow-env --allow-read index.js"
33
+ "test": "cd test; npm ci; node --experimental-strip-types --no-warnings index.ts",
34
+ "test:bun": "cd test; bun install; bun index.ts",
35
+ "test:deno": "cd test; npm install; deno --allow-env --allow-read index.ts",
36
+ "test:node20": "cd test; npx tsc; cd compiled/test; npm install; node index.js"
48
37
  },
49
- "exports": {
50
- ".": {
51
- "import": "./esm/index.js",
52
- "require": "./index.js"
53
- },
54
- "./decode.js": {
55
- "import": "./esm/decode.js",
56
- "require": "./decode.js"
57
- },
58
- "./dom.js": {
59
- "import": "./esm/dom.js",
60
- "require": "./dom.js"
61
- }
38
+ "engines": {
39
+ "node": ">= 20.19.0"
62
40
  },
63
41
  "keywords": [
64
42
  "qr",
@@ -73,5 +51,16 @@
73
51
  "camera",
74
52
  "file"
75
53
  ],
76
- "funding": "https://paulmillr.com/funding/"
54
+ "homepage": "https://github.com/paulmillr/qr",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "git+https://github.com/paulmillr/qr.git"
58
+ },
59
+ "type": "module",
60
+ "main": "index.js",
61
+ "module": "index.js",
62
+ "types": "index.d.ts",
63
+ "sideEffects": false,
64
+ "author": "Paul Miller (https://paulmillr.com)",
65
+ "license": "(MIT OR Apache-2.0)"
77
66
  }