@sumaris-net/ngx-components 2.4.82-rc7 → 2.4.82

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.
@@ -11383,7 +11383,7 @@ function isInstanceOf(obj, constructor) {
11383
11383
  class EntityUtils {
11384
11384
  // Check that the object has a NOT nil attribute (ID by default)
11385
11385
  static isEntity(obj) {
11386
- return isNotNil(obj.__typename) && (typeof obj.fromObject === 'function') && (typeof obj.asObject === 'function');
11386
+ return isNotNil(obj?.__typename) && (typeof obj.fromObject === 'function') && (typeof obj.asObject === 'function');
11387
11387
  }
11388
11388
  // Check that the object has a NOT nil attribute (ID by default)
11389
11389
  static isNotEmpty(obj, checkedAttribute) {
@@ -25754,12 +25754,12 @@ class AuthGuardService {
25754
25754
  // Force login
25755
25755
  if (!this.accountService.isLogin()) {
25756
25756
  if (this._debug)
25757
- console.debug('[auth-gard] Need authentication for page /' + next.url.join('/'));
25757
+ console.debug('[auth-guard] Need authentication for page /' + next.url.join('/'));
25758
25758
  return this.login(next)
25759
25759
  .then(res => {
25760
25760
  if (!res) {
25761
25761
  if (this._debug)
25762
- console.debug('[auth-gard] Authentication cancelled. Could not access to /' + next.url.join('/'));
25762
+ console.debug('[auth-guard] Authentication cancelled. Could not access to /' + next.url.join('/'));
25763
25763
  return this.router.parseUrl('/home');
25764
25764
  }
25765
25765
  // Iterate
@@ -25768,11 +25768,11 @@ class AuthGuardService {
25768
25768
  }
25769
25769
  if (next.data && next.data.profile && !this.accountService.hasMinProfile(next.data.profile)) {
25770
25770
  if (this._debug)
25771
- console.debug('[auth-gard] Not authorized access to /' + next.url.join('/') + '. Missing required profile: ' + next.data.profile);
25771
+ console.debug('[auth-guard] Not authorized access to /' + next.url.join('/') + '. Missing required profile: ' + next.data.profile);
25772
25772
  return false;
25773
25773
  }
25774
25774
  if (this._debug)
25775
- console.debug('[auth-gard] Authorized access to /' + next.url.join('/'));
25775
+ console.debug('[auth-guard] Authorized access to /' + next.url.join('/'));
25776
25776
  return true;
25777
25777
  }
25778
25778
  login(next) {