browser-extension-manager 1.3.39 → 1.3.40
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/dist/background.js +2 -2
- package/dist/gulp/tasks/webpack.js +6 -4
- package/package.json +1 -1
package/dist/background.js
CHANGED
|
@@ -32,7 +32,7 @@ class Manager {
|
|
|
32
32
|
// Defaults
|
|
33
33
|
this.version = this.config?.version || 'unknown';
|
|
34
34
|
this.brand = this.config?.brand || { name: 'unknown' };
|
|
35
|
-
this.
|
|
35
|
+
this.brand.id = this.config?.brand?.id || 'extension';
|
|
36
36
|
this.environment = this.config?.bxm?.environment || 'production';
|
|
37
37
|
this.libraries = {
|
|
38
38
|
firebase: null,
|
|
@@ -83,7 +83,7 @@ class Manager {
|
|
|
83
83
|
parseConfiguration() {
|
|
84
84
|
try {
|
|
85
85
|
// Set cache name
|
|
86
|
-
this.cache.name = `${this.
|
|
86
|
+
this.cache.name = `${this.brand.id}-${this.cache.breaker}`;
|
|
87
87
|
} catch (e) {
|
|
88
88
|
this.logger.error('Error parsing configuration', e);
|
|
89
89
|
}
|
|
@@ -445,13 +445,15 @@ function getTemplateReplaceOptions() {
|
|
|
445
445
|
environment: options.environment || 'production',
|
|
446
446
|
buildTime: now,
|
|
447
447
|
brand: {
|
|
448
|
-
id: options.
|
|
448
|
+
id: options.brand?.id || 'extension',
|
|
449
449
|
name: options.brand?.name || 'Extension',
|
|
450
450
|
url: options.brand?.url || '',
|
|
451
451
|
email: options.brand?.email || '',
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
452
|
+
images: {
|
|
453
|
+
brandmark: options.brand?.images?.brandmark || '',
|
|
454
|
+
wordmark: options.brand?.images?.wordmark || '',
|
|
455
|
+
combomark: options.brand?.images?.combomark || '',
|
|
456
|
+
},
|
|
455
457
|
},
|
|
456
458
|
auth: webManagerConfig.auth || { enabled: true, config: {} },
|
|
457
459
|
firebase: {
|