@transcommerce/cwm-shared 1.1.62 → 1.1.63
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component,
|
|
2
|
+
import { Component, Injectable, InjectionToken, Pipe, NgModule, Inject } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/router';
|
|
4
4
|
import * as i2 from '@angular/forms';
|
|
5
5
|
import { FormsModule } from '@angular/forms';
|
|
@@ -152,21 +152,6 @@ class Stack {
|
|
|
152
152
|
toString() { return this.items.toString(); }
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
const DEFAULT_AUTH_CONFIG = {
|
|
156
|
-
logLevel: "Info",
|
|
157
|
-
clientId: "af1486e0-a27f-4c8d-8503-0752d90ce72d",
|
|
158
|
-
tenantId: "445012c4-563a-4795-84d0-f7473a3197e0",
|
|
159
|
-
authority: "https://login.microsoft.com/445012c4-563a-4795-84d0-f7473a3197e0",
|
|
160
|
-
scopes: "openid,email,profile",
|
|
161
|
-
redirect_uri: window.location.origin,
|
|
162
|
-
logout_redirect_uri: window.location.origin + '/logout',
|
|
163
|
-
prompt: "login",
|
|
164
|
-
msalDiagnosticsEnabled: false,
|
|
165
|
-
showPii: false,
|
|
166
|
-
configConnectString: "Endpoint=https://cheap-weed-menus-appconfig.azconfig.io;Id=7F0m;Secret=7X8pkinp53tA8d4o2LfGUMHBWo54o68jYUSS7JcOnyQmh2lDXetkJQQJ99BEAC8vTInIcYexAAACAZAC2P1s"
|
|
167
|
-
};
|
|
168
|
-
const AUTH_CONFIG = new InjectionToken('AUTH_CONFIG');
|
|
169
|
-
|
|
170
155
|
/*
|
|
171
156
|
* The ClassLoggerService is really just a wrapper around the existing console logging functionality
|
|
172
157
|
* It is not intended to be used as a singleton service, but rather to be instantiated for each class that needs logging.
|
|
@@ -178,17 +163,12 @@ const AUTH_CONFIG = new InjectionToken('AUTH_CONFIG');
|
|
|
178
163
|
* 4. Keeps track of the call stack and can group nested method calls if collapseGroups is set to true
|
|
179
164
|
*/
|
|
180
165
|
class ClassLoggerService {
|
|
181
|
-
|
|
182
|
-
constructor(authConfig) {
|
|
183
|
-
this.authConfig = authConfig;
|
|
184
|
-
this.logLevel = this.authConfig.logLevel;
|
|
185
|
-
this.className = this.constructor.name;
|
|
186
|
-
}
|
|
166
|
+
constructor() { this.className = this.constructor.name; }
|
|
187
167
|
/*
|
|
188
168
|
* Determines what level of verbosity you want this service to log with.
|
|
189
169
|
* This can be set to 'None', 'Error', 'Warn', 'Info', 'Debug', or 'Trace'.
|
|
190
170
|
*/
|
|
191
|
-
logLevel = "Info";
|
|
171
|
+
logLevel = "Info"; // Default verbosity
|
|
192
172
|
/*
|
|
193
173
|
* Determine if method entry and exit points should be logged in collapsed groups
|
|
194
174
|
*/
|
|
@@ -330,15 +310,12 @@ class ClassLoggerService {
|
|
|
330
310
|
console.log(`${this.prefix} Trace: ${message}`, optionalParams);
|
|
331
311
|
}
|
|
332
312
|
}
|
|
333
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ClassLoggerService, deps: [
|
|
313
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ClassLoggerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
334
314
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ClassLoggerService });
|
|
335
315
|
}
|
|
336
316
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ClassLoggerService, decorators: [{
|
|
337
317
|
type: Injectable
|
|
338
|
-
}], ctorParameters: () => [
|
|
339
|
-
type: Inject,
|
|
340
|
-
args: [AUTH_CONFIG]
|
|
341
|
-
}] }] });
|
|
318
|
+
}], ctorParameters: () => [] });
|
|
342
319
|
|
|
343
320
|
function msalGuardConfigFactory(authConfig, injector) {
|
|
344
321
|
const logService = injector ? injector.get(ClassLoggerService, null) : null;
|
|
@@ -1231,6 +1208,21 @@ const DEFAULT_API_CONFIG = {
|
|
|
1231
1208
|
"locationId": "10f19fc5-31d0-4d76-bad4-ad593c9803ae"
|
|
1232
1209
|
};
|
|
1233
1210
|
|
|
1211
|
+
const DEFAULT_AUTH_CONFIG = {
|
|
1212
|
+
logLevel: "Info",
|
|
1213
|
+
clientId: "af1486e0-a27f-4c8d-8503-0752d90ce72d",
|
|
1214
|
+
tenantId: "445012c4-563a-4795-84d0-f7473a3197e0",
|
|
1215
|
+
authority: "https://login.microsoft.com/445012c4-563a-4795-84d0-f7473a3197e0",
|
|
1216
|
+
scopes: "openid,email,profile",
|
|
1217
|
+
redirect_uri: window.location.origin,
|
|
1218
|
+
logout_redirect_uri: window.location.origin + '/logout',
|
|
1219
|
+
prompt: "login",
|
|
1220
|
+
msalDiagnosticsEnabled: false,
|
|
1221
|
+
showPii: false,
|
|
1222
|
+
configConnectString: "Endpoint=https://cheap-weed-menus-appconfig.azconfig.io;Id=7F0m;Secret=7X8pkinp53tA8d4o2LfGUMHBWo54o68jYUSS7JcOnyQmh2lDXetkJQQJ99BEAC8vTInIcYexAAACAZAC2P1s"
|
|
1223
|
+
};
|
|
1224
|
+
const AUTH_CONFIG = new InjectionToken('AUTH_CONFIG');
|
|
1225
|
+
|
|
1234
1226
|
const DEFAULT_CAROUSEL_CONFIG = {
|
|
1235
1227
|
"slidesToShow": 3,
|
|
1236
1228
|
"slidesToScroll": 1,
|