Skip to content

Commit 1e89d15

Browse files
committed
Update deps
1 parent 848284c commit 1e89d15

File tree

3 files changed

+54
-58
lines changed

3 files changed

+54
-58
lines changed

package-lock.json

Lines changed: 47 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@
8585
"@babel/runtime": "7.28.2",
8686
"@biomejs/biome": "2.1.4",
8787
"@coana-tech/cli": "14.11.3",
88-
"@cyclonedx/cdxgen": "11.4.4",
88+
"@cyclonedx/cdxgen": "11.5.0",
8989
"@dotenvx/dotenvx": "1.48.4",
90-
"@eslint/compat": "1.3.1",
90+
"@eslint/compat": "1.3.2",
9191
"@eslint/js": "9.32.0",
9292
"@npmcli/arborist": "9.1.3",
9393
"@npmcli/config": "10.3.1",
@@ -111,8 +111,8 @@
111111
"@socketregistry/is-interactive": "1.0.6",
112112
"@socketregistry/packageurl-js": "1.0.8",
113113
"@socketsecurity/config": "3.0.1",
114-
"@socketsecurity/registry": "1.0.263",
115-
"@socketsecurity/sdk": "1.4.70",
114+
"@socketsecurity/registry": "1.0.265",
115+
"@socketsecurity/sdk": "1.4.71",
116116
"@types/blessed": "0.1.25",
117117
"@types/cmd-shim": "5.0.2",
118118
"@types/js-yaml": "4.0.9",

src/utils/meow-with-subcommands.mts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { logger } from '@socketsecurity/registry/lib/logger'
77
import { hasOwn, toSortedObject } from '@socketsecurity/registry/lib/objects'
88
import { normalizePath } from '@socketsecurity/registry/lib/path'
99
import { naturalCompare } from '@socketsecurity/registry/lib/sorts'
10-
import { indentString } from '@socketsecurity/registry/lib/strings'
10+
import { indentString, trimNewlines } from '@socketsecurity/registry/lib/strings'
1111

1212
import {
1313
getConfigValueOrUndef,
@@ -74,10 +74,6 @@ function description(command: CliSubcommand | undefined): string {
7474
return indentString(str, HELP_PAD_NAME).trimStart()
7575
}
7676

77-
function trimNewlines(str: string): string {
78-
return str.replace(/^\n+|\n+$/g, '')
79-
}
80-
8177
// For debugging. Whenever you call meowOrExit it will store the command here
8278
// This module exports a getter that returns the current value.
8379
let lastSeenCommand = ''
@@ -183,7 +179,7 @@ export async function meowWithSubcommands(
183179
}
184180

185181
// This is basically a dry-run parse of cli args and flags. We use this to
186-
// determine config overrides and expected o mode.
182+
// determine config overrides and expected output mode.
187183
const cli1 = meow({
188184
argv,
189185
importMeta,
@@ -240,7 +236,7 @@ export async function meowWithSubcommands(
240236
return
241237
}
242238

243-
// If we got at least some args, then lets find o if we can find a command.
239+
// If we have got some args, then lets find out if we can find a command.
244240
if (commandOrAliasName) {
245241
const alias = aliases[commandOrAliasName]
246242
// First: Resolve argv data from alias if its an alias that's been given.

0 commit comments

Comments
 (0)