@@ -75,7 +75,6 @@ type ENV = Remap<
75
75
SOCKET_CLI_API_PROXY : string
76
76
SOCKET_CLI_API_TOKEN : string
77
77
SOCKET_CLI_CONFIG : string
78
- SOCKET_CLI_DEBUG : boolean
79
78
SOCKET_CLI_GIT_USER_EMAIL : string
80
79
SOCKET_CLI_GIT_USER_NAME : string
81
80
SOCKET_CLI_GITHUB_TOKEN : string
@@ -265,7 +264,7 @@ const LAZY_ENV = () => {
265
264
__proto__ : null ,
266
265
// Lazily access registryConstants.ENV.
267
266
...registryConstants . ENV ,
268
- // Variable to disable using GitHub's workflow actions/cache.
267
+ // Disable using GitHub's workflow actions/cache.
269
268
// https://github.com/actions/cache
270
269
DISABLE_GITHUB_CACHE : envAsBoolean ( env [ 'DISABLE_GITHUB_CACHE' ] ) ,
271
270
// The API URL. For example, https://api.github.com.
@@ -346,17 +345,17 @@ const LAZY_ENV = () => {
346
345
// user-specific, non-roaming application data, like temporary files, cached
347
346
// data, and program settings, that are specific to the current machine and user.
348
347
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.
350
349
// https://nodejs.org/api/cli.html#node_compile_cachedir
351
350
NODE_COMPILE_CACHE :
352
351
// Lazily access constants.SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR.
353
352
constants . SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR
354
353
? // Lazily access constants.socketCachePath.
355
354
constants . socketCachePath
356
355
: '' ,
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.
360
359
// https://nodejs.org/api/cli.html#node_extra_ca_certsfile
361
360
NODE_EXTRA_CA_CERTS :
362
361
envAsString ( env [ 'NODE_EXTRA_CA_CERTS' ] ) ||
@@ -367,16 +366,16 @@ const LAZY_ENV = () => {
367
366
// programs are located. When a command is run, the system searches these
368
367
// directories to find the executable.
369
368
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.
371
370
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.
373
372
// https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development
374
373
SOCKET_CLI_API_BASE_URL :
375
374
envAsString ( env [ 'SOCKET_CLI_API_BASE_URL' ] ) ||
376
375
envAsString ( env [ 'SOCKET_SECURITY_API_BASE_URL' ] ) ||
377
376
getConfigValueOrUndef ( 'apiBaseUrl' ) ||
378
377
'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.
380
379
// https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables-for-development
381
380
SOCKET_CLI_API_PROXY :
382
381
envAsString ( env [ 'SOCKET_CLI_API_PROXY' ] ) ||
@@ -387,17 +386,15 @@ const LAZY_ENV = () => {
387
386
envAsString ( env [ 'https_proxy' ] ) ||
388
387
envAsString ( env [ 'HTTP_PROXY' ] ) ||
389
388
envAsString ( env [ 'http_proxy' ] ) ,
390
- // Variable to set the Socket API token.
389
+ // Set the Socket API token.
391
390
// https://github.com/SocketDev/socket-cli?tab=readme-ov-file#environment-variables
392
391
SOCKET_CLI_API_TOKEN :
393
392
envAsString ( env [ 'SOCKET_CLI_API_TOKEN' ] ) ||
394
393
envAsString ( env [ 'SOCKET_CLI_API_KEY' ] ) ||
395
394
envAsString ( env [ 'SOCKET_SECURITY_API_TOKEN' ] ) ||
396
395
envAsString ( env [ 'SOCKET_SECURITY_API_KEY' ] ) ,
397
- // Variable containing a JSON stringified Socket configuration object.
396
+ // A JSON stringified Socket configuration object.
398
397
SOCKET_CLI_CONFIG : envAsString ( env [ 'SOCKET_CLI_CONFIG' ] ) ,
399
- // Variable to help debug Socket CLI.
400
- SOCKET_CLI_DEBUG : envAsBoolean ( env [ 'SOCKET_CLI_DEBUG' ] ) ,
401
398
// The git config user.email used by Socket CLI.
402
399
SOCKET_CLI_GIT_USER_EMAIL :
403
400
envAsString ( env [ 'SOCKET_CLI_GIT_USER_EMAIL' ] ) ||
@@ -415,16 +412,16 @@ const LAZY_ENV = () => {
415
412
envAsString ( env [ 'SOCKET_CLI_GITHUB_TOKEN' ] ) ||
416
413
envAsString ( env [ 'SOCKET_SECURITY_GITHUB_PAT' ] ) ||
417
414
GITHUB_TOKEN ,
418
- // Variable to make the default API token `undefined`.
415
+ // Make the default API token `undefined`.
419
416
SOCKET_CLI_NO_API_TOKEN : envAsBoolean ( env [ 'SOCKET_CLI_NO_API_TOKEN' ] ) ,
420
417
// The absolute location of the npm bin file.
421
418
SOCKET_CLI_NPM_PATH : envAsString ( env [ 'SOCKET_CLI_NPM_PATH' ] ) ,
422
- // Variable to specify the Socket organization slug.
419
+ // Specify the Socket organization slug.
423
420
SOCKET_CLI_ORG_SLUG :
424
421
envAsString ( env [ 'SOCKET_CLI_ORG_SLUG' ] ) ||
425
422
// Coana CLI accepts the SOCKET_ORG_SLUG environment variable.
426
423
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.
428
425
SOCKET_CLI_VIEW_ALL_RISKS : envAsBoolean ( env [ SOCKET_CLI_VIEW_ALL_RISKS ] ) ,
429
426
// Specifies the type of terminal or terminal emulator being used by the process.
430
427
TERM : envAsString ( env [ 'TERM' ] ) ,
@@ -626,7 +623,7 @@ const lazyShadowNpmInjectPath = () =>
626
623
path . join ( constants . distPath , `${ SHADOW_NPM_INJECT } .js` )
627
624
628
625
const lazySocketAppDataPath = ( ) : string | undefined => {
629
- // Get the OS app data folder :
626
+ // Get the OS app data directory :
630
627
// - Win: %LOCALAPPDATA% or fail?
631
628
// - Mac: %XDG_DATA_HOME% or fallback to "~/Library/Application Support/"
632
629
// - Linux: %XDG_DATA_HOME% or fallback to "~/.local/share/"
0 commit comments