Skip to content

Commit 28beb2e

Browse files
committed
Remove SOCKET_CLI_DEBUG because it is set by the registry package
1 parent 4ec595e commit 28beb2e

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

src/constants.mts

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ type ENV = Remap<
7575
SOCKET_CLI_API_PROXY: string
7676
SOCKET_CLI_API_TOKEN: string
7777
SOCKET_CLI_CONFIG: string
78-
SOCKET_CLI_DEBUG: boolean
7978
SOCKET_CLI_GIT_USER_EMAIL: string
8079
SOCKET_CLI_GIT_USER_NAME: string
8180
SOCKET_CLI_GITHUB_TOKEN: string
@@ -265,7 +264,7 @@ const LAZY_ENV = () => {
265264
__proto__: null,
266265
// Lazily access registryConstants.ENV.
267266
...registryConstants.ENV,
268-
// Variable to disable using GitHub's workflow actions/cache.
267+
// Disable using GitHub's workflow actions/cache.
269268
// https://github.com/actions/cache
270269
DISABLE_GITHUB_CACHE: envAsBoolean(env['DISABLE_GITHUB_CACHE']),
271270
// The API URL. For example, https://api.github.com.
@@ -346,17 +345,17 @@ const LAZY_ENV = () => {
346345
// user-specific, non-roaming application data, like temporary files, cached
347346
// data, and program settings, that are specific to the current machine and user.
348347
LOCALAPPDATA: envAsString(env[LOCALAPPDATA]),
349-
// Variable to enable the module compile cache for the Node.js instance.
348+
// Enable the module compile cache for the Node.js instance.
350349
// https://nodejs.org/api/cli.html#node_compile_cachedir
351350
NODE_COMPILE_CACHE:
352351
// Lazily access constants.SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR.
353352
constants.SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR
354353
? // Lazily access constants.socketCachePath.
355354
constants.socketCachePath
356355
: '',
357-
// When set, the well known "root" CAs (like VeriSign) will be extended with
358-
// the extra certificates in file. The file should consist of one or more
359-
// trusted certificates in PEM format.
356+
// Well known "root" CAs (like VeriSign) will be extended with the extra
357+
// certificates in file. The file should consist of one or more trusted
358+
// certificates in PEM format.
360359
// https://nodejs.org/api/cli.html#node_extra_ca_certsfile
361360
NODE_EXTRA_CA_CERTS:
362361
envAsString(env['NODE_EXTRA_CA_CERTS']) ||
@@ -367,16 +366,16 @@ const LAZY_ENV = () => {
367366
// programs are located. When a command is run, the system searches these
368367
// directories to find the executable.
369368
PATH: envAsString(env['PATH']),
370-
// Variable to accepts risks of safe-npm and safe-npx run.
369+
// Accept risks of safe-npm and safe-npx run.
371370
SOCKET_CLI_ACCEPT_RISKS: envAsBoolean(env[SOCKET_CLI_ACCEPT_RISKS]),
372-
// Variable to change the base URL for all API-calls.
371+
// Change the base URL for all API-calls.
373372
// https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development
374373
SOCKET_CLI_API_BASE_URL:
375374
envAsString(env['SOCKET_CLI_API_BASE_URL']) ||
376375
envAsString(env['SOCKET_SECURITY_API_BASE_URL']) ||
377376
getConfigValueOrUndef('apiBaseUrl') ||
378377
'https://api.socket.dev/v0/',
379-
// Variable to set the proxy all requests are routed through.
378+
// Set the proxy all requests are routed through.
380379
// https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development
381380
SOCKET_CLI_API_PROXY:
382381
envAsString(env['SOCKET_CLI_API_PROXY']) ||
@@ -387,17 +386,15 @@ const LAZY_ENV = () => {
387386
envAsString(env['https_proxy']) ||
388387
envAsString(env['HTTP_PROXY']) ||
389388
envAsString(env['http_proxy']),
390-
// Variable to set the Socket API token.
389+
// Set the Socket API token.
391390
// https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables
392391
SOCKET_CLI_API_TOKEN:
393392
envAsString(env['SOCKET_CLI_API_TOKEN']) ||
394393
envAsString(env['SOCKET_CLI_API_KEY']) ||
395394
envAsString(env['SOCKET_SECURITY_API_TOKEN']) ||
396395
envAsString(env['SOCKET_SECURITY_API_KEY']),
397-
// Variable containing a JSON stringified Socket configuration object.
396+
// A JSON stringified Socket configuration object.
398397
SOCKET_CLI_CONFIG: envAsString(env['SOCKET_CLI_CONFIG']),
399-
// Variable to help debug Socket CLI.
400-
SOCKET_CLI_DEBUG: envAsBoolean(env['SOCKET_CLI_DEBUG']),
401398
// The git config user.email used by Socket CLI.
402399
SOCKET_CLI_GIT_USER_EMAIL:
403400
envAsString(env['SOCKET_CLI_GIT_USER_EMAIL']) ||
@@ -415,16 +412,16 @@ const LAZY_ENV = () => {
415412
envAsString(env['SOCKET_CLI_GITHUB_TOKEN']) ||
416413
envAsString(env['SOCKET_SECURITY_GITHUB_PAT']) ||
417414
GITHUB_TOKEN,
418-
// Variable to make the default API token `undefined`.
415+
// Make the default API token `undefined`.
419416
SOCKET_CLI_NO_API_TOKEN: envAsBoolean(env['SOCKET_CLI_NO_API_TOKEN']),
420417
// The absolute location of the npm bin file.
421418
SOCKET_CLI_NPM_PATH: envAsString(env['SOCKET_CLI_NPM_PATH']),
422-
// Variable to specify the Socket organization slug.
419+
// Specify the Socket organization slug.
423420
SOCKET_CLI_ORG_SLUG:
424421
envAsString(env['SOCKET_CLI_ORG_SLUG']) ||
425422
// Coana CLI accepts the SOCKET_ORG_SLUG environment variable.
426423
envAsString(env['SOCKET_ORG_SLUG']),
427-
// Variable to view all risks of safe-npm and safe-npx run.
424+
// View all risks of safe-npm and safe-npx run.
428425
SOCKET_CLI_VIEW_ALL_RISKS: envAsBoolean(env[SOCKET_CLI_VIEW_ALL_RISKS]),
429426
// Specifies the type of terminal or terminal emulator being used by the process.
430427
TERM: envAsString(env['TERM']),
@@ -626,7 +623,7 @@ const lazyShadowNpmInjectPath = () =>
626623
path.join(constants.distPath, `${SHADOW_NPM_INJECT}.js`)
627624

628625
const lazySocketAppDataPath = (): string | undefined => {
629-
// Get the OS app data folder:
626+
// Get the OS app data directory:
630627
// - Win: %LOCALAPPDATA% or fail?
631628
// - Mac: %XDG_DATA_HOME% or fallback to "~/Library/Application Support/"
632629
// - Linux: %XDG_DATA_HOME% or fallback to "~/.local/share/"

0 commit comments

Comments
 (0)