@vacantthinker/firefox-addon-framework-easy 2026.611.2203 → 2026.612.1204

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.
@@ -15,6 +15,7 @@ export declare function stoOpGet<T = any>(key: string): Promise<T | null>;
15
15
  * @returns Promise resolving to an object containing all storage items.
16
16
  */
17
17
  export declare function stoOpGetAll<T = Record<string, any>>(): Promise<T>;
18
+ export declare function stoOpClear(): Promise<void>;
18
19
  /**
19
20
  * Queries keys that start with a specific prefix.
20
21
  * @param prefix The prefix to filter keys.
@@ -1 +1 @@
1
- {"version":3,"file":"opStorage.d.ts","sourceRoot":"","sources":["../src/opStorage.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAG9D;AAED;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAGtE;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAGvE;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAI3E;AAED;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAErE;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEzD;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE7D"}
1
+ {"version":3,"file":"opStorage.d.ts","sourceRoot":"","sources":["../src/opStorage.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAG9D;AAED;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAGtE;AAED;;;GAGG;AACH,wBAAsB,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAGvE;AAED,wBAAsB,UAAU,kBAE/B;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAI3E;AAED;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAErE;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEzD;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE7D"}
package/dist/opStorage.js CHANGED
@@ -24,6 +24,9 @@ export async function stoOpGetAll() {
24
24
  const result = await browser.storage.local.get();
25
25
  return result;
26
26
  }
27
+ export async function stoOpClear() {
28
+ await browser.storage.local.clear();
29
+ }
27
30
  /**
28
31
  * Queries keys that start with a specific prefix.
29
32
  * @param prefix The prefix to filter keys.
@@ -1,4 +1,8 @@
1
1
  import { DownloadParams } from './browserDownload';
2
+ /**
3
+ * clear storage, then raload addon
4
+ */
5
+ export declare function serviceResetAddon(): Promise<void>;
2
6
  /**
3
7
  * Service to handle download operations.
4
8
  * Attempts a full download with filename; if it fails, retries with downlink only.
@@ -1 +1 @@
1
- {"version":3,"file":"serviceCommon.d.ts","sourceRoot":"","sources":["../src/serviceCommon.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAI5E;;;;GAIG;AACH,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAcrF"}
1
+ {"version":3,"file":"serviceCommon.d.ts","sourceRoot":"","sources":["../src/serviceCommon.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACf,MAAM,mBAAmB,CAAC;AAK3B;;GAEG;AACH,wBAAsB,iBAAiB,kBAGtC;AAED;;;;GAIG;AACH,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAcrF"}
@@ -1,5 +1,14 @@
1
1
  import { browserDownloadByDownlink } from './browserDownload';
2
2
  import { browserNotificationCreate } from './browserNotification';
3
+ import { stoOpClear } from "./opStorage";
4
+ import { browserRuntimeReload } from "./browserRuntime";
5
+ /**
6
+ * clear storage, then raload addon
7
+ */
8
+ export async function serviceResetAddon() {
9
+ await stoOpClear();
10
+ browserRuntimeReload();
11
+ }
3
12
  /**
4
13
  * Service to handle download operations.
5
14
  * Attempts a full download with filename; if it fails, retries with downlink only.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.0611.2203",
3
+ "version": "2026.0612.1204",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",