@vacantthinker/firefox-addon-framework-easy 2026.624.1000 → 2026.624.1014

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.
@@ -21,7 +21,7 @@ export declare function serviceGetCurrentDateYYYYMMDDHHMMSS(): string;
21
21
  * Truncates a title to a safe length and appends the .mp4
22
22
  * extension.
23
23
  */
24
- export declare function serviceTitleToFilenameLimit(title: string | undefined): string | undefined;
24
+ export declare function serviceTitleToFilenameLimit(title: string | undefined, filenameLength?: number): string | undefined;
25
25
  /**
26
26
  * Appends the .mp4 extension to a given string.
27
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"serviceGet.d.ts","sourceRoot":"","sources":["../src/serviceGet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,sBAKjD;AAED,UAAU,OAAO;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,eAAe,CAAC;CAC/B;AAED,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CASxC;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,mBAGhD;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,IAAI,MAAM,CAY5D;AAGD;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAQ/C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAQ/C"}
1
+ {"version":3,"file":"serviceGet.d.ts","sourceRoot":"","sources":["../src/serviceGet.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,sBAKjD;AAED,UAAU,OAAO;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,eAAe,CAAC;CAC/B;AAED,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CASxC;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,mBAGhD;AAED;;;;GAIG;AACH,wBAAgB,mCAAmC,IAAI,MAAM,CAY5D;AAGD;;;GAGG;AACH,wBAAgB,2BAA2B,CACzC,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,cAAc,GAAE,MAAW,GAC1B,MAAM,GAAG,SAAS,CAOpB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAQ/C"}
@@ -48,13 +48,12 @@ export function serviceGetCurrentDateYYYYMMDDHHMMSS() {
48
48
  * Truncates a title to a safe length and appends the .mp4
49
49
  * extension.
50
50
  */
51
- export function serviceTitleToFilenameLimit(title) {
51
+ export function serviceTitleToFilenameLimit(title, filenameLength = 50) {
52
52
  if (!title)
53
53
  return undefined;
54
- const MAX_FILENAME_LENGTH = 50;
55
54
  // .slice() safely handles strings shorter than
56
55
  // MAX_FILENAME_LENGTH without throwing errors
57
- const truncatedTitle = title.slice(0, MAX_FILENAME_LENGTH);
56
+ const truncatedTitle = title.slice(0, filenameLength);
58
57
  return serviceAppendExtMP4(truncatedTitle);
59
58
  }
60
59
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vacantthinker/firefox-addon-framework-easy",
3
- "version": "2026.0624.1000",
3
+ "version": "2026.0624.1014",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",