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.
@@ -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.app = this.config?.app?.id || 'extension';
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.app}-${this.cache.breaker}`;
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.app?.id || 'extension',
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
- brandmark: options.brand?.brandmark || '',
453
- wordmark: options.brand?.wordmark || '',
454
- combomark: options.brand?.combomark || '',
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: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-extension-manager",
3
- "version": "1.3.39",
3
+ "version": "1.3.40",
4
4
  "description": "Browser Extension Manager dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {