ngx-scandoc 1.0.4 → 1.0.6
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/core/interfaces/config.d.ts +2 -0
- package/esm2020/core/components/scan/scan.component.mjs +2 -1
- package/esm2020/core/interfaces/config.mjs +1 -1
- package/esm2020/providers/auth.provider.mjs +1 -1
- package/esm2020/providers/interceptor.provider.mjs +11 -1
- package/fesm2015/ngx-scandoc.mjs +11 -0
- package/fesm2015/ngx-scandoc.mjs.map +1 -1
- package/fesm2020/ngx-scandoc.mjs +11 -0
- package/fesm2020/ngx-scandoc.mjs.map +1 -1
- package/package.json +1 -1
- package/providers/auth.provider.d.ts +1 -1
package/fesm2020/ngx-scandoc.mjs
CHANGED
|
@@ -2783,6 +2783,7 @@ class ScanComponent extends BaseComponent {
|
|
|
2783
2783
|
'data:image/jpeg;base64,' + data.ImageData?.FaceImage;
|
|
2784
2784
|
}
|
|
2785
2785
|
console.log('MODEL', this.model);
|
|
2786
|
+
this.actions.emit({ type: 'scanFinish', model: this.model });
|
|
2786
2787
|
this.cd.detectChanges();
|
|
2787
2788
|
});
|
|
2788
2789
|
}
|
|
@@ -4056,6 +4057,16 @@ class HttpErrorInterceptor {
|
|
|
4056
4057
|
return next.handle(req);
|
|
4057
4058
|
}
|
|
4058
4059
|
const authProvider = this.injector.get(AuthProvider);
|
|
4060
|
+
if (authProvider.config.validDomains) {
|
|
4061
|
+
const valid = authProvider.config.validDomains
|
|
4062
|
+
.map((domain) => {
|
|
4063
|
+
return req.url.indexOf(domain) >= 0;
|
|
4064
|
+
})
|
|
4065
|
+
.filter((m) => m).length > 0;
|
|
4066
|
+
if (!valid) {
|
|
4067
|
+
return next.handle(req);
|
|
4068
|
+
}
|
|
4069
|
+
}
|
|
4059
4070
|
this.inflightAuthRequest = authProvider.accesToken;
|
|
4060
4071
|
return this.inflightAuthRequest.pipe(share(), switchMap((token) => {
|
|
4061
4072
|
// unset request inflight
|