@vacantthinker/firefox-addon-framework-easy 2026.621.1121 → 2026.622.802

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 { MessageActionBaseOptions } from "./types";
2
- export type ActHandlerFunc = (rest: any, tabId: number | undefined) => Promise<void>;
2
+ export type ActHandlerFunc = (rest: any, tabId?: number | undefined, tabUrl?: string | undefined) => Promise<void>;
3
3
  /**
4
4
  * Uses <T extends string> so the app can pass its own union type.
5
5
  * It defaults to FrameworkBaseAction if no type is passed.
@@ -1 +1 @@
1
- {"version":3,"file":"backgroundJs.d.ts","sourceRoot":"","sources":["../src/backgroundJs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,wBAAwB,EAA6B,MAAM,SAAS,CAAC;AAI7E,MAAM,MAAM,cAAc,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAErF;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,SAAS,MAAM,GAAG,wBAAwB,KACpF,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC,CAoCzB;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,CAAC,SAAS,MAAM,EAClE,WAAW,EAAE,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC,EACnC,MAAM,GAAE,MAAyB,QAsBlC"}
1
+ {"version":3,"file":"backgroundJs.d.ts","sourceRoot":"","sources":["../src/backgroundJs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,wBAAwB,EAA6B,MAAM,SAAS,CAAC;AAI7E,MAAM,MAAM,cAAc,GAAG,CAC3B,IAAI,EAAE,GAAG,EACT,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEhD;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,SAAS,MAAM,GAAG,wBAAwB,KACpF,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC,CAoCzB;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,CAAC,SAAS,MAAM,EAClE,WAAW,EAAE,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC,EACnC,MAAM,GAAE,MAAyB,QAuBlC"}
@@ -56,6 +56,7 @@ export function bkJsRegisterRuntimeActionDispatcher(handlersMap, logTag = "backg
56
56
  if (!act)
57
57
  return;
58
58
  const tabId = sender?.tab?.id;
59
+ const tabUrl = sender?.tab?.url;
59
60
  if (act !== "actMarco") {
60
61
  console.info(logTag, act, `tabId=`, tabId);
61
62
  }
@@ -65,7 +66,7 @@ export function bkJsRegisterRuntimeActionDispatcher(handlersMap, logTag = "backg
65
66
  // Cast `act` to T so it can be used to query the Map
66
67
  const handler = handlersMap.get(act);
67
68
  if (handler) {
68
- await handler(rest, tabId);
69
+ await handler(rest, tabId, tabUrl);
69
70
  }
70
71
  else {
71
72
  console.warn(act, " not match!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.0621.1121",
3
+ "version": "2026.0622.0802",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",