@ngx-smz/core 19.3.1 → 19.3.2

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.
@@ -150,7 +150,7 @@ class SmzCoreLogging {
150
150
  enabled: false,
151
151
  production: false,
152
152
  level: 'debug',
153
- scopes: []
153
+ restrictedScopes: []
154
154
  });
155
155
  setConfig(config) {
156
156
  const { logging } = config || {};
@@ -198,7 +198,7 @@ class LoggingService {
198
198
  /** expose current settings */
199
199
  isEnabled = computed(() => this.enabled());
200
200
  currentLevel = computed(() => this.configFn().level ?? 'debug');
201
- activeScopes = computed(() => this.configFn().scopes ?? []);
201
+ activeScopes = computed(() => this.configFn().restrictedScopes ?? []);
202
202
  /** toggle logging global */
203
203
  enable() { this.enabled.set(true); }
204
204
  disable() { this.enabled.set(false); }
@@ -218,7 +218,7 @@ class LoggingService {
218
218
  return false;
219
219
  }
220
220
  // respeita scopes se fornecido
221
- const scopes = cfg.scopes;
221
+ const scopes = cfg.restrictedScopes;
222
222
  if (scopes && scopes.length > 0 && owner) {
223
223
  if (!(scopes.includes(LoggingScope['*']) || scopes.includes(owner))) {
224
224
  return false;