@@ -53,15 +53,15 @@ type ENV = Remap<
5353 GITHUB_REPOSITORY : string
5454 GITHUB_SERVER_URL : string
5555 GITHUB_TOKEN : string
56- INLINED_CYCLONEDX_CDXGEN_VERSION : string
56+ INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION : string
5757 INLINED_SOCKET_CLI_HOMEPAGE : string
5858 INLINED_SOCKET_CLI_LEGACY_BUILD : string
5959 INLINED_SOCKET_CLI_NAME : string
6060 INLINED_SOCKET_CLI_PUBLISHED_BUILD : string
6161 INLINED_SOCKET_CLI_SENTRY_BUILD : string
6262 INLINED_SOCKET_CLI_VERSION : string
6363 INLINED_SOCKET_CLI_VERSION_HASH : string
64- INLINED_SYNP_VERSION : string
64+ INLINED_SOCKET_CLI_SYNP_VERSION : string
6565 LOCALAPPDATA : string
6666 NODE_COMPILE_CACHE : string
6767 NODE_EXTRA_CA_CERTS : string
@@ -274,9 +274,9 @@ const LAZY_ENV = () => {
274274 // https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#about-the-github_token-secret
275275 GITHUB_TOKEN ,
276276 // Comp-time inlined @cyclonedx/cdxgen package version.
277- // The '@rollup/plugin-replace' will replace "process.env['INLINED_CYCLONEDX_CDXGEN_VERSION ']".
278- INLINED_CYCLONEDX_CDXGEN_VERSION : envAsString (
279- process . env [ 'INLINED_CYCLONEDX_CDXGEN_VERSION ' ] ,
277+ // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION ']".
278+ INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION : envAsString (
279+ process . env [ 'INLINED_SOCKET_CLI_CYCLONEDX_CDXGEN_VERSION ' ] ,
280280 ) ,
281281 // Comp-time inlined Socket package homepage.
282282 // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_HOMEPAGE']".
@@ -303,6 +303,11 @@ const LAZY_ENV = () => {
303303 INLINED_SOCKET_CLI_SENTRY_BUILD : envAsBoolean (
304304 process . env [ 'INLINED_SOCKET_CLI_SENTRY_BUILD' ] ,
305305 ) ,
306+ // Comp-time inlined synp package version.
307+ // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_SYNP_VERSION']".
308+ INLINED_SOCKET_CLI_SYNP_VERSION : envAsString (
309+ process . env [ 'INLINED_SOCKET_CLI_SYNP_VERSION' ] ,
310+ ) ,
306311 // Comp-time inlined Socket package version.
307312 // The '@rollup/plugin-replace' will replace "process.env['INLINED_SOCKET_CLI_VERSION']".
308313 INLINED_SOCKET_CLI_VERSION : envAsString (
@@ -313,9 +318,6 @@ const LAZY_ENV = () => {
313318 INLINED_SOCKET_CLI_VERSION_HASH : envAsString (
314319 process . env [ 'INLINED_SOCKET_CLI_VERSION_HASH' ] ,
315320 ) ,
316- // Comp-time inlined synp package version.
317- // The '@rollup/plugin-replace' will replace "process.env['INLINED_SYNP_VERSION']".
318- INLINED_SYNP_VERSION : envAsString ( process . env [ 'INLINED_SYNP_VERSION' ] ) ,
319321 // The location of the %localappdata% folder on Windows used to store user-specific,
320322 // non-roaming application data, like temporary files, cached data, and program
321323 // settings, that are specific to the current machine and user.
@@ -520,12 +522,15 @@ const lazyProcessEnv = () =>
520522 Object . entries ( constants . ENV ) . reduce (
521523 ( entries , entry ) => {
522524 const { 0 : key , 1 : value } = entry
525+ if ( key . startsWith ( 'INLINED_SOCKET_CLI_' ) ) {
526+ return entries
527+ }
523528 if ( typeof value === 'string' ) {
524529 if ( value ) {
525530 entries . push ( entry as [ string , string ] )
526531 }
527- } else if ( typeof value === 'boolean' ) {
528- entries . push ( [ key , value ? '1' : '0 '] )
532+ } else if ( typeof value === 'boolean' && value ) {
533+ entries . push ( [ key , '1 '] )
529534 }
530535 return entries
531536 } ,
0 commit comments