browser-extension-manager 1.1.7 → 1.1.9

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/CLAUDE.md CHANGED
@@ -294,8 +294,34 @@ This enables:
294
294
  **Manager classes:** [src/background.js](src/background.js), [src/popup.js](src/popup.js), [src/options.js](src/options.js), [src/sidepanel.js](src/sidepanel.js), [src/page.js](src/page.js), [src/content.js](src/content.js)
295
295
 
296
296
  **Extension API wrapper:** [src/lib/extension.js](src/lib/extension.js)
297
- - Provides cross-browser compatibility
298
- - Normalizes chrome/browser APIs
297
+
298
+ A universal/agnostic API wrapper that enables cross-browser extension development. Write your extension once and it works on Chrome, Firefox, Edge, and other browsers.
299
+
300
+ **How it works:**
301
+ - Detects and normalizes APIs from `chrome.*`, `browser.*`, and `window.*` namespaces
302
+ - Automatically selects the correct API based on what's available in the current browser
303
+ - Exports a singleton with unified access to all extension APIs
304
+
305
+ **Supported APIs:**
306
+ `action`, `alarms`, `bookmarks`, `browsingData`, `browserAction`, `commands`, `contentSettings`, `contextMenus`, `cookies`, `downloads`, `events`, `extension`, `extensionTypes`, `history`, `i18n`, `identity`, `idle`, `management`, `notifications`, `pageAction`, `permissions`, `privacy`, `proxy`, `runtime`, `scripting`, `sidePanel`, `storage`, `tabs`, `topSites`, `tts`, `wallpaper`, `webNavigation`, `webRequest`, `windows`
307
+
308
+ **Usage:**
309
+ ```javascript
310
+ // Exposed via manager - no separate import needed
311
+ const Manager = new (require('browser-extension-manager/popup'));
312
+
313
+ Manager.initialize().then(() => {
314
+ const { extension } = Manager;
315
+
316
+ // Works on Chrome, Firefox, Edge, etc.
317
+ extension.tabs.query({ active: true }, (tabs) => { ... });
318
+ extension.storage.get('key', (result) => { ... });
319
+ extension.runtime.sendMessage({ type: 'hello' });
320
+ });
321
+ ```
322
+
323
+ **Storage normalization:**
324
+ The wrapper automatically resolves `storage` to `storage.sync` if available, falling back to `storage.local`.
299
325
 
300
326
  **Logger:** [src/lib/logger.js](src/lib/logger.js)
301
327
  - Full logging utility
package/TODO.md CHANGED
@@ -6,6 +6,9 @@ WM
6
6
 
7
7
  BXM
8
8
  - extension version (currently bxm-version, but change it)
9
+ - BINDINGS
9
10
 
10
11
  TODO
11
12
  handle auth by redirecting to the config website url
13
+
14
+
@@ -47,10 +47,6 @@ async function generateBuildJs(outputDir) {
47
47
  // Get git info
48
48
  const gitInfo = getGitInfo();
49
49
 
50
- // Get manifest
51
- const manifestPath = path.join('dist', 'manifest.json');
52
- const manifest = JSON5.parse(jetpack.read(manifestPath));
53
-
54
50
  // Build config object matching web-manager's expected structure
55
51
  const buildConfig = {
56
52
  timestamp: new Date().toISOString(),
@@ -62,7 +58,7 @@ async function generateBuildJs(outputDir) {
62
58
  },
63
59
  config: {
64
60
  // Core metadata
65
- version: manifest.version,
61
+ version: project.version,
66
62
  environment: Manager.getEnvironment(),
67
63
  buildTime: Date.now(),
68
64
 
@@ -59,7 +59,6 @@ function Extension () {
59
59
  }
60
60
  } catch (e) {}
61
61
 
62
-
63
62
  // Try browser
64
63
  try {
65
64
  if (browser[api]) {
@@ -698,3 +698,31 @@
698
698
  [debug] [2025-11-17T03:02:32.608Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
699
699
  [debug] [2025-11-17T03:02:32.609Z] > 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"]
700
700
  [debug] [2025-11-17T03:02:32.609Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
701
+ [debug] [2025-11-24T23:10:15.709Z] > 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"]
702
+ [debug] [2025-11-24T23:10:15.713Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
703
+ [debug] [2025-11-24T23:10:15.713Z] > 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"]
704
+ [debug] [2025-11-24T23:10:15.713Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
705
+ [debug] [2025-11-24T23:10:15.741Z] > 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"]
706
+ [debug] [2025-11-24T23:10:15.741Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
707
+ [debug] [2025-11-24T23:10:15.792Z] > 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"]
708
+ [debug] [2025-11-24T23:10:15.792Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
709
+ [debug] [2025-11-24T23:10:15.793Z] > 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"]
710
+ [debug] [2025-11-24T23:10:15.793Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
711
+ [debug] [2025-11-24T23:10:15.799Z] > 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"]
712
+ [debug] [2025-11-24T23:10:15.799Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
713
+ [debug] [2025-11-24T23:10:15.801Z] > 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"]
714
+ [debug] [2025-11-24T23:10:15.801Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
715
+ [debug] [2025-11-24T23:10:17.173Z] > 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"]
716
+ [debug] [2025-11-24T23:10:17.175Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
717
+ [debug] [2025-11-24T23:10:17.175Z] > 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"]
718
+ [debug] [2025-11-24T23:10:17.175Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
719
+ [debug] [2025-11-24T23:10:17.186Z] > 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"]
720
+ [debug] [2025-11-24T23:10:17.186Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
721
+ [debug] [2025-11-24T23:10:17.223Z] > 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"]
722
+ [debug] [2025-11-24T23:10:17.224Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
723
+ [debug] [2025-11-24T23:10:17.224Z] > 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"]
724
+ [debug] [2025-11-24T23:10:17.224Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
725
+ [debug] [2025-11-24T23:10:17.226Z] > 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"]
726
+ [debug] [2025-11-24T23:10:17.226Z] > authorizing via signed-in user (ian.wiedenman@gmail.com)
727
+ [debug] [2025-11-24T23:10:17.226Z] > 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"]
728
+ [debug] [2025-11-24T23:10:17.226Z] > 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.7",
3
+ "version": "1.1.9",
4
4
  "description": "Browser Extension Manager dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -79,10 +79,10 @@
79
79
  "minimatch": "^10.1.1",
80
80
  "node-powertools": "^2.3.2",
81
81
  "npm-api": "^1.0.1",
82
- "sass": "^1.94.0",
82
+ "sass": "^1.94.2",
83
83
  "through2": "^4.0.2",
84
- "web-manager": "^4.0.24",
85
- "webpack": "^5.102.1",
84
+ "web-manager": "^4.0.27",
85
+ "webpack": "^5.103.0",
86
86
  "wonderful-fetch": "^1.3.4",
87
87
  "wonderful-version": "^1.3.2",
88
88
  "ws": "^8.18.3",