qr-secure-send 1.3.0 → 1.3.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.
Files changed (2) hide show
  1. package/index.html +11 -11
  2. package/package.json +1 -1
package/index.html CHANGED
@@ -73,7 +73,7 @@
73
73
  button.secondary:hover { background: #30363d; }
74
74
 
75
75
  #qr-output { text-align: center; margin-top: 1rem; }
76
- #qr-output canvas { border-radius: 8px; max-width: 100%; }
76
+ #qr-output canvas { border-radius: 8px; max-width: 100%; image-rendering: pixelated; }
77
77
 
78
78
  #scanner-region { width: 100%; border-radius: 8px; overflow: hidden; position: relative; }
79
79
  #scanner-region video { width: 100%; border-radius: 8px; display: block; }
@@ -244,15 +244,15 @@
244
244
  const VERSION_TABLE = [
245
245
  null, // index 0 unused
246
246
  [16,10,1,16,0,0],[28,16,1,28,0,0],[44,26,1,44,0,0],[64,18,2,32,0,0],
247
- [86,24,2,43,0,0],[108,16,2,27,2,28],[124,18,2,31,2,32],[154,22,2,38,2,39],
248
- [182,22,2,36,2,37],[216,26,2,43,2,44],[254,30,2,50,2,51],[290,22,2,36,4,37],
249
- [334,22,2,37,4,38],[365,24,4,40,2,41],[415,24,2,41,4,42],[453,28,4,45,2,46],
250
- [507,28,2,42,4,43],[563,26,4,46,2,47],[627,26,2,44,4,45],[669,26,4,47,2,48],
251
- [714,22,2,45,6,46],[782,24,6,43,2,44],[860,28,6,45,2,46],[914,28,8,47,0,0],
252
- [1000,22,4,46,4,47],[1062,24,4,43,6,44],[1128,22,2,45,8,46],[1193,24,4,45,6,46],
253
- [1267,24,6,45,4,46],[1373,28,6,47,4,48],[1455,28,6,47,4,48],[1541,28,8,47,2,48],
254
- [1631,28,8,47,4,48],[1725,28,6,47,8,48],[1812,28,8,47,4,48],[1914,28,8,47,8,48],
255
- [1992,28,10,47,4,48],[2102,28,8,47,8,48],[2216,28,12,47,4,48],[2334,28,14,47,4,48]
247
+ [86,24,2,43,0,0],[108,16,4,27,0,0],[124,18,4,31,0,0],[154,22,2,38,2,39],
248
+ [182,22,3,36,2,37],[216,26,4,43,1,44],[254,30,1,50,4,51],[290,22,6,36,2,37],
249
+ [334,22,8,37,1,38],[365,24,4,40,5,41],[415,24,5,41,5,42],[453,28,7,45,3,46],
250
+ [507,28,10,46,1,47],[563,26,9,43,4,44],[627,26,3,44,11,45],[669,26,3,41,13,42],
251
+ [714,26,17,42,0,0],[782,28,17,46,0,0],[860,28,4,47,14,48],[914,28,6,45,14,46],
252
+ [1000,28,8,47,13,48],[1062,28,19,46,4,47],[1128,28,22,45,3,46],[1193,28,3,45,23,46],
253
+ [1267,28,21,45,7,46],[1373,28,19,47,10,48],[1455,28,2,46,29,47],[1541,28,10,46,23,47],
254
+ [1631,28,14,46,21,47],[1725,28,14,46,23,47],[1812,28,12,47,26,48],[1914,28,6,47,34,48],
255
+ [1992,28,29,46,14,47],[2102,28,13,46,32,47],[2216,28,40,47,7,48],[2334,28,18,47,31,48]
256
256
  ];
257
257
 
258
258
  // Byte-mode capacity per version at EC level M
@@ -715,7 +715,7 @@
715
715
 
716
716
  function toCanvas(container, text, options = {}) {
717
717
  const { matrix, size } = encode(text);
718
- const scale = Math.max(1, Math.floor((options.width || 320) / size));
718
+ const scale = Math.max(2, Math.floor((options.width || 320) / size));
719
719
  const margin = (options.margin !== undefined ? options.margin : 2) * scale;
720
720
 
721
721
  const canvas = document.createElement("canvas");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qr-secure-send",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Encrypt and transfer secrets via QR code",
5
5
  "keywords": ["qr", "qrcode", "encryption", "password", "secure", "transfer"],
6
6
  "author": "",