browser-extension-manager 1.1.0 → 1.1.1

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.
@@ -78,8 +78,6 @@ class Manager {
78
78
  try {
79
79
  // Set cache name
80
80
  this.cache.name = `${this.app}-${this.cache.breaker}`;
81
-
82
- this.logger.log('Parsed configuration', this.config);
83
81
  } catch (e) {
84
82
  this.logger.error('Error parsing configuration', e);
85
83
  }
@@ -7,15 +7,18 @@
7
7
  <title>{{ page.title }}</title>
8
8
 
9
9
  <!-- Main CSS (includes Font Awesome) -->
10
- <link href="/assets/css/main.bundle.css" rel="stylesheet">
10
+ <link href="/assets/css/main.bundle.css?cb={{ cacheBust }}" rel="stylesheet">
11
11
 
12
12
  <!-- Component-specific CSS -->
13
- <link href="/assets/css/components/{{ page.name }}.bundle.css" rel="stylesheet">
13
+ <link href="/assets/css/components/{{ page.name }}.bundle.css?cb={{ cacheBust }}" rel="stylesheet">
14
14
  </head>
15
15
  <body>
16
16
  {{ content }}
17
17
 
18
+ <!-- Build -->
19
+ <script src="/build.js?cb={{ cacheBust }}"></script>
20
+
18
21
  <!-- Main JS -->
19
- <script src="/assets/js/components/{{ page.name }}.bundle.js"></script>
22
+ <script src="/assets/js/components/{{ page.name }}.bundle.js?cb={{ cacheBust }}"></script>
20
23
  </body>
21
24
  </html>
@@ -51,9 +51,6 @@ async function generateBuildJs(outputDir) {
51
51
  const manifestPath = path.join('dist', 'manifest.json');
52
52
  const manifest = JSON5.parse(jetpack.read(manifestPath));
53
53
 
54
- // Get web-manager config from project config
55
- const webManagerConfig = config.webManager || {};
56
-
57
54
  // Build config object matching web-manager's expected structure
58
55
  const buildConfig = {
59
56
  timestamp: new Date().toISOString(),
@@ -70,15 +67,7 @@ async function generateBuildJs(outputDir) {
70
67
  buildTime: Date.now(),
71
68
 
72
69
  // Brand configuration (from browser-extension-manager.json or manifest)
73
- brand: {
74
- id: config.app?.id || manifest.app?.id || 'extension',
75
- name: config.brand?.name || manifest.brand?.name || 'Extension',
76
- url: config.brand?.url || manifest.brand?.url || '',
77
- email: config.brand?.email || manifest.brand?.email || '',
78
- brandmark: config.brand?.brandmark || '',
79
- wordmark: config.brand?.wordmark || '',
80
- combomark: config.brand?.combomark || '',
81
- },
70
+ brand: config.brand || {},
82
71
 
83
72
  // BEM-specific config
84
73
  bem: {
@@ -88,29 +77,32 @@ async function generateBuildJs(outputDir) {
88
77
  },
89
78
 
90
79
  // Web-manager features (matching expected structure)
91
- auth: webManagerConfig.auth || { enabled: true, config: {} },
80
+ auth: { enabled: true, config: {} },
92
81
 
93
82
  firebase: {
94
83
  app: {
95
- enabled: !!(config.firebaseConfig?.apiKey || webManagerConfig.firebase?.app?.config?.apiKey),
96
- config: config.firebaseConfig || webManagerConfig.firebase?.app?.config || {},
84
+ enabled: !!(config.firebaseConfig?.apiKey),
85
+ config: config.firebaseConfig || {},
97
86
  },
98
- appCheck: webManagerConfig.firebase?.appCheck || { enabled: false, config: {} },
87
+ appCheck: { enabled: false, config: {} },
99
88
  },
100
89
 
101
- cookieConsent: webManagerConfig.cookieConsent || { enabled: true, config: {} },
102
- chatsy: webManagerConfig.chatsy || { enabled: true, config: {} },
103
- sentry: webManagerConfig.sentry || {
104
- enabled: !!config.sentry?.dsn,
90
+ cookieConsent: { enabled: true, config: {} },
91
+ chatsy: { enabled: true, config: {} },
92
+ sentry: {
93
+ enabled: !!(config.sentry?.dsn),
105
94
  config: config.sentry || {}
106
95
  },
107
- exitPopup: webManagerConfig.exitPopup || { enabled: false, config: {} },
108
- lazyLoading: webManagerConfig.lazyLoading || { enabled: true, config: {} },
109
- socialSharing: webManagerConfig.socialSharing || { enabled: false, config: {} },
110
- pushNotifications: webManagerConfig.pushNotifications || { enabled: false, config: {} },
111
- validRedirectHosts: webManagerConfig.validRedirectHosts || ['itwcreativeworks.com'],
112
- refreshNewVersion: webManagerConfig.refreshNewVersion || { enabled: true, config: {} },
113
- serviceWorker: webManagerConfig.serviceWorker || { enabled: false, config: {} },
96
+ exitPopup: { enabled: false, config: {} },
97
+ lazyLoading: { enabled: true, config: {} },
98
+ socialSharing: { enabled: false, config: {} },
99
+ pushNotifications: { enabled: false, config: {} },
100
+ validRedirectHosts: ['itwcreativeworks.com'],
101
+ refreshNewVersion: { enabled: true, config: {} },
102
+ serviceWorker: { enabled: false, config: {} },
103
+
104
+ // Analytics
105
+ google_analytics: config.google_analytics || {},
114
106
 
115
107
  // Theme config
116
108
  theme: config.theme || {},
@@ -44,6 +44,10 @@ const watchInput = [
44
44
  // Core JS - watch for changes but don't compile as entry points
45
45
  `${rootPathPackage}/dist/assets/js/**/*.js`,
46
46
 
47
+ // Theme js - watch for changes but don't compile as entry points
48
+ `${rootPathPackage}/dist/assets/themes/**/*.js`,
49
+ 'src/assets/themes/**/*.js',
50
+
47
51
  // Component files - watch for changes to trigger recompile
48
52
  `${rootPathPackage}/src/popup.js`,
49
53
  `${rootPathPackage}/src/options.js`,
@@ -51,9 +55,8 @@ const watchInput = [
51
55
  `${rootPathPackage}/src/sidepanel.js`,
52
56
  `${rootPathPackage}/src/index.js`,
53
57
 
54
- // Theme js - watch for changes but don't compile as entry points
55
- `${rootPathPackage}/dist/assets/themes/**/*.js`,
56
- 'src/assets/themes/**/*.js',
58
+ // So we can watch for changes while we're developing web-manager
59
+ `${rootPathPackage}/../web-manager/src`,
57
60
  ];
58
61
 
59
62
  const delay = 250;
@@ -320,3 +320,31 @@
320
320
  [debug] [2025-11-14T03:24:36.859Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
321
321
  [debug] [2025-11-14T03:24:36.860Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
322
322
  [debug] [2025-11-14T03:24:36.860Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
323
+ [debug] [2025-11-14T03:59:17.559Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
324
+ [debug] [2025-11-14T03:59:17.567Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
325
+ [debug] [2025-11-14T03:59:17.562Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
326
+ [debug] [2025-11-14T03:59:17.562Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
327
+ [debug] [2025-11-14T03:59:17.562Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
328
+ [debug] [2025-11-14T03:59:17.570Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
329
+ [debug] [2025-11-14T03:59:17.571Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
330
+ [debug] [2025-11-14T03:59:17.569Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
331
+ [debug] [2025-11-14T03:59:17.569Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
332
+ [debug] [2025-11-14T03:59:17.569Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
333
+ [debug] [2025-11-14T03:59:17.577Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
334
+ [debug] [2025-11-14T03:59:17.578Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
335
+ [debug] [2025-11-14T03:59:17.637Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
336
+ [debug] [2025-11-14T03:59:17.639Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
337
+ [debug] [2025-11-14T03:59:17.638Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
338
+ [debug] [2025-11-14T03:59:17.638Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
339
+ [debug] [2025-11-14T03:59:17.639Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
340
+ [debug] [2025-11-14T03:59:17.640Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
341
+ [debug] [2025-11-14T03:59:17.640Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
342
+ [debug] [2025-11-14T03:59:17.641Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
343
+ [debug] [2025-11-14T03:59:17.641Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
344
+ [debug] [2025-11-14T03:59:17.639Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
345
+ [debug] [2025-11-14T03:59:17.640Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
346
+ [debug] [2025-11-14T03:59:17.640Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
347
+ [debug] [2025-11-14T03:59:17.642Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
348
+ [debug] [2025-11-14T03:59:17.642Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
349
+ [debug] [2025-11-14T03:59:17.643Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
350
+ [debug] [2025-11-14T03:59:17.643Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-extension-manager",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Browser Extension Manager dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {