@ngx-smz/core 19.3.5 → 19.3.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.
|
@@ -183,13 +183,6 @@ function provideSmzCoreLogging(initializers) {
|
|
|
183
183
|
return makeEnvironmentProviders([...providers, initializer]);
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
-
// Definição de scopes possíveis como enum
|
|
187
|
-
var LoggingScope;
|
|
188
|
-
(function (LoggingScope) {
|
|
189
|
-
LoggingScope["None"] = "None";
|
|
190
|
-
LoggingScope["Forms"] = "Forms";
|
|
191
|
-
})(LoggingScope || (LoggingScope = {}));
|
|
192
|
-
|
|
193
186
|
// logging.service.ts
|
|
194
187
|
class LoggingService {
|
|
195
188
|
configFn = inject(SMZ_CORE_LOGGING_CONFIG).logging;
|
|
@@ -221,7 +214,7 @@ class LoggingService {
|
|
|
221
214
|
// respeita scopes se fornecido
|
|
222
215
|
const scopes = cfg.restrictedScopes;
|
|
223
216
|
if (scopes && scopes.length > 0 && owner) {
|
|
224
|
-
if (!(scopes.includes(
|
|
217
|
+
if (!(scopes.includes('*') || scopes.includes(owner))) {
|
|
225
218
|
return false;
|
|
226
219
|
}
|
|
227
220
|
}
|
|
@@ -304,6 +297,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.5", ngImpor
|
|
|
304
297
|
args: [{ providedIn: 'root' }]
|
|
305
298
|
}] });
|
|
306
299
|
|
|
300
|
+
// Definição de scopes possíveis como enum
|
|
301
|
+
var LoggingScope;
|
|
302
|
+
(function (LoggingScope) {
|
|
303
|
+
LoggingScope["None"] = "None";
|
|
304
|
+
LoggingScope["Forms"] = "Forms";
|
|
305
|
+
})(LoggingScope || (LoggingScope = {}));
|
|
306
|
+
|
|
307
307
|
var SmzControlType;
|
|
308
308
|
(function (SmzControlType) {
|
|
309
309
|
SmzControlType[SmzControlType["CALENDAR"] = 16] = "CALENDAR";
|