nixamp 0.7.16 → 0.7.17

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/server.js CHANGED
@@ -2966,7 +2966,18 @@ export async function serve(argv, version = "0.1.0") {
2966
2966
  }
2967
2967
  if (options.publish !== "no" && publishable_) {
2968
2968
  const listen = shareLink(publishable_.url, listenKey, false);
2969
- const wanted = options.publish === "yes"
2969
+ // Listed unless told otherwise.
2970
+ //
2971
+ // It used to ask, and a daemon has nobody to ask -- so a server started in
2972
+ // the background was never listed, which meant nobody could find it, which
2973
+ // meant it could not be paid for either. A stream that nobody can find is
2974
+ // not a stream. What is published is the listening link, never the one
2975
+ // that drives, and `--no-publish` is there for a server that should not be
2976
+ // public at all.
2977
+ //
2978
+ // Still asked when a person is at the terminal to answer, because that is
2979
+ // somebody who can say no.
2980
+ const wanted = options.publish === "yes" || !process.stdin.isTTY
2970
2981
  ? true
2971
2982
  : await confirm(`\n List this stream at ${DEFAULT_DIRECTORY}/directory so anyone can find it?\n It publishes ${listen} — listen only, not the controls.`);
2972
2983
  if (wanted) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nixamp",
3
- "version": "0.7.16",
3
+ "version": "0.7.17",
4
4
  "description": "It really whips the terminal's ass. A Winamp-shaped audio player for your terminal.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/server.ts CHANGED
@@ -3423,7 +3423,18 @@ export async function serve(argv: string[], version = "0.1.0"): Promise<void> {
3423
3423
 
3424
3424
  if (options.publish !== "no" && publishable_) {
3425
3425
  const listen = shareLink(publishable_.url, listenKey, false);
3426
- const wanted = options.publish === "yes"
3426
+ // Listed unless told otherwise.
3427
+ //
3428
+ // It used to ask, and a daemon has nobody to ask -- so a server started in
3429
+ // the background was never listed, which meant nobody could find it, which
3430
+ // meant it could not be paid for either. A stream that nobody can find is
3431
+ // not a stream. What is published is the listening link, never the one
3432
+ // that drives, and `--no-publish` is there for a server that should not be
3433
+ // public at all.
3434
+ //
3435
+ // Still asked when a person is at the terminal to answer, because that is
3436
+ // somebody who can say no.
3437
+ const wanted = options.publish === "yes" || !process.stdin.isTTY
3427
3438
  ? true
3428
3439
  : await confirm(`\n List this stream at ${DEFAULT_DIRECTORY}/directory so anyone can find it?\n It publishes ${listen} — listen only, not the controls.`);
3429
3440
 
package/web/dist/sw.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* nixamp service worker — generated, do not edit */
2
- const CACHE = "nixamp-1788962400373";
2
+ const CACHE = "nixamp-1788962802424";
3
3
  const PRECACHE = [
4
4
  "/",
5
5
  "/apple-touch-icon.png",