@mushi-mushi/cli 0.5.2 → 0.5.3
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/CODE_OF_CONDUCT.md +1 -1
- package/SECURITY.md +1 -1
- package/dist/chunk-LHDGWISV.js +6 -0
- package/dist/index.js +5 -2
- package/dist/init.js +5 -2
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-FE5YYKNI.js +0 -6
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -40,7 +40,7 @@ Examples of unacceptable behavior:
|
|
|
40
40
|
## Enforcement
|
|
41
41
|
|
|
42
42
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
43
|
-
reported to the project team at **
|
|
43
|
+
reported to the project team at **kensaurus@gmail.com**.
|
|
44
44
|
|
|
45
45
|
All complaints will be reviewed and investigated promptly and fairly.
|
|
46
46
|
|
package/SECURITY.md
CHANGED
|
@@ -19,7 +19,7 @@ If you discover a security vulnerability, please report it responsibly.
|
|
|
19
19
|
|
|
20
20
|
**Do NOT open a public GitHub issue.**
|
|
21
21
|
|
|
22
|
-
Instead, email: **
|
|
22
|
+
Instead, email: **kensaurus@gmail.com**
|
|
23
23
|
|
|
24
24
|
Include:
|
|
25
25
|
- Description of the vulnerability
|
package/dist/index.js
CHANGED
|
@@ -448,7 +448,7 @@ function getFrameworkFromPkg(pkg) {
|
|
|
448
448
|
}
|
|
449
449
|
|
|
450
450
|
// src/version.ts
|
|
451
|
-
var MUSHI_CLI_VERSION = true ? "0.5.
|
|
451
|
+
var MUSHI_CLI_VERSION = true ? "0.5.3" : "0.0.0-dev";
|
|
452
452
|
|
|
453
453
|
// src/init.ts
|
|
454
454
|
var ENV_FILES = [".env.local", ".env"];
|
|
@@ -565,8 +565,11 @@ async function promptText(opts) {
|
|
|
565
565
|
const value = await p.text({
|
|
566
566
|
message: opts.message,
|
|
567
567
|
placeholder: opts.placeholder,
|
|
568
|
+
// @clack/prompts v1 widened the validate input to `string | undefined`
|
|
569
|
+
// (the previous v0.x API guaranteed a string). Guard the empty case
|
|
570
|
+
// explicitly so the rest of the pipeline keeps its `string` invariant.
|
|
568
571
|
validate: (v) => {
|
|
569
|
-
const clean = sanitizeSecret(v);
|
|
572
|
+
const clean = sanitizeSecret(v ?? "");
|
|
570
573
|
if (clean.length === 0) return "Required";
|
|
571
574
|
return opts.validate ? opts.validate(clean) : void 0;
|
|
572
575
|
}
|
package/dist/init.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-ZZNVMBMG.js";
|
|
9
9
|
import {
|
|
10
10
|
MUSHI_CLI_VERSION
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LHDGWISV.js";
|
|
12
12
|
|
|
13
13
|
// src/init.ts
|
|
14
14
|
import * as p from "@clack/prompts";
|
|
@@ -325,8 +325,11 @@ async function promptText(opts) {
|
|
|
325
325
|
const value = await p.text({
|
|
326
326
|
message: opts.message,
|
|
327
327
|
placeholder: opts.placeholder,
|
|
328
|
+
// @clack/prompts v1 widened the validate input to `string | undefined`
|
|
329
|
+
// (the previous v0.x API guaranteed a string). Guard the empty case
|
|
330
|
+
// explicitly so the rest of the pipeline keeps its `string` invariant.
|
|
328
331
|
validate: (v) => {
|
|
329
|
-
const clean = sanitizeSecret(v);
|
|
332
|
+
const clean = sanitizeSecret(v ?? "");
|
|
330
333
|
if (clean.length === 0) return "Required";
|
|
331
334
|
return opts.validate ? opts.validate(clean) : void 0;
|
|
332
335
|
}
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mushi-mushi/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "CLI for Mushi Mushi — `mushi init` wizard installs the right SDK for your framework, plus report triage and pipeline health commands",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mushi": "./dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@clack/prompts": "^
|
|
10
|
+
"@clack/prompts": "^1.2.0",
|
|
11
11
|
"commander": "^14.0.3"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|