@vacantthinker/firefox-addon-framework-easy 2026.614.2034 → 2026.615.1133
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/dist/BaseORM.d.ts +1 -1
- package/dist/BaseORM.d.ts.map +1 -1
- package/dist/BaseORM.js +4 -1
- package/package.json +1 -1
package/dist/BaseORM.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Provides encapsulated CRUD operations for JSON-serializable Key-Value pairs.
|
|
4
4
|
* Uses Generics (T) to ensure type safety for the stored object structure.
|
|
5
5
|
*/
|
|
6
|
-
export declare abstract class BaseORM<T extends Record<string, any
|
|
6
|
+
export declare abstract class BaseORM<T extends Record<string, any> | any[]> {
|
|
7
7
|
protected readonly id: string;
|
|
8
8
|
protected readonly storageKey: string;
|
|
9
9
|
private readonly defaultValue;
|
package/dist/BaseORM.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseORM.d.ts","sourceRoot":"","sources":["../src/BaseORM.ts"],"names":[],"mappings":"AAOA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"BaseORM.d.ts","sourceRoot":"","sources":["../src/BaseORM.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AAGH,8BAAsB,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE;IACjE,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IACtC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAI;IAGjC,OAAO,CAAC,WAAW,CAA8B;IAEjD,SAAS,aACP,MAAM,EAAE,MAAM,EACd,EAAE,EAAE,MAAM,EACV,YAAY,GAAE,CAAsB;IAkBtC;;;OAGG;cACa,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC;IASjC;;;;OAIG;cACa,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAO5C;;;OAGG;cACa,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC;IAMpC;;;OAGG;YACW,QAAQ;YAgBR,MAAM;YAIN,iBAAiB;CAMhC"}
|
package/dist/BaseORM.js
CHANGED
|
@@ -4,6 +4,8 @@ import { stoOpCheck, stoOpGet, stoOpRem, stoOpSet } from './opStorage';
|
|
|
4
4
|
* Provides encapsulated CRUD operations for JSON-serializable Key-Value pairs.
|
|
5
5
|
* Uses Generics (T) to ensure type safety for the stored object structure.
|
|
6
6
|
*/
|
|
7
|
+
// FIX: Expand constraint to 'any[]' so TabMessageStorageData (an array of
|
|
8
|
+
// tuples) is permitted.
|
|
7
9
|
export class BaseORM {
|
|
8
10
|
id;
|
|
9
11
|
storageKey;
|
|
@@ -30,7 +32,8 @@ export class BaseORM {
|
|
|
30
32
|
*/
|
|
31
33
|
async get() {
|
|
32
34
|
if (!(await this.exists())) {
|
|
33
|
-
// Calls the lock-protected initialization instead of initDefaultObject
|
|
35
|
+
// Calls the lock-protected initialization instead of initDefaultObject
|
|
36
|
+
// directly
|
|
34
37
|
await this.safeInit();
|
|
35
38
|
}
|
|
36
39
|
return (await stoOpGet(this.storageKey));
|