@@ -9,15 +9,12 @@ type RegistryEnv = typeof registryConstants.ENV
99type Constants = {
1010 readonly API_V0_URL : 'https://api.socket.dev/v0'
1111 readonly BABEL_RUNTIME : '@babel/runtime'
12- readonly CDXGEN : 'cdxgen'
13- readonly CYCLONEDX_CDXGEN : '@cyclonedx/cdxgen'
1412 readonly ENV : RegistryEnv & {
1513 UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE : boolean
1614 }
1715 readonly DIST_TYPE : 'module-sync' | 'require'
1816 readonly NPM_REGISTRY_URL : 'https://registry.npmjs.org'
1917 readonly SOCKET_CLI_ISSUES_URL : 'https://github.com/SocketDev/socket-cli/issues'
20- readonly SYNP : 'synp'
2118 readonly UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE : 'UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE'
2219 readonly cdxgenBinPath : string
2320 readonly distPath : string
@@ -40,11 +37,8 @@ const {
4037
4138const API_V0_URL = 'https://api.socket.dev/v0'
4239const BABEL_RUNTIME = '@babel/runtime'
43- const CDXGEN = 'cdxgen'
44- const CYCLONEDX_CDXGEN = `@cyclonedx/${ CDXGEN } `
4540const NPM_REGISTRY_URL = 'https://registry.npmjs.org'
4641const SOCKET_CLI_ISSUES_URL = 'https://github.com/SocketDev/socket-cli/issues'
47- const SYNP = 'synp'
4842const UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE =
4943 'UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE'
5044const ENV : Constants [ 'ENV' ] = Object . freeze ( {
@@ -60,9 +54,9 @@ const rootDistPath = path.join(rootPath, 'dist')
6054const rootBinPath = path . join ( rootPath , 'bin' )
6155const rootPkgJsonPath = path . join ( rootPath , PACKAGE_JSON )
6256const nmBinPath = path . join ( rootPath , 'node_modules/.bin' )
63- const cdxgenBinPath = path . join ( nmBinPath , CDXGEN )
57+ const cdxgenBinPath = path . join ( nmBinPath , 'cdxgen' )
6458const shadowBinPath = path . join ( rootPath , 'shadow-bin' )
65- const synpBinPath = path . join ( nmBinPath , SYNP )
59+ const synpBinPath = path . join ( nmBinPath , 'synp' )
6660
6761const LAZY_DIST_TYPE = ( ) =>
6862 registryConstants . SUPPORTS_NODE_REQUIRE_MODULE ? 'module-sync' : 'require'
@@ -73,14 +67,11 @@ const constants = <Constants>createConstantsObject(
7367 {
7468 API_V0_URL ,
7569 BABEL_RUNTIME ,
76- CDXGEN ,
77- CYCLONEDX_CDXGEN ,
7870 ENV ,
7971 // Lazily defined values are initialized as `undefined` to keep their key order.
8072 DIST_TYPE : undefined ,
8173 NPM_REGISTRY_URL ,
8274 SOCKET_CLI_ISSUES_URL ,
83- SYNP ,
8475 UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE ,
8576 cdxgenBinPath,
8677 distPath : undefined ,
0 commit comments