Skip to content

Commit bd87615

Browse files
authored
Merge pull request #65 from Keillion/master
7.4.0.1
2 parents 8c335f1 + 9f8bb3a commit bd87615

File tree

89 files changed

+356
-276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+356
-276
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ $ npm install dynamsoft-javascript-barcode --save
2525

2626
cdn
2727
```html
28-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
28+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
2929
<!-- or -->
30-
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
30+
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
3131
```
3232

3333
[Download zip](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx?edition=js)
@@ -38,7 +38,7 @@ cdn
3838
<!DOCTYPE html>
3939
<html>
4040
<body>
41-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
41+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
4242
<script>
4343
let scanner = null;
4444
(async()=>{
@@ -208,7 +208,7 @@ Create an HTML file with the following content. Deploy this to your web server a
208208
<html>
209209
<body>
210210
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
211-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
211+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
212212
<script>
213213
let scanner = null;
214214
(async()=>{
@@ -267,13 +267,13 @@ Now, take a look at the sample code. You can find that there is nothing but two
267267
* The following script includes the core library in the application via a [jsDelivr](https://www.jsdelivr.com/) CDN
268268

269269
```javascript
270-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
270+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
271271
```
272272

273273
The same can be done with other CDNs like `unpkg`
274274

275275
```javascript
276-
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
276+
<script src="https://unpkg.com/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
277277
```
278278

279279
> **NOTE**: : Since we do change the library a bit in each release, to make sure your application doesn't get interrupted by automatic updates, use a specific version in your production environment, as shown above. Using a general major version like `@7` is not recommended.
@@ -420,7 +420,7 @@ The following introduces the 3rd way. Check out the following code on how it's d
420420
<video class="dbrScanner-video" playsinline="true"></video>
421421
</div>
422422
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
423-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
423+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
424424
<script>
425425
let scanner = null;
426426
(async()=>{
@@ -659,7 +659,7 @@ https://www.dynamsoft.com/Products/Dynamic-Barcode-Reader-News.aspx#javascript
659659
* If you are using a CDN, be sure to change the version number in the URL like this
660660

661661
```javascript
662-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
662+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
663663
```
664664

665665
* If you have deployed the library files on your own server, you'll need to replace the old files with the new version. Download the latest version [here](https://www.dynamsoft.com/Downloads/Dynamic-Barcode-Reader-Download.aspx).
@@ -712,7 +712,7 @@ It takes several steps to activate a purchased license, the following steps assu
712712

713713
```html
714714
<!-- Please visit https://www.dynamsoft.com/CustomerPortal/Portal/TrialLicense.aspx to get a trial license. -->
715-
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v0/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
715+
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@7.4.0-v1/dist/dbr.js" data-productKeys="PRODUCT-KEYS"></script>
716716
```
717717

718718
To use your activated key, you simply need to replace `PRODUCT-KEYS` with it.

dist/dbr-7.4.0.1.full.wasm

4.2 MB
Binary file not shown.
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ function La() {
256256
e.HEAPF32 = Ja = new Float32Array(buffer);
257257
e.HEAPF64 = Ka = new Float64Array(buffer);
258258
}
259-
var qa = 1848448;
259+
var qa = 1745136;
260260
assert(!0, "stack must start aligned");
261261
assert(!0, "heap must start aligned");
262262
e.TOTAL_STACK && assert(5242880 === e.TOTAL_STACK, "the stack size can no longer be determined at runtime");
@@ -271,9 +271,9 @@ wa && (buffer = wa.buffer);
271271
Ma = buffer.byteLength;
272272
assert(0 === Ma % 65536);
273273
La();
274-
p[qa >> 2] = 7091344;
274+
p[qa >> 2] = 6988032;
275275
function Na() {
276-
var a = y[462117], b = y[462118];
276+
var a = y[436289], b = y[436290];
277277
34821223 == a && 2310721022 == b || m("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x" + b.toString(16) + " " + a.toString(16));
278278
1668509029 !== p[0] && m("Runtime error: The application has corrupted its heap memory area (address zero)!");
279279
}
@@ -415,7 +415,7 @@ function lb(a) {
415415
}
416416
e.asm = function(a, b) {
417417
b.memory = wa;
418-
b.table = new WebAssembly.Table({initial:8380, maximum:8380, element:"anyfunc"});
418+
b.table = new WebAssembly.Table({initial:8339, maximum:8339, element:"anyfunc"});
419419
a = lb(b);
420420
assert(a, "binaryen setup failed (no wasm support?)");
421421
return a;
@@ -2434,7 +2434,7 @@ function ae(a) {
24342434
ae.ja = c;
24352435
return ae.ja;
24362436
}
2437-
Da("GMT", 1848352, 4);
2437+
Da("GMT", 1745040, 4);
24382438
function be() {
24392439
function a(a) {
24402440
return (a = a.toTimeString().match(/\(([A-Za-z ]+)\)$/)) ? a[1] : "GMT";
@@ -3420,7 +3420,7 @@ var Z = e.asm({}, {ClassHandle:Nc, ClassHandle_clone:Vc, ClassHandle_delete:Wc,
34203420
return eval(x(a)) | 0;
34213421
}, emscripten_run_script_string:Y, ensureOverloadTable:dd, exposePublicSymbol:ed, extendError:Ic, fabs:Xa, fabsf:Xa, floatReadValueFromPointer:Qd, floor:$a, flushPendingDeletes:$c, genericPointerToWireType:jd, getBasestPointer:wd, getInheritedInstance:xd, getInheritedInstanceCount:rd, getLiveInheritedInstances:td, getShiftFromSize:Ac, getTypeName:Dd, get_first_emval:Od, getenv:ae, heap32VectorToArray:Jd, init_ClassHandle:bd, init_RegisteredPointer:Ad, init_embind:vd, init_emval:Pd, integerReadValueFromPointer:Rd,
34223422
jsStackTrace:qb, localtime:function(a) {
3423-
return fe(a, 1848304);
3423+
return fe(a, 1744992);
34243424
}, localtime_r:fe, makeClassHandle:yd, makeLegalFunctionName:Gc, memcpy:function(a, b, c) {
34253425
a |= 0;
34263426
b |= 0;
@@ -3839,14 +3839,14 @@ Z.dynCall_iiiiiiiiiii = function() {
38393839
assert(!0, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
38403840
return of.apply(null, arguments);
38413841
};
3842-
var pf = Z.dynCall_viiifiii;
3843-
Z.dynCall_viiifiii = function() {
3842+
var pf = Z.dynCall_viiifii;
3843+
Z.dynCall_viiifii = function() {
38443844
assert(E, "you need to wait for the runtime to be ready (e.g. wait for main() to be called)");
38453845
assert(!0, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
38463846
return pf.apply(null, arguments);
38473847
};
3848-
var qf = Z.dynCall_viiifii;
3849-
Z.dynCall_viiifii = function() {
3848+
var qf = Z.dynCall_viiifiii;
3849+
Z.dynCall_viiifiii = function() {
38503850
assert(E, "you need to wait for the runtime to be ready (e.g. wait for main() to be called)");
38513851
assert(!0, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
38523852
return qf.apply(null, arguments);
@@ -4142,15 +4142,15 @@ e.dynCall_iiiiiiiiiii = function() {
41424142
assert(!0, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
41434143
return e.asm.dynCall_iiiiiiiiiii.apply(null, arguments);
41444144
};
4145-
e.dynCall_viiifiii = function() {
4145+
e.dynCall_viiifii = function() {
41464146
assert(E, "you need to wait for the runtime to be ready (e.g. wait for main() to be called)");
41474147
assert(!0, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
4148-
return e.asm.dynCall_viiifiii.apply(null, arguments);
4148+
return e.asm.dynCall_viiifii.apply(null, arguments);
41494149
};
4150-
e.dynCall_viiifii = function() {
4150+
e.dynCall_viiifiii = function() {
41514151
assert(E, "you need to wait for the runtime to be ready (e.g. wait for main() to be called)");
41524152
assert(!0, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
4153-
return e.asm.dynCall_viiifii.apply(null, arguments);
4153+
return e.asm.dynCall_viiifiii.apply(null, arguments);
41544154
};
41554155
e.dynCall_iidiiii = function() {
41564156
assert(E, "you need to wait for the runtime to be ready (e.g. wait for main() to be called)");
@@ -4446,8 +4446,8 @@ function yf() {
44464446
}
44474447
if (!(0 < bb)) {
44484448
assert(!0);
4449-
y[462117] = 34821223;
4450-
y[462118] = 2310721022;
4449+
y[436289] = 34821223;
4450+
y[436290] = 2310721022;
44514451
if (e.preRun) {
44524452
for ("function" == typeof e.preRun && (e.preRun = [e.preRun]); e.preRun.length;) {
44534453
Ua();

dist/dbr-7.4.0.1.node.wasm

4.81 MB
Binary file not shown.
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function Pa() {
271271
e.HEAPF32 = Na = new Float32Array(buffer);
272272
e.HEAPF64 = Oa = new Float64Array(buffer);
273273
}
274-
var ta = 2011680;
274+
var ta = 1908368;
275275
assert(!0, "stack must start aligned");
276276
assert(!0, "heap must start aligned");
277277
e.TOTAL_STACK && assert(5242880 === e.TOTAL_STACK, "the stack size can no longer be determined at runtime");
@@ -286,9 +286,9 @@ Aa && (buffer = Aa.buffer);
286286
Qa = buffer.byteLength;
287287
assert(0 === Qa % 65536);
288288
Pa();
289-
r[ta >> 2] = 7254576;
289+
r[ta >> 2] = 7151264;
290290
function Ra() {
291-
var a = A[502925], b = A[502926];
291+
var a = A[477097], b = A[477098];
292292
34821223 == a && 2310721022 == b || l("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x02135467, but received 0x" + b.toString(16) + " " + a.toString(16));
293293
1668509029 !== r[0] && l("Runtime error: The application has corrupted its heap memory area (address zero)!");
294294
}
@@ -352,7 +352,7 @@ function kb() {
352352
var a = lb;
353353
return String.prototype.startsWith ? a.startsWith("data:application/octet-stream;base64,") : 0 === a.indexOf("data:application/octet-stream;base64,");
354354
}
355-
var lb = "dbr-7.4.0.node.wasm";
355+
var lb = "dbr-7.4.0.1.node.wasm";
356356
if (!kb()) {
357357
var mb = lb;
358358
lb = e.locateFile ? e.locateFile(mb, ka) : ka + mb;
@@ -430,7 +430,7 @@ function pb(a) {
430430
}
431431
e.asm = function(a, b) {
432432
b.memory = Aa;
433-
b.table = new WebAssembly.Table({initial:9014, maximum:9014, element:"anyfunc"});
433+
b.table = new WebAssembly.Table({initial:8973, maximum:8973, element:"anyfunc"});
434434
a = pb(b);
435435
assert(a, "binaryen setup failed (no wasm support?)");
436436
return a;
@@ -2473,7 +2473,7 @@ function le(a) {
24732473
le.ka = c;
24742474
return le.ka;
24752475
}
2476-
Ha("GMT", 2011584, 4);
2476+
Ha("GMT", 1908272, 4);
24772477
function me() {
24782478
function a(a) {
24792479
return (a = a.toTimeString().match(/\(([A-Za-z ]+)\)$/)) ? a[1] : "GMT";
@@ -3472,7 +3472,7 @@ var Z = e.asm({}, {ClassHandle:Sc, ClassHandle_clone:$c, ClassHandle_delete:ad,
34723472
}, exposePublicSymbol:jd, extendError:Mc, fabs:ab, fabsf:ab, floatReadValueFromPointer:Xd, floor:db, flushPendingDeletes:ed, genericPointerToWireType:od, getBasestPointer:Bd, getInheritedInstance:Cd, getInheritedInstanceCount:wd, getLiveInheritedInstances:yd, getShiftFromSize:Ec, getTempRet0:function() {
34733473
return ya | 0;
34743474
}, getTypeName:Kd, get_first_emval:Vd, getenv:le, heap32VectorToArray:Qd, init_ClassHandle:gd, init_RegisteredPointer:Fd, init_embind:Ad, init_emval:Wd, integerReadValueFromPointer:Yd, invoke_ii:Be, invoke_iii:Ce, invoke_iiii:De, invoke_iiiii:Ee, invoke_iiiiii:Fe, invoke_iiiiiii:Ge, invoke_iiiiiiii:He, invoke_iiiiiiiiii:Ie, invoke_vi:Je, invoke_vii:Ke, invoke_viii:Le, invoke_viiii:Me, invoke_viiiii:Ne, invoke_viiiiii:Oe, invoke_viiiiiiiii:Pe, jsStackTrace:ub, localtime:function(a) {
3475-
return qe(a, 2011536);
3475+
return qe(a, 1908224);
34763476
}, localtime_r:qe, longjmp:je, makeClassHandle:Dd, makeLegalFunctionName:Kc, memcpy:function(a, b, c) {
34773477
a |= 0;
34783478
b |= 0;
@@ -3925,14 +3925,14 @@ Z.dynCall_iiiiiiiiiii = function() {
39253925
assert(!G, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
39263926
return Sf.apply(null, arguments);
39273927
};
3928-
var Tf = Z.dynCall_viiifiii;
3929-
Z.dynCall_viiifiii = function() {
3928+
var Tf = Z.dynCall_viiifii;
3929+
Z.dynCall_viiifii = function() {
39303930
assert(F, "you need to wait for the runtime to be ready (e.g. wait for main() to be called)");
39313931
assert(!G, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
39323932
return Tf.apply(null, arguments);
39333933
};
3934-
var Uf = Z.dynCall_viiifii;
3935-
Z.dynCall_viiifii = function() {
3934+
var Uf = Z.dynCall_viiifiii;
3935+
Z.dynCall_viiifiii = function() {
39363936
assert(F, "you need to wait for the runtime to be ready (e.g. wait for main() to be called)");
39373937
assert(!G, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
39383938
return Uf.apply(null, arguments);
@@ -4220,15 +4220,15 @@ e.dynCall_iiiiiiiiiii = function() {
42204220
assert(!G, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
42214221
return e.asm.dynCall_iiiiiiiiiii.apply(null, arguments);
42224222
};
4223-
e.dynCall_viiifiii = function() {
4223+
e.dynCall_viiifii = function() {
42244224
assert(F, "you need to wait for the runtime to be ready (e.g. wait for main() to be called)");
42254225
assert(!G, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
4226-
return e.asm.dynCall_viiifiii.apply(null, arguments);
4226+
return e.asm.dynCall_viiifii.apply(null, arguments);
42274227
};
4228-
e.dynCall_viiifii = function() {
4228+
e.dynCall_viiifiii = function() {
42294229
assert(F, "you need to wait for the runtime to be ready (e.g. wait for main() to be called)");
42304230
assert(!G, "the runtime was exited (use NO_EXIT_RUNTIME to keep it alive after main() exits)");
4231-
return e.asm.dynCall_viiifii.apply(null, arguments);
4231+
return e.asm.dynCall_viiifiii.apply(null, arguments);
42324232
};
42334233
e.dynCall_iidiiii = function() {
42344234
assert(F, "you need to wait for the runtime to be ready (e.g. wait for main() to be called)");
@@ -4704,8 +4704,8 @@ function pg() {
47044704
}
47054705
if (!(0 < fb)) {
47064706
assert(!0);
4707-
A[502925] = 34821223;
4708-
A[502926] = 2310721022;
4707+
A[477097] = 34821223;
4708+
A[477098] = 2310721022;
47094709
if (e.preRun) {
47104710
for ("function" == typeof e.preRun && (e.preRun = [e.preRun]); e.preRun.length;) {
47114711
Ya();

dist/dbr-7.4.0.1.wasm

2.77 MB
Binary file not shown.

0 commit comments

Comments
 (0)