@vacantthinker/firefox-addon-framework-easy 2026.614.1632 → 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 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;
@@ -1 +1 @@
1
- {"version":3,"file":"BaseORM.d.ts","sourceRoot":"","sources":["../src/BaseORM.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,8BAAsB,OAAO,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACzD,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,CAAW;IAkB3B;;;OAGG;cACa,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC;IAQjC;;;;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"}
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 directly
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));
@@ -4,7 +4,7 @@ interface VideoLinkInfoYTB {
4
4
  }
5
5
  export interface PlaylistLinkInfoYTB {
6
6
  playlistId: string;
7
- playlistVideolink: string;
7
+ playlistLink: string;
8
8
  }
9
9
  export interface PlaylistInfoYTB extends PlaylistLinkInfoYTB {
10
10
  playlistTitle: string;
@@ -24,6 +24,6 @@ export declare function servicePureVideolinkYTB(videolinkOrigin: string): VideoL
24
24
  /**
25
25
  * Extracts playlist ID and creates a clean YouTube playlist URL.
26
26
  */
27
- export declare function servicePurePlaylistVideolinkYTB(videolinkOrigin: string): PlaylistLinkInfoYTB | null;
28
- export {};
27
+ declare function servicePurePlaylistVideolinkYTB(playlistLinkOrigin: string): PlaylistLinkInfoYTB | null;
28
+ export default servicePurePlaylistVideolinkYTB;
29
29
  //# sourceMappingURL=serviceOperationYTB.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serviceOperationYTB.d.ts","sourceRoot":"","sources":["../src/serviceOperationYTB.ts"],"names":[],"mappings":"AAAA,UAAU,gBAAgB;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IACxD,aAAa,EAAE,MAAM,CAAC;CACzB;AAGD,MAAM,MAAM,eAAe,GACrB,eAAe,GACf,WAAW,GACX,WAAW,GACX,WAAW,CAAA;AAEjB,wBAAgB,qBAAqB,CACjC,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,eAAe,GAC9B,MAAM,CAER;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAmCxF;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,eAAe,EAAE,MAAM,GAAG,mBAAmB,GAAG,IAAI,CAoBnG"}
1
+ {"version":3,"file":"serviceOperationYTB.d.ts","sourceRoot":"","sources":["../src/serviceOperationYTB.ts"],"names":[],"mappings":"AAAA,UAAU,gBAAgB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IAC1D,aAAa,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,MAAM,eAAe,GACvB,eAAe,GACf,WAAW,GACX,WAAW,GACX,WAAW,CAAA;AAEf,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,eAAe,GAC5B,MAAM,CAER;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,gBAAgB,GAAG,IAAI,CAmCxF;AAED;;GAEG;AACH,iBAAS,+BAA+B,CAAC,kBAAkB,EAAE,MAAM,GACjE,mBAAmB,GAAG,IAAI,CAqB3B;AAED,eAAe,+BAA+B,CAAA"}
@@ -46,18 +46,18 @@ export function servicePureVideolinkYTB(videolinkOrigin) {
46
46
  /**
47
47
  * Extracts playlist ID and creates a clean YouTube playlist URL.
48
48
  */
49
- export function servicePurePlaylistVideolinkYTB(videolinkOrigin) {
50
- if (!videolinkOrigin) {
49
+ function servicePurePlaylistVideolinkYTB(playlistLinkOrigin) {
50
+ if (!playlistLinkOrigin) {
51
51
  return null;
52
52
  }
53
53
  try {
54
- const url = new URL(videolinkOrigin);
54
+ const url = new URL(playlistLinkOrigin);
55
55
  const playlistId = url.searchParams.get('list');
56
56
  if (!playlistId) {
57
57
  return null;
58
58
  }
59
59
  return {
60
- playlistVideolink: `https://www.youtube.com/playlist?list=${playlistId}`,
60
+ playlistLink: `https://www.youtube.com/playlist?list=${playlistId}`,
61
61
  playlistId,
62
62
  };
63
63
  }
@@ -65,3 +65,4 @@ export function servicePurePlaylistVideolinkYTB(videolinkOrigin) {
65
65
  return null; // Invalid URL
66
66
  }
67
67
  }
68
+ export default servicePurePlaylistVideolinkYTB;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.0614.1632",
3
+ "version": "2026.0615.1133",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "scripts": {
16
16
  "install_package": "npm install",
17
- "build_tsc": "tsc"
17
+ "build_ts": "tsc"
18
18
  },
19
19
  "author": "VacantThinker",
20
20
  "license": "AGPL-3.0-only",