From d5d0aaa6e4261b69f7a5048e6933dce4f1c7d1ea Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Fri, 22 Nov 2024 20:58:22 +0000 Subject: [PATCH] Add test pkg.json --- README.md | 2 +- build/package-lock.json | 2 +- build/package.json | 3 ++- package-lock.json | 4 ++-- package.json | 2 +- test/package.json | 7 +++++++ 6 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 test/package.json diff --git a/README.md b/README.md index 0cc442f..a5eba89 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Minimal browser and node.js QR Code Pattern encoder & decoder. - 🏞ī¸ Encoding (generating) supports ASCII, term, gif and svg codes - 📷 Decoding (reading) supports camera feed input, files and non-browser environments - 🔍 Extensive tests ensure correctness: 100MB+ of vectors -- đŸĒļ Just 1000 lines for encoding and 800 lines for decoding +- đŸĒļ 35KB for encoding + decoding, 18KB for encoding (1000 lines of code) Check out interactive demo [paulmillr.com/apps/qr/](https://paulmillr.com/apps/qr/) and [qrBTF.com](https://qrbtf.com/en), which uses the library to generate custom, styled codes. diff --git a/build/package-lock.json b/build/package-lock.json index d46c70a..4301fd3 100644 --- a/build/package-lock.json +++ b/build/package-lock.json @@ -14,7 +14,7 @@ }, "..": { "name": "@paulmillr/qr", - "version": "0.2.1", + "version": "0.3.0", "dev": true, "license": "(MIT OR Apache-2.0)", "devDependencies": { diff --git a/build/package.json b/build/package.json index fe9632f..b384751 100644 --- a/build/package.json +++ b/build/package.json @@ -9,6 +9,7 @@ "esbuild": "0.20.1" }, "scripts": { - "build:release": "npx esbuild --minify --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`" + "build:release": "npx esbuild --minify --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`", + "build:min": "npx esbuild --minify --bundle input.js --outfile=`npx jsbt outfile` --global-name=`npx jsbt global`" } } diff --git a/package-lock.json b/package-lock.json index 70eddd9..6d1cf51 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@paulmillr/qr", - "version": "0.2.1", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@paulmillr/qr", - "version": "0.2.1", + "version": "0.3.0", "license": "(MIT OR Apache-2.0)", "devDependencies": { "@paulmillr/jsbt": "0.2.1", diff --git a/package.json b/package.json index 07a0f2e..a4bbbae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paulmillr/qr", - "version": "0.2.1", + "version": "0.3.0", "description": "Minimal browser & node.js QR Code Pattern reader and generator. Supports ascii, term, gif and svg formats", "files": [ "esm", diff --git a/test/package.json b/test/package.json new file mode 100644 index 0000000..1517420 --- /dev/null +++ b/test/package.json @@ -0,0 +1,7 @@ +{ + "type": "module", + "browser": { + "crypto": false, + "./crypto": "./esm/cryptoBrowser.js" + } +}