@vacantthinker/firefox-addon-framework-easy 2026.623.1343 → 2026.624.946
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/README.md +0 -3
- package/dist/browserDownload.d.ts +1 -1
- package/dist/browserDownload.d.ts.map +1 -1
- package/dist/browserDownload.js +3 -3
- package/dist/serviceGet.d.ts +4 -2
- package/dist/serviceGet.d.ts.map +1 -1
- package/dist/serviceGet.js +16 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,7 +12,4 @@ According to the terms of the AGPL-3.0, the source code for this network service
|
|
|
12
12
|
|
|
13
13
|
You can download, clone, or view the complete source code for this application here: [Insert your GitHub/GitLab URL].
|
|
14
14
|
|
|
15
|
-
## API Reference (Auto-Generated)
|
|
16
|
-
|
|
17
|
-
Below is a list of all public functions found inside the `src` directory:
|
|
18
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browserDownload.d.ts","sourceRoot":"","sources":["../src/browserDownload.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,
|
|
1
|
+
{"version":3,"file":"browserDownload.d.ts","sourceRoot":"","sources":["../src/browserDownload.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAYvC"}
|
package/dist/browserDownload.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export async function browserDownloadByDownlink(params) {
|
|
2
|
-
const {
|
|
3
|
-
if (
|
|
2
|
+
const { downlink, filename, } = params;
|
|
3
|
+
if (downlink == undefined)
|
|
4
4
|
return;
|
|
5
5
|
const options = {
|
|
6
|
-
url
|
|
6
|
+
url: downlink,
|
|
7
7
|
};
|
|
8
8
|
if (filename) {
|
|
9
9
|
options.filename = filename;
|
package/dist/serviceGet.d.ts
CHANGED
|
@@ -12,10 +12,12 @@ interface URLBase {
|
|
|
12
12
|
export declare function serviceParseURLBase(targetUrl: string): URLBase | undefined;
|
|
13
13
|
export declare function serviceParseURL(targetUrl: string): URL | undefined;
|
|
14
14
|
/**
|
|
15
|
-
* Generates a timestamp string in the format:
|
|
16
|
-
* e.g., 2026_6_11_10h_30m_15s_450
|
|
15
|
+
* Generates a timestamp string in the format:
|
|
16
|
+
* YYYY_M_D_Hh_Mm_Ss_ms e.g., 2026_6_11_10h_30m_15s_450
|
|
17
17
|
* @returns The formatted timestamp string.
|
|
18
18
|
*/
|
|
19
19
|
export declare function serviceGetCurrentDateYYYYMMDDHHMMSS(): string;
|
|
20
|
+
export declare function serviceTitleToFilenameLimit(title: string): string | undefined;
|
|
21
|
+
export declare function serviceAppendExtMP4(title: string): string | undefined;
|
|
20
22
|
export {};
|
|
21
23
|
//# sourceMappingURL=serviceGet.d.ts.map
|
package/dist/serviceGet.d.ts.map
CHANGED
|
@@ -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"}
|
|
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;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,sBAOxD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,sBAGhD"}
|
package/dist/serviceGet.js
CHANGED
|
@@ -29,8 +29,8 @@ export function serviceParseURL(targetUrl) {
|
|
|
29
29
|
return new URL(targetUrl);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
* Generates a timestamp string in the format:
|
|
33
|
-
* e.g., 2026_6_11_10h_30m_15s_450
|
|
32
|
+
* Generates a timestamp string in the format:
|
|
33
|
+
* YYYY_M_D_Hh_Mm_Ss_ms e.g., 2026_6_11_10h_30m_15s_450
|
|
34
34
|
* @returns The formatted timestamp string.
|
|
35
35
|
*/
|
|
36
36
|
export function serviceGetCurrentDateYYYYMMDDHHMMSS() {
|
|
@@ -44,3 +44,17 @@ export function serviceGetCurrentDateYYYYMMDDHHMMSS() {
|
|
|
44
44
|
const milliseconds = date.getMilliseconds();
|
|
45
45
|
return `${year}_${month}_${day}_${hours}h_${minutes}m_${seconds}s_${milliseconds}`;
|
|
46
46
|
}
|
|
47
|
+
export function serviceTitleToFilenameLimit(title) {
|
|
48
|
+
if (title == undefined)
|
|
49
|
+
return;
|
|
50
|
+
let num50 = 50;
|
|
51
|
+
const titleLimit = title.length > num50
|
|
52
|
+
? title.substring(0, num50)
|
|
53
|
+
: title;
|
|
54
|
+
return serviceAppendExtMP4(titleLimit);
|
|
55
|
+
}
|
|
56
|
+
export function serviceAppendExtMP4(title) {
|
|
57
|
+
if (title == undefined)
|
|
58
|
+
return;
|
|
59
|
+
return `${title}.mp4`;
|
|
60
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vacantthinker/firefox-addon-framework-easy",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.0624.0946",
|
|
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_ts": "tsc"
|
|
17
|
+
"build_ts": "rm -rf dist && npx tsc"
|
|
18
18
|
},
|
|
19
19
|
"author": "VacantThinker",
|
|
20
20
|
"license": "AGPL-3.0-only",
|