@purpleproser/soundboard-downloader-cli 1.2.3 → 1.3.0
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/.github/workflows/test.yml +4 -2
- package/CHANGELOG.md +7 -0
- package/dist/main.js +7 -6
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/vite.config.js +6 -0
|
@@ -14,11 +14,13 @@ jobs:
|
|
|
14
14
|
|
|
15
15
|
- uses: actions/setup-node@v4
|
|
16
16
|
with:
|
|
17
|
-
node-version:
|
|
17
|
+
node-version: 24
|
|
18
18
|
cache: "npm"
|
|
19
19
|
|
|
20
20
|
- name: Install dependencies
|
|
21
21
|
run: npm install
|
|
22
22
|
|
|
23
23
|
- name: Run tests
|
|
24
|
-
run: npm test
|
|
24
|
+
run: npm test -- --reporter=verbose
|
|
25
|
+
env:
|
|
26
|
+
NODE_OPTIONS: --max-old-space-size=4096
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
This changelog is automatically generated by [release-please](https://github.com/google-github-actions/release-please-action).
|
|
4
4
|
|
|
5
|
+
## [1.3.0](https://github.com/blacksagres/soundboard-downloader-cli/compare/v1.2.3...v1.3.0) (2026-02-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* show total number of sounds found ([6b661df](https://github.com/blacksagres/soundboard-downloader-cli/commit/6b661dfd96f6e7a03289f7c7b153ca3dd345d6ab))
|
|
11
|
+
|
|
5
12
|
## [1.2.3](https://github.com/blacksagres/soundboard-downloader-cli/compare/v1.2.2...v1.2.3) (2026-02-20)
|
|
6
13
|
|
|
7
14
|
|
package/dist/main.js
CHANGED
|
@@ -8,7 +8,7 @@ const open_1 = require("open");
|
|
|
8
8
|
const file_downloader_service_1 = require("./service/file-downloader.service");
|
|
9
9
|
process.on("uncaughtException", (error) => {
|
|
10
10
|
if (error instanceof Error && error.name === "ExitPromptError") {
|
|
11
|
-
console.log("👋
|
|
11
|
+
console.log("👋 see ya!");
|
|
12
12
|
}
|
|
13
13
|
else {
|
|
14
14
|
// Rethrow unknown errors
|
|
@@ -17,7 +17,7 @@ process.on("uncaughtException", (error) => {
|
|
|
17
17
|
});
|
|
18
18
|
(async function () {
|
|
19
19
|
const answer = await (0, prompts_1.input)({
|
|
20
|
-
message: "What sound effects are you looking for?",
|
|
20
|
+
message: "🔍 What sound effects are you looking for?",
|
|
21
21
|
required: true,
|
|
22
22
|
default: "wilhelm scream",
|
|
23
23
|
});
|
|
@@ -28,8 +28,9 @@ process.on("uncaughtException", (error) => {
|
|
|
28
28
|
}).start();
|
|
29
29
|
const sounds = await (0, my_instants_service_1.getSoundNodes)(answer);
|
|
30
30
|
spinner.stop();
|
|
31
|
+
console.log(`🎉 Found ${sounds.length} sound${sounds.length !== 1 ? 's' : ''}!`);
|
|
31
32
|
const selection = await (0, prompts_1.select)({
|
|
32
|
-
message: "Which one to download? (use the keyboard arrows to navigate, search for something directly)",
|
|
33
|
+
message: "🎵 Which one to download? (use the keyboard arrows to navigate, search for something directly)",
|
|
33
34
|
pageSize: 30,
|
|
34
35
|
choices: sounds.map((sound) => ({
|
|
35
36
|
name: sound.label,
|
|
@@ -42,15 +43,15 @@ process.on("uncaughtException", (error) => {
|
|
|
42
43
|
}
|
|
43
44
|
const actions = [
|
|
44
45
|
{
|
|
45
|
-
name: "Download",
|
|
46
|
+
name: "💾 Download",
|
|
46
47
|
value: "action:download",
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
|
-
name: "Play",
|
|
50
|
+
name: "▶️ Play",
|
|
50
51
|
value: "action:play",
|
|
51
52
|
},
|
|
52
53
|
{
|
|
53
|
-
name: "Show download URL (you can pipe this to other commands)",
|
|
54
|
+
name: "🔗 Show download URL (you can pipe this to other commands)",
|
|
54
55
|
value: "action:show-url",
|
|
55
56
|
},
|
|
56
57
|
];
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AAEA,uEAA8D;AAC9D,6BAAsB;AACtB,+CAAkD;AAClD,+BAAwB;AACxB,+EAAiE;AAEjE,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE;IACxC,IAAI,KAAK,YAAY,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB,EAAE,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AAEA,uEAA8D;AAC9D,6BAAsB;AACtB,+CAAkD;AAClD,+BAAwB;AACxB,+EAAiE;AAEjE,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE;IACxC,IAAI,KAAK,YAAY,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB,EAAE,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC;SAAM,CAAC;QACN,yBAAyB;QACzB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,CAAC,KAAK;IACJ,MAAM,MAAM,GAAG,MAAM,IAAA,eAAK,EAAC;QACzB,OAAO,EAAE,4CAA4C;QACrD,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,gBAAgB;KAC1B,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,IAAA,aAAG,EAAC;QAClB,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,cAAc;KACxB,CAAC,CAAC,KAAK,EAAE,CAAC;IAEX,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAa,EAAC,MAAM,CAAC,CAAC;IAE3C,OAAO,CAAC,IAAI,EAAE,CAAC;IAEf,OAAO,CAAC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AK,iBAAiB,EAAE,CAAC;QACjC,MAAM,eAAe,GAAG,IAAA,aAAG,EAAC;YAC1B,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,gBAAgB;SAC1B,CAAC,CAAC,KAAK,EAAE,CAAC;QAEX,MAAM,gBAAgB,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QAEtD,IAAI,CAAC,gBAAgB,EAAE,CAAC;YACtB,MAAM,IAAI,cAAc,CACtB,2CAA2C,WAAW,kCAAkC,CACzF,CAAC;QACJ,CAAC;QAED,iDAAiD;QACjD,IAAA,sCAAY,EAAC,WAAW,EAAE;YACxB,WAAW,EAAE,gBAAgB;YAC7B,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE;YACtC,QAAQ,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,EAAE,CAAC"}
|
package/package.json
CHANGED
package/vite.config.js
CHANGED
|
@@ -3,5 +3,11 @@ import { defineConfig } from "vitest/config";
|
|
|
3
3
|
export default defineConfig({
|
|
4
4
|
test: {
|
|
5
5
|
exclude: ["**/node_modules/**", "**/dist/**", "./temp/**"],
|
|
6
|
+
// Increase timeout for network tests
|
|
7
|
+
testTimeout: 30000,
|
|
8
|
+
// Retry failed tests (helpful for flaky network tests)
|
|
9
|
+
retries: 1,
|
|
10
|
+
// Show more detailed output
|
|
11
|
+
verbose: true,
|
|
6
12
|
},
|
|
7
13
|
});
|