ngx-scandoc 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.
- package/esm2020/core/components/scan/scan.component.mjs +18 -7
- package/esm2020/providers/interceptor.provider.mjs +1 -2
- package/fesm2015/ngx-scandoc.mjs +17 -7
- package/fesm2015/ngx-scandoc.mjs.map +1 -1
- package/fesm2020/ngx-scandoc.mjs +17 -7
- package/fesm2020/ngx-scandoc.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/ngx-scandoc.mjs
CHANGED
|
@@ -2387,6 +2387,15 @@ class ScanComponent extends BaseComponent {
|
|
|
2387
2387
|
load: 0,
|
|
2388
2388
|
};
|
|
2389
2389
|
this.scanProvider = this.injector.get(ScanProvider);
|
|
2390
|
+
if (!this.scanProvider.config.development) {
|
|
2391
|
+
// console = {
|
|
2392
|
+
// log: (...args: any) => {},
|
|
2393
|
+
// time: (...args: any) => {},
|
|
2394
|
+
// timeEnd: (...args: any) => {},
|
|
2395
|
+
// warn: (...args: any) => {},
|
|
2396
|
+
// error: (...args: any) => {},
|
|
2397
|
+
// };
|
|
2398
|
+
}
|
|
2390
2399
|
}
|
|
2391
2400
|
get class() {
|
|
2392
2401
|
return this.isMobile;
|
|
@@ -2444,12 +2453,14 @@ class ScanComponent extends BaseComponent {
|
|
|
2444
2453
|
}
|
|
2445
2454
|
this.cd.detectChanges();
|
|
2446
2455
|
if (this.scannedImages.length > 4 && !this.validation) {
|
|
2447
|
-
this.
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2456
|
+
if (this.scanProvider.config.development) {
|
|
2457
|
+
this.scannedImages.forEach((img) => {
|
|
2458
|
+
const consoleBackground = "font-size:100px;background-image: url('" +
|
|
2459
|
+
img.imageResized +
|
|
2460
|
+
"');background-size: contain; background-repeat: no-repeat;";
|
|
2461
|
+
console.log('%c ', consoleBackground);
|
|
2462
|
+
});
|
|
2463
|
+
}
|
|
2453
2464
|
// this.frontImage = webcamImage.imageResized;
|
|
2454
2465
|
console.timeEnd('scan');
|
|
2455
2466
|
console.time('scan');
|
|
@@ -3935,7 +3946,6 @@ class HttpErrorInterceptor {
|
|
|
3935
3946
|
return next.handle(req);
|
|
3936
3947
|
}
|
|
3937
3948
|
}
|
|
3938
|
-
console.log('AUTH II');
|
|
3939
3949
|
this.inflightAuthRequest = authProvider.accesToken;
|
|
3940
3950
|
return this.inflightAuthRequest.pipe(share(), switchMap((token) => {
|
|
3941
3951
|
// unset request inflight
|