@vzn/vx 0.0.581 → 0.0.582
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/package.json +5 -5
- package/src/cli/lock.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vzn/vx",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.582",
|
|
4
4
|
"description": "The fastest task runner and build cache for JavaScript monorepos.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"node": ">=18"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
24
|
-
"@vzn/vx-linux-x64": "0.0.
|
|
25
|
-
"@vzn/vx-linux-arm64": "0.0.
|
|
26
|
-
"@vzn/vx-darwin-x64": "0.0.
|
|
27
|
-
"@vzn/vx-darwin-arm64": "0.0.
|
|
24
|
+
"@vzn/vx-linux-x64": "0.0.582",
|
|
25
|
+
"@vzn/vx-linux-arm64": "0.0.582",
|
|
26
|
+
"@vzn/vx-darwin-x64": "0.0.582",
|
|
27
|
+
"@vzn/vx-darwin-arm64": "0.0.582"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@anthropic-ai/sandbox-runtime": "^0.0.76"
|
package/src/cli/lock.ts
CHANGED
|
@@ -90,8 +90,8 @@ async function writeLock(root: string, metas: ConfiguredMeta[], bare: number): P
|
|
|
90
90
|
if (leaks.length > 0) {
|
|
91
91
|
process.stderr.write(
|
|
92
92
|
`vx lock: ${LOCKFILE_NAME} is committed, and these configs evaluated to a secret value:\n` +
|
|
93
|
-
leaks.map((l) => ` ${l}\n`).join('') +
|
|
94
|
-
`let the shell expand it (
|
|
93
|
+
leaks.map((l) => ` ${l.at}\n`).join('') +
|
|
94
|
+
`let the shell expand it ($${leaks[0]!.name} in the command, the name in exec.env.passThrough) instead of reading process.env in the config\n`,
|
|
95
95
|
)
|
|
96
96
|
return 1
|
|
97
97
|
}
|
|
@@ -111,7 +111,7 @@ async function writeLock(root: string, metas: ConfiguredMeta[], bare: number): P
|
|
|
111
111
|
* such a value would be published, and masking it would freeze a `***`
|
|
112
112
|
* that `--frozen` runs (L-42).
|
|
113
113
|
*/
|
|
114
|
-
function secretsIn(projects: Record<string, LockfileEntry>): string
|
|
114
|
+
function secretsIn(projects: Record<string, LockfileEntry>): Array<{ at: string; name: string }> {
|
|
115
115
|
const named = new Set<string>()
|
|
116
116
|
for (const entry of Object.values(projects)) {
|
|
117
117
|
for (const task of Object.values(entry.config.tasks ?? {}))
|
|
@@ -123,11 +123,11 @@ function secretsIn(projects: Record<string, LockfileEntry>): string[] {
|
|
|
123
123
|
secrets.push([value, name])
|
|
124
124
|
}
|
|
125
125
|
if (secrets.length === 0) return []
|
|
126
|
-
const found: string
|
|
126
|
+
const found: Array<{ at: string; name: string }> = []
|
|
127
127
|
const walk = (project: string, at: string, v: unknown): void => {
|
|
128
128
|
if (typeof v === 'string') {
|
|
129
129
|
for (const [value, name] of secrets)
|
|
130
|
-
if (v.includes(value)) found.push(`${project}: ${at} holds $${name}
|
|
130
|
+
if (v.includes(value)) found.push({ at: `${project}: ${at} holds $${name}`, name })
|
|
131
131
|
} else if (Array.isArray(v)) {
|
|
132
132
|
v.forEach((x, i) => walk(project, `${at}[${i}]`, x))
|
|
133
133
|
} else if (v !== null && typeof v === 'object') {
|