socket 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +426 -0
- package/bin/cli.js +3 -1
- package/dist/cli.js +366 -406
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +211 -19
- package/dist/constants.js.map +1 -1
- package/dist/flags.js +3 -3
- package/dist/flags.js.map +1 -1
- package/dist/shadow-npm-bin.js +14 -14
- package/dist/shadow-npm-bin.js.map +1 -1
- package/dist/shadow-npm-inject.js +16 -16
- package/dist/shadow-npm-inject.js.map +1 -1
- package/dist/tsconfig.dts.tsbuildinfo +1 -1
- package/dist/types/commands/ci/handle-ci.d.mts.map +1 -1
- package/dist/types/commands/fix/cmd-fix.d.mts.map +1 -1
- package/dist/types/commands/npm/cmd-npm.d.mts +1 -1
- package/dist/types/commands/npm/cmd-npm.d.mts.map +1 -1
- package/dist/types/commands/optimize/add-overrides.d.mts.map +1 -1
- package/dist/types/commands/patch/cmd-patch.d.mts.map +1 -1
- package/dist/types/commands/patch/handle-patch.d.mts +10 -2
- package/dist/types/commands/patch/handle-patch.d.mts.map +1 -1
- package/dist/types/commands/patch/output-patch-result.d.mts +1 -1
- package/dist/types/commands/patch/output-patch-result.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-create.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-github.d.mts.map +1 -1
- package/dist/types/commands/scan/cmd-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/create-scan-from-github.d.mts.map +1 -1
- package/dist/types/commands/scan/generate-report.d.mts +9 -8
- package/dist/types/commands/scan/generate-report.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-create-new-scan.d.mts +5 -2
- package/dist/types/commands/scan/handle-create-new-scan.d.mts.map +1 -1
- package/dist/types/commands/scan/handle-scan-report.d.mts +7 -5
- package/dist/types/commands/scan/handle-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/output-scan-report.d.mts +10 -8
- package/dist/types/commands/scan/output-scan-report.d.mts.map +1 -1
- package/dist/types/commands/scan/perform-reachability-analysis.d.mts.map +1 -1
- package/dist/types/commands/scan/types.d.mts +3 -0
- package/dist/types/commands/scan/types.d.mts.map +1 -0
- package/dist/types/constants.d.mts +99 -46
- package/dist/types/constants.d.mts.map +1 -1
- package/dist/types/shadow/npm/arborist-helpers.d.mts +1 -17
- package/dist/types/shadow/npm/arborist-helpers.d.mts.map +1 -1
- package/dist/types/shadow/npm/bin.d.mts +4 -3
- package/dist/types/shadow/npm/bin.d.mts.map +1 -1
- package/dist/types/utils/coana.d.mts.map +1 -1
- package/dist/types/utils/ecosystem.d.mts.map +1 -1
- package/dist/types/utils/get-output-kind.d.mts.map +1 -1
- package/dist/types/utils/glob.d.mts.map +1 -1
- package/dist/types/utils/package-environment.d.mts.map +1 -1
- package/dist/types/utils/purl.d.mts +25 -9
- package/dist/types/utils/purl.d.mts.map +1 -1
- package/dist/types/utils/spec.d.mts.map +1 -1
- package/dist/utils.js +120 -102
- package/dist/utils.js.map +1 -1
- package/dist/vendor.js +225 -4601
- package/external/@socketsecurity/registry/external/browserslist.js +646 -632
- package/external/@socketsecurity/registry/lib/constants/env.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/ext-cjs.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-cts.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-dts.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-js.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-json.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-lock.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-lockb.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-md.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-mjs.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/ext-mts.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/index.js +82 -83
- package/external/@socketsecurity/registry/lib/constants/ipc-promise.js +4 -5
- package/external/@socketsecurity/registry/lib/constants/node-debug-flags.js +9 -0
- package/external/@socketsecurity/registry/lib/constants/pnpm.js +3 -0
- package/external/@socketsecurity/registry/lib/constants/yarn-lock.js +3 -0
- package/external/@socketsecurity/registry/lib/fs.js +30 -16
- package/external/@socketsecurity/registry/lib/json.js +11 -0
- package/external/@socketsecurity/registry/lib/strings.js +16 -0
- package/package.json +17 -16
- package/external/@socketsecurity/registry/lib/constants/socket-public-api-key.js +0 -3
- package/external/@socketsecurity/registry/lib/constants/tap.js +0 -3
- /package/external/@socketsecurity/registry/lib/constants/{ipc.js → ipc-object.js} +0 -0
|
@@ -39,9 +39,6 @@ module.exports = ObjectFreeze({
|
|
|
39
39
|
PRE_COMMIT: envAsBoolean(env.PRE_COMMIT),
|
|
40
40
|
// Enable debug logging in Socket CLI.
|
|
41
41
|
SOCKET_CLI_DEBUG: !!DEBUG || envAsBoolean(env.SOCKET_CLI_DEBUG),
|
|
42
|
-
// TAP=1 is set by the tap-run test runner.
|
|
43
|
-
// https://node-tap.org/environment/#environment-variables-used-by-tap
|
|
44
|
-
TAP: envAsBoolean(env.TAP),
|
|
45
42
|
// VITEST=true is set by the Vitest test runner.
|
|
46
43
|
// https://vitest.dev/config/#configuring-vitest
|
|
47
44
|
VITEST: envAsBoolean(env.VITEST)
|
|
@@ -2,78 +2,77 @@
|
|
|
2
2
|
|
|
3
3
|
const getIpc = /*@__PURE__*/ require('./get-ipc')
|
|
4
4
|
const { createConstantsObject } = /*@__PURE__*/ require('../objects')
|
|
5
|
+
const { toKebabCase } = /*@__PURE__*/ require('../strings')
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
function toKebabCase(str) {
|
|
8
|
-
return (
|
|
9
|
-
str
|
|
10
|
-
// Convert camelCase to kebab-case
|
|
11
|
-
.replace(/([a-z]+[0-9]*)([A-Z])/g, '$1-$2')
|
|
12
|
-
// Convert underscores to hyphens
|
|
13
|
-
.replace(/_/g, '-')
|
|
14
|
-
.toLowerCase()
|
|
15
|
-
)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const constantsObj = {
|
|
7
|
+
const props = {
|
|
19
8
|
// Lazily defined values are initialized as `undefined` to keep their key order.
|
|
20
|
-
AT_LATEST:
|
|
21
|
-
BIOME_JSON:
|
|
22
|
-
CI:
|
|
23
|
-
COLUMN_LIMIT:
|
|
9
|
+
AT_LATEST: '@latest',
|
|
10
|
+
BIOME_JSON: 'biome.json',
|
|
11
|
+
CI: 'CI',
|
|
12
|
+
COLUMN_LIMIT: 80,
|
|
24
13
|
DARWIN: undefined,
|
|
25
|
-
EMPTY_FILE:
|
|
14
|
+
EMPTY_FILE: '/* empty */\n',
|
|
26
15
|
ENV: undefined,
|
|
27
|
-
ESLINT_CONFIG_JS:
|
|
28
|
-
ESNEXT:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
16
|
+
ESLINT_CONFIG_JS: 'eslint.config.js',
|
|
17
|
+
ESNEXT: 'esnext',
|
|
18
|
+
EXT_CJS: '.cjs',
|
|
19
|
+
EXT_CMD: '.cmd',
|
|
20
|
+
EXT_CTS: '.cts',
|
|
21
|
+
EXT_DTS: '.d.ts',
|
|
22
|
+
EXT_JS: '.js',
|
|
23
|
+
EXT_JSON: '.json',
|
|
24
|
+
EXT_LOCK: '.lock',
|
|
25
|
+
EXT_LOCKB: '.lockb',
|
|
26
|
+
EXT_MD: '.md',
|
|
27
|
+
EXT_MJS: '.mjs',
|
|
28
|
+
EXT_MTS: '.mts',
|
|
29
|
+
EXT_PS1: '.ps1',
|
|
30
|
+
EXTENSIONS: 'extensions',
|
|
31
|
+
EXTENSIONS_JSON: 'extensions.json',
|
|
32
|
+
GITIGNORE: '.gitignore',
|
|
33
|
+
HIDDEN_PACKAGE_LOCK_JSON: '.package-lock.json',
|
|
34
|
+
LATEST: 'latest',
|
|
35
|
+
LICENSE: 'LICENSE',
|
|
36
|
+
LICENSE_GLOB: 'LICEN[CS]E{[.-]*,}',
|
|
37
|
+
LICENSE_GLOB_RECURSIVE: '**/LICEN[CS]E{[.-]*,}',
|
|
38
|
+
LICENSE_ORIGINAL: 'LICENSE.original',
|
|
39
|
+
LICENSE_ORIGINAL_GLOB: '*.original{.*,}',
|
|
40
|
+
LICENSE_ORIGINAL_GLOB_RECURSIVE: '**/*.original{.*,}',
|
|
41
|
+
LOOP_SENTINEL: 1000000,
|
|
42
|
+
MANIFEST_JSON: 'manifest.json',
|
|
43
|
+
MIT: 'MIT',
|
|
44
|
+
NODE_AUTH_TOKEN: 'NODE_AUTH_TOKEN',
|
|
45
|
+
NODE_ENV: 'NODE_ENV',
|
|
46
|
+
NODE_MODULES: 'node_modules',
|
|
47
|
+
NODE_MODULES_GLOB_RECURSIVE: '**/node_modules',
|
|
48
|
+
NODE_WORKSPACES: 'node_workspaces',
|
|
51
49
|
NODE_VERSION: undefined,
|
|
52
|
-
NPM:
|
|
53
|
-
NPX:
|
|
54
|
-
OVERRIDES:
|
|
50
|
+
NPM: 'npm',
|
|
51
|
+
NPX: 'npx',
|
|
52
|
+
OVERRIDES: 'overrides',
|
|
55
53
|
PACKAGE_DEFAULT_SOCKET_CATEGORIES: undefined,
|
|
56
54
|
PACKAGE_DEFAULT_NODE_RANGE: undefined,
|
|
57
|
-
PACKAGE_DEFAULT_VERSION:
|
|
58
|
-
PACKAGE_JSON:
|
|
59
|
-
PACKAGE_LOCK_JSON:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
SOCKET_PUBLIC_API_TOKEN:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
55
|
+
PACKAGE_DEFAULT_VERSION: '1.0.0',
|
|
56
|
+
PACKAGE_JSON: 'package.json',
|
|
57
|
+
PACKAGE_LOCK_JSON: 'package-lock.json',
|
|
58
|
+
PNPM: 'pnpm',
|
|
59
|
+
PRE_COMMIT: 'PRE_COMMIT',
|
|
60
|
+
README_GLOB: 'README{.*,}',
|
|
61
|
+
README_GLOB_RECURSIVE: '**/README{.*,}',
|
|
62
|
+
README_MD: 'README.md',
|
|
63
|
+
REGISTRY_SCOPE_DELIMITER: '__',
|
|
64
|
+
REGISTRY: 'registry',
|
|
65
|
+
RESOLUTIONS: 'resolutions',
|
|
66
|
+
SOCKET_GITHUB_ORG: 'SocketDev',
|
|
67
|
+
SOCKET_IPC_HANDSHAKE: 'SOCKET_IPC_HANDSHAKE',
|
|
68
|
+
SOCKET_OVERRIDE_SCOPE: '@socketoverride',
|
|
69
|
+
SOCKET_PUBLIC_API_TOKEN:
|
|
70
|
+
'sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api',
|
|
71
|
+
SOCKET_REGISTRY_NPM_ORG: 'socketregistry',
|
|
72
|
+
SOCKET_REGISTRY_PACKAGE_NAME: '@socketsecurity/registry',
|
|
73
|
+
SOCKET_REGISTRY_REPO_NAME: 'socket-registry',
|
|
74
|
+
SOCKET_REGISTRY_SCOPE: '@socketregistry',
|
|
75
|
+
SOCKET_SECURITY_SCOPE: '@socketsecurity',
|
|
77
76
|
SUPPORTS_NODE_COMPILE_CACHE_API: undefined,
|
|
78
77
|
SUPPORTS_NODE_COMPILE_CACHE_ENV_VAR: undefined,
|
|
79
78
|
SUPPORTS_NODE_DISABLE_WARNING_FLAG: undefined,
|
|
@@ -81,27 +80,28 @@ const constantsObj = {
|
|
|
81
80
|
SUPPORTS_NODE_REQUIRE_MODULE: undefined,
|
|
82
81
|
SUPPORTS_NODE_RUN: undefined,
|
|
83
82
|
SUPPORTS_PROCESS_SEND: undefined,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
TSCONFIG_JSON: undefined,
|
|
83
|
+
TEMPLATE_CJS: 'cjs',
|
|
84
|
+
TEMPLATE_CJS_BROWSER: 'cjs-browser',
|
|
85
|
+
TEMPLATE_CJS_ESM: 'cjs-esm',
|
|
86
|
+
TEMPLATE_ES_SHIM_CONSTRUCTOR: 'es-shim-constructor',
|
|
87
|
+
TEMPLATE_ES_SHIM_PROTOTYPE_METHOD: 'es-shim-prototype-method',
|
|
88
|
+
TEMPLATE_ES_SHIM_STATIC_METHOD: 'es-shim-static-method',
|
|
89
|
+
TSCONFIG_JSON: 'tsconfig.json',
|
|
92
90
|
UNDEFINED_TOKEN: undefined,
|
|
93
|
-
UNLICENCED:
|
|
94
|
-
UNLICENSED:
|
|
95
|
-
UTF8:
|
|
96
|
-
VITEST:
|
|
91
|
+
UNLICENCED: 'UNLICENCED',
|
|
92
|
+
UNLICENSED: 'UNLICENSED',
|
|
93
|
+
UTF8: 'utf8',
|
|
94
|
+
VITEST: 'VITEST',
|
|
97
95
|
WIN32: undefined,
|
|
96
|
+
YARN_LOCK: 'yarn.lock',
|
|
98
97
|
abortController: undefined,
|
|
99
98
|
abortSignal: undefined,
|
|
100
99
|
copyLeftLicenses: undefined,
|
|
101
100
|
execPath: undefined,
|
|
102
|
-
|
|
101
|
+
ipcObject: undefined,
|
|
103
102
|
lifecycleScriptNames: undefined,
|
|
104
103
|
maintainedNodeVersions: undefined,
|
|
104
|
+
nodeDebugFlags: undefined,
|
|
105
105
|
nodeHardenFlags: undefined,
|
|
106
106
|
nodeNoWarningsFlags: undefined,
|
|
107
107
|
npmExecPath: undefined,
|
|
@@ -117,12 +117,11 @@ const constantsObj = {
|
|
|
117
117
|
win32EnsureTestsByEcosystem: undefined
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
module.exports = createConstantsObject(
|
|
120
|
+
module.exports = createConstantsObject(props, {
|
|
121
121
|
getters: Object.fromEntries(
|
|
122
|
-
Object.keys(
|
|
123
|
-
k
|
|
124
|
-
() => require(`./${toKebabCase(k)}`)
|
|
125
|
-
])
|
|
122
|
+
Object.keys(props)
|
|
123
|
+
.filter(k => props[k] === undefined)
|
|
124
|
+
.map(k => [k, () => require(`./${toKebabCase(k)}`)])
|
|
126
125
|
),
|
|
127
126
|
internals: {
|
|
128
127
|
createConstantsObject,
|
|
@@ -11,14 +11,14 @@ module.exports = new Promise(
|
|
|
11
11
|
// because constants is not initialized yet.
|
|
12
12
|
typeof process.send !== 'function'
|
|
13
13
|
) {
|
|
14
|
-
resolve(/*@__PURE__*/ require('./ipc'))
|
|
14
|
+
resolve(/*@__PURE__*/ require('./ipc-object'))
|
|
15
15
|
return
|
|
16
16
|
}
|
|
17
17
|
const abortSignal = /*@__PURE__*/ require('./abort-signal')
|
|
18
18
|
const finish = () => {
|
|
19
19
|
abortSignal.removeEventListener('abort', finish)
|
|
20
20
|
process.removeListener('message', onmessage)
|
|
21
|
-
resolve(/*@__PURE__*/ require('./ipc'))
|
|
21
|
+
resolve(/*@__PURE__*/ require('./ipc-object'))
|
|
22
22
|
}
|
|
23
23
|
const onmessage = rawData => {
|
|
24
24
|
if (rawData !== null && typeof rawData === 'object') {
|
|
@@ -40,9 +40,8 @@ module.exports = new Promise(
|
|
|
40
40
|
}
|
|
41
41
|
abortSignal.addEventListener('abort', finish, { once: true })
|
|
42
42
|
process.on('message', onmessage)
|
|
43
|
-
// The timeout of 1,000 milliseconds, i.e. 1 second, is to prevent an
|
|
44
|
-
//
|
|
45
|
-
// handshake.
|
|
43
|
+
// The timeout of 1,000 milliseconds, i.e. 1 second, is to prevent an unresolved
|
|
44
|
+
// promised. It should be more than enough time for the ipc object handshake.
|
|
46
45
|
setTimeout(finish, 1000)
|
|
47
46
|
}
|
|
48
47
|
)
|
|
@@ -147,19 +147,26 @@ async function readJson(filepath, options) {
|
|
|
147
147
|
options = { encoding: options }
|
|
148
148
|
}
|
|
149
149
|
const { reviver, throws, ...fsOptions } = { __proto__: null, ...options }
|
|
150
|
+
const shouldThrow = throws === undefined || !!throws
|
|
150
151
|
const fs = getFs()
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
let content = ''
|
|
153
|
+
try {
|
|
154
|
+
content = await fs.promises.readFile(filepath, {
|
|
153
155
|
__proto__: null,
|
|
154
156
|
encoding: 'utf8',
|
|
155
157
|
...fsOptions
|
|
156
|
-
})
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
throws
|
|
158
|
+
})
|
|
159
|
+
} catch (e) {
|
|
160
|
+
if (shouldThrow) {
|
|
161
|
+
throw e
|
|
161
162
|
}
|
|
162
|
-
|
|
163
|
+
return null
|
|
164
|
+
}
|
|
165
|
+
return jsonParse(content, {
|
|
166
|
+
filepath,
|
|
167
|
+
reviver,
|
|
168
|
+
throws: shouldThrow
|
|
169
|
+
})
|
|
163
170
|
}
|
|
164
171
|
|
|
165
172
|
/*@__NO_SIDE_EFFECTS__*/
|
|
@@ -168,19 +175,26 @@ function readJsonSync(filepath, options) {
|
|
|
168
175
|
options = { encoding: options }
|
|
169
176
|
}
|
|
170
177
|
const { reviver, throws, ...fsOptions } = { __proto__: null, ...options }
|
|
178
|
+
const shouldThrow = throws === undefined || !!throws
|
|
171
179
|
const fs = getFs()
|
|
172
|
-
|
|
173
|
-
|
|
180
|
+
let content = ''
|
|
181
|
+
try {
|
|
182
|
+
content = fs.readFileSync(filepath, {
|
|
174
183
|
__proto__: null,
|
|
175
184
|
encoding: 'utf8',
|
|
176
185
|
...fsOptions
|
|
177
|
-
})
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
throws
|
|
186
|
+
})
|
|
187
|
+
} catch (e) {
|
|
188
|
+
if (shouldThrow) {
|
|
189
|
+
throw e
|
|
182
190
|
}
|
|
183
|
-
|
|
191
|
+
return null
|
|
192
|
+
}
|
|
193
|
+
return jsonParse(content, {
|
|
194
|
+
filepath,
|
|
195
|
+
reviver,
|
|
196
|
+
throws: shouldThrow
|
|
197
|
+
})
|
|
184
198
|
}
|
|
185
199
|
|
|
186
200
|
/*@__NO_SIDE_EFFECTS__*/
|
|
@@ -20,6 +20,16 @@ function isBuffer(x) {
|
|
|
20
20
|
return !!(typeof Ctor?.isBuffer === 'function' && Ctor.isBuffer(x))
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
/*@__NO_SIDE_EFFECTS__*/
|
|
24
|
+
function isJsonPrimitive(value) {
|
|
25
|
+
return (
|
|
26
|
+
value === null ||
|
|
27
|
+
typeof value === 'boolean' ||
|
|
28
|
+
typeof value === 'number' ||
|
|
29
|
+
typeof value === 'string'
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
|
|
23
33
|
/*@__NO_SIDE_EFFECTS__*/
|
|
24
34
|
function jsonParse(content, options) {
|
|
25
35
|
const { filepath, reviver, throws } = { __proto__: null, ...options }
|
|
@@ -38,5 +48,6 @@ function jsonParse(content, options) {
|
|
|
38
48
|
return null
|
|
39
49
|
}
|
|
40
50
|
module.exports = {
|
|
51
|
+
isJsonPrimitive,
|
|
41
52
|
jsonParse
|
|
42
53
|
}
|
|
@@ -58,6 +58,21 @@ function stripBom(str) {
|
|
|
58
58
|
return str.length > 0 && str.charCodeAt(0) === 0xfeff ? str.slice(1) : str
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
/*@__NO_SIDE_EFFECTS__*/
|
|
62
|
+
function toKebabCase(str) {
|
|
63
|
+
if (!str.length) {
|
|
64
|
+
return str
|
|
65
|
+
}
|
|
66
|
+
return (
|
|
67
|
+
str
|
|
68
|
+
// Convert camelCase to kebab-case
|
|
69
|
+
.replace(/([a-z]+[0-9]*)([A-Z])/g, '$1-$2')
|
|
70
|
+
// Convert underscores to hyphens
|
|
71
|
+
.replace(/_/g, '-')
|
|
72
|
+
.toLowerCase()
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
|
|
61
76
|
/*@__NO_SIDE_EFFECTS__*/
|
|
62
77
|
function trimNewlines(str) {
|
|
63
78
|
const { length } = str
|
|
@@ -101,5 +116,6 @@ module.exports = {
|
|
|
101
116
|
search,
|
|
102
117
|
stripAnsi,
|
|
103
118
|
stripBom,
|
|
119
|
+
toKebabCase,
|
|
104
120
|
trimNewlines
|
|
105
121
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "socket",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "CLI for Socket.dev",
|
|
5
5
|
"homepage": "https://github.com/SocketDev/socket-cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -78,18 +78,18 @@
|
|
|
78
78
|
"update:deps": "npx --yes npm-check-updates"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@babel/core": "7.28.
|
|
81
|
+
"@babel/core": "7.28.4",
|
|
82
82
|
"@babel/plugin-proposal-export-default-from": "7.27.1",
|
|
83
83
|
"@babel/plugin-transform-export-namespace-from": "7.27.1",
|
|
84
84
|
"@babel/plugin-transform-runtime": "7.28.3",
|
|
85
85
|
"@babel/preset-typescript": "7.27.1",
|
|
86
|
-
"@babel/runtime": "7.28.
|
|
87
|
-
"@biomejs/biome": "2.2.
|
|
88
|
-
"@coana-tech/cli": "14.12.
|
|
86
|
+
"@babel/runtime": "7.28.4",
|
|
87
|
+
"@biomejs/biome": "2.2.3",
|
|
88
|
+
"@coana-tech/cli": "14.12.20",
|
|
89
89
|
"@cyclonedx/cdxgen": "11.7.0",
|
|
90
90
|
"@dotenvx/dotenvx": "1.49.0",
|
|
91
91
|
"@eslint/compat": "1.3.2",
|
|
92
|
-
"@eslint/js": "9.
|
|
92
|
+
"@eslint/js": "9.35.0",
|
|
93
93
|
"@npmcli/arborist": "9.1.4",
|
|
94
94
|
"@npmcli/config": "10.4.0",
|
|
95
95
|
"@octokit/graphql": "9.0.1",
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"@socketregistry/is-interactive": "1.0.6",
|
|
113
113
|
"@socketregistry/packageurl-js": "1.0.9",
|
|
114
114
|
"@socketsecurity/config": "3.0.1",
|
|
115
|
-
"@socketsecurity/registry": "1.
|
|
116
|
-
"@socketsecurity/sdk": "1.4.
|
|
115
|
+
"@socketsecurity/registry": "1.1.3",
|
|
116
|
+
"@socketsecurity/sdk": "1.4.87",
|
|
117
117
|
"@types/blessed": "0.1.25",
|
|
118
118
|
"@types/cmd-shim": "5.0.2",
|
|
119
119
|
"@types/js-yaml": "4.0.9",
|
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
"@types/semver": "7.7.1",
|
|
127
127
|
"@types/which": "3.0.4",
|
|
128
128
|
"@types/yargs-parser": "21.0.3",
|
|
129
|
-
"@typescript-eslint/parser": "8.
|
|
130
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
129
|
+
"@typescript-eslint/parser": "8.43.0",
|
|
130
|
+
"@typescript/native-preview": "7.0.0-dev.20250909.1",
|
|
131
131
|
"@vitest/coverage-v8": "3.2.4",
|
|
132
132
|
"blessed": "0.1.81",
|
|
133
133
|
"blessed-contrib": "4.11.0",
|
|
@@ -137,21 +137,21 @@
|
|
|
137
137
|
"custompatch": "1.1.8",
|
|
138
138
|
"del-cli": "6.0.0",
|
|
139
139
|
"dev-null-cli": "2.0.0",
|
|
140
|
-
"eslint": "9.
|
|
140
|
+
"eslint": "9.35.0",
|
|
141
141
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
142
142
|
"eslint-plugin-import-x": "4.16.1",
|
|
143
143
|
"eslint-plugin-n": "17.21.3",
|
|
144
144
|
"eslint-plugin-sort-destructure-keys": "2.0.0",
|
|
145
145
|
"eslint-plugin-unicorn": "56.0.1",
|
|
146
146
|
"fast-glob": "3.3.3",
|
|
147
|
-
"globals": "16.
|
|
147
|
+
"globals": "16.4.0",
|
|
148
148
|
"hpagent": "1.2.0",
|
|
149
149
|
"husky": "9.1.7",
|
|
150
150
|
"ignore": "7.0.5",
|
|
151
151
|
"js-yaml": "npm:@zkochan/js-yaml@0.0.10",
|
|
152
152
|
"knip": "5.63.1",
|
|
153
153
|
"lint-staged": "16.1.6",
|
|
154
|
-
"magic-string": "0.30.
|
|
154
|
+
"magic-string": "0.30.19",
|
|
155
155
|
"meow": "13.2.0",
|
|
156
156
|
"micromatch": "4.0.8",
|
|
157
157
|
"mock-fs": "5.5.0",
|
|
@@ -163,14 +163,14 @@
|
|
|
163
163
|
"pony-cause": "2.1.11",
|
|
164
164
|
"registry-auth-token": "5.1.0",
|
|
165
165
|
"registry-url": "7.2.0",
|
|
166
|
-
"rollup": "4.50.
|
|
166
|
+
"rollup": "4.50.1",
|
|
167
167
|
"semver": "7.7.2",
|
|
168
168
|
"synp": "1.9.14",
|
|
169
169
|
"terminal-link": "2.1.1",
|
|
170
170
|
"tiny-updater": "3.5.3",
|
|
171
171
|
"trash": "9.0.0",
|
|
172
172
|
"type-coverage": "2.29.7",
|
|
173
|
-
"typescript-eslint": "8.
|
|
173
|
+
"typescript-eslint": "8.43.0",
|
|
174
174
|
"unplugin-purge-polyfills": "0.1.0",
|
|
175
175
|
"vitest": "3.2.4",
|
|
176
176
|
"which": "5.0.0",
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
"tiny-colors": "$yoctocolors-cjs",
|
|
209
209
|
"typedarray": "npm:@socketregistry/typedarray@^1",
|
|
210
210
|
"undici": "6.21.3",
|
|
211
|
-
"vite": "7.1.
|
|
211
|
+
"vite": "7.1.5",
|
|
212
212
|
"xml2js": "0.6.2",
|
|
213
213
|
"yaml": "2.8.1"
|
|
214
214
|
},
|
|
@@ -220,6 +220,7 @@
|
|
|
220
220
|
"dist/**",
|
|
221
221
|
"external/**",
|
|
222
222
|
"shadow-bin/**",
|
|
223
|
+
"CHANGELOG.md",
|
|
223
224
|
"requirements.json",
|
|
224
225
|
"translations.json"
|
|
225
226
|
],
|
|
File without changes
|