@socketsecurity/cli-with-sentry 0.14.130 → 0.14.132
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/bin/cli.js +37 -44
- package/bin/npx-cli.js +1 -3
- package/dist/{module-sync/cli.js → cli.js} +55 -36
- package/dist/cli.js.map +1 -0
- package/dist/constants.js +8 -25
- package/dist/constants.js.map +1 -1
- package/dist/instrument-with-sentry.js +3 -14
- package/dist/instrument-with-sentry.js.map +1 -1
- package/dist/{module-sync/shadow-bin.js → shadow-bin.js} +52 -1
- package/dist/shadow-bin.js.map +1 -0
- package/dist/{module-sync/shadow-npm-inject.js → shadow-npm-inject.js} +60 -16
- package/dist/shadow-npm-inject.js.map +1 -0
- package/dist/shadow-npm-paths.js.map +1 -0
- package/dist/{module-sync/vendor.js → vendor.js} +10320 -4778
- package/dist/vendor.js.map +1 -0
- package/package.json +16 -26
- package/dist/constants.d.ts +0 -285
- package/dist/instrument-with-sentry.d.ts +0 -1
- package/dist/module-sync/arborist-helpers.d.ts +0 -68
- package/dist/module-sync/artifact.d.ts +0 -63
- package/dist/module-sync/cli.d.ts +0 -2
- package/dist/module-sync/cli.js.map +0 -1
- package/dist/module-sync/cmd.d.ts +0 -4
- package/dist/module-sync/config.d.ts +0 -44
- package/dist/module-sync/constants.js +0 -3
- package/dist/module-sync/edge.d.ts +0 -78
- package/dist/module-sync/errors.d.ts +0 -29
- package/dist/module-sync/fs.d.ts +0 -63
- package/dist/module-sync/index.d.ts +0 -34
- package/dist/module-sync/node.d.ts +0 -121
- package/dist/module-sync/override-set.d.ts +0 -43
- package/dist/module-sync/package-environment.d.ts +0 -83
- package/dist/module-sync/path-resolve.d.ts +0 -15
- package/dist/module-sync/sdk.d.ts +0 -9
- package/dist/module-sync/semver.d.ts +0 -17
- package/dist/module-sync/shadow-bin.d.ts +0 -5
- package/dist/module-sync/shadow-bin.js.map +0 -1
- package/dist/module-sync/shadow-npm-inject.d.ts +0 -1
- package/dist/module-sync/shadow-npm-inject.js.map +0 -1
- package/dist/module-sync/shadow-npm-paths.d.ts +0 -27
- package/dist/module-sync/shadow-npm-paths.js.map +0 -1
- package/dist/module-sync/socket-package-alert.d.ts +0 -104
- package/dist/module-sync/vendor.d.ts +0 -0
- package/dist/module-sync/vendor.js.map +0 -1
- package/dist/require/cli.d.ts +0 -2
- package/dist/require/cli.js +0 -12340
- package/dist/require/cli.js.map +0 -1
- package/dist/require/constants.js +0 -3
- package/dist/require/shadow-bin.d.ts +0 -5
- package/dist/require/shadow-bin.js +0 -110
- package/dist/require/shadow-bin.js.map +0 -1
- package/dist/require/shadow-npm-inject.d.ts +0 -1
- package/dist/require/shadow-npm-inject.js +0 -2596
- package/dist/require/shadow-npm-inject.js.map +0 -1
- package/dist/require/shadow-npm-paths.d.ts +0 -27
- package/dist/require/shadow-npm-paths.js +0 -292
- package/dist/require/shadow-npm-paths.js.map +0 -1
- package/dist/require/vendor.js +0 -3
- /package/dist/{module-sync/shadow-npm-paths.js → shadow-npm-paths.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/cli-with-sentry",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.132",
|
|
4
4
|
"description": "CLI tool for Socket.dev, includes Sentry error handling, otherwise identical to the regular `socket` package",
|
|
5
5
|
"homepage": "https://github.com/SocketDev/socket-cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,26 +19,18 @@
|
|
|
19
19
|
"socket-npm-with-sentry": "bin/npm-cli.js",
|
|
20
20
|
"socket-npx-with-sentry": "bin/npx-cli.js"
|
|
21
21
|
},
|
|
22
|
+
"types": "./dist/types/src/cli.d.ts",
|
|
22
23
|
"exports": {
|
|
23
|
-
"./bin/cli.js":
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
"./bin/npm-cli.js": {
|
|
28
|
-
"types": "./dist/module-sync/npm-cli.d.ts",
|
|
29
|
-
"default": "./dist/npm-cli.js"
|
|
30
|
-
},
|
|
31
|
-
"./bin/npx-cli.js": {
|
|
32
|
-
"types": "./dist/module-sync/npx-cli.d.ts",
|
|
33
|
-
"default": "./dist/npx-cli.js"
|
|
34
|
-
},
|
|
24
|
+
"./bin/cli.js": "./dist/cli.js",
|
|
25
|
+
"./bin/npm-cli.js": "./dist/npm-cli.js",
|
|
26
|
+
"./bin/npx-cli.js": "./dist/npx-cli.js",
|
|
35
27
|
"./package.json": "./package.json",
|
|
36
28
|
"./translations.json": "./translations.json"
|
|
37
29
|
},
|
|
38
30
|
"scripts": {
|
|
39
31
|
"build": "run-p -c --aggregate-output build:*",
|
|
40
32
|
"build:dist": "del-cli 'dist' && rollup -c .config/rollup.dist.config.mjs && npm run lint:dist:fix",
|
|
41
|
-
"build:
|
|
33
|
+
"build:types": "tsc --project .config/tsconfig.dts.json",
|
|
42
34
|
"check": "run-p -c --aggregate-output check:*",
|
|
43
35
|
"check:lint": "eslint --report-unused-disable-directives .",
|
|
44
36
|
"check:lint:dist": "cross-env LINT_DIST=1 eslint --report-unused-disable-directives --quiet ./dist",
|
|
@@ -78,16 +70,10 @@
|
|
|
78
70
|
},
|
|
79
71
|
"dependencies": {
|
|
80
72
|
"@sentry/node": "9.13.0",
|
|
81
|
-
"@
|
|
82
|
-
"@socketregistry/indent-string": "1.0.12",
|
|
83
|
-
"@socketregistry/is-interactive": "1.0.5",
|
|
84
|
-
"@socketregistry/packageurl-js": "1.0.5",
|
|
85
|
-
"@socketsecurity/registry": "1.0.147",
|
|
86
|
-
"@socketsecurity/sdk": "1.4.28",
|
|
73
|
+
"@socketsecurity/registry": "1.0.148",
|
|
87
74
|
"blessed": "0.1.81"
|
|
88
75
|
},
|
|
89
76
|
"devDependencies": {
|
|
90
|
-
"@apideck/better-ajv-errors": "0.3.6",
|
|
91
77
|
"@babel/core": "7.26.10",
|
|
92
78
|
"@babel/plugin-proposal-export-default-from": "7.25.9",
|
|
93
79
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
@@ -108,12 +94,19 @@
|
|
|
108
94
|
"@pnpm/lockfile.detect-dep-types": "1001.0.7",
|
|
109
95
|
"@pnpm/lockfile.fs": "1001.1.10",
|
|
110
96
|
"@pnpm/logger": "1000.0.0",
|
|
97
|
+
"@rollup/plugin-babel": "6.0.4",
|
|
111
98
|
"@rollup/plugin-commonjs": "28.0.3",
|
|
112
99
|
"@rollup/plugin-json": "6.1.0",
|
|
113
100
|
"@rollup/plugin-node-resolve": "16.0.1",
|
|
114
101
|
"@rollup/plugin-replace": "6.0.2",
|
|
102
|
+
"@rollup/plugin-typescript": "12.1.2",
|
|
115
103
|
"@rollup/pluginutils": "5.1.4",
|
|
104
|
+
"@socketregistry/hyrious__bun.lockb": "1.0.17",
|
|
105
|
+
"@socketregistry/indent-string": "1.0.12",
|
|
106
|
+
"@socketregistry/is-interactive": "1.0.5",
|
|
107
|
+
"@socketregistry/packageurl-js": "1.0.5",
|
|
116
108
|
"@socketsecurity/config": "2.1.3",
|
|
109
|
+
"@socketsecurity/sdk": "1.4.28",
|
|
117
110
|
"@types/blessed": "0.1.25",
|
|
118
111
|
"@types/cmd-shim": "5.0.2",
|
|
119
112
|
"@types/common-tags": "1.8.4",
|
|
@@ -142,12 +135,11 @@
|
|
|
142
135
|
"eslint-plugin-n": "17.17.0",
|
|
143
136
|
"eslint-plugin-sort-destructure-keys": "2.0.0",
|
|
144
137
|
"eslint-plugin-unicorn": "56.0.1",
|
|
145
|
-
"fast-content-type-parse": "2.0.0",
|
|
146
138
|
"globals": "16.0.0",
|
|
147
139
|
"hpagent": "1.2.0",
|
|
148
140
|
"husky": "9.1.7",
|
|
149
141
|
"ignore": "7.0.3",
|
|
150
|
-
"knip": "5.50.
|
|
142
|
+
"knip": "5.50.5",
|
|
151
143
|
"lint-staged": "15.5.1",
|
|
152
144
|
"magic-string": "0.30.17",
|
|
153
145
|
"meow": "13.2.0",
|
|
@@ -159,16 +151,14 @@
|
|
|
159
151
|
"open": "10.1.1",
|
|
160
152
|
"oxlint": "0.16.6",
|
|
161
153
|
"pony-cause": "2.1.11",
|
|
162
|
-
"read-package-up": "11.0.0",
|
|
163
154
|
"rollup": "4.40.0",
|
|
164
|
-
"rollup-plugin-ts": "3.4.5",
|
|
165
155
|
"semver": "7.7.1",
|
|
166
156
|
"synp": "1.9.14",
|
|
167
157
|
"terminal-link": "2.1.1",
|
|
168
158
|
"tiny-updater": "3.5.3",
|
|
169
159
|
"tinyglobby": "0.2.12",
|
|
170
160
|
"type-coverage": "2.29.7",
|
|
171
|
-
"typescript": "5.
|
|
161
|
+
"typescript": "5.8.3",
|
|
172
162
|
"typescript-eslint": "8.30.1",
|
|
173
163
|
"unplugin-purge-polyfills": "0.0.7",
|
|
174
164
|
"vitest": "3.1.1",
|
package/dist/constants.d.ts
DELETED
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import registryConstants from '@socketsecurity/registry/lib/constants'
|
|
3
|
-
import { Agent } from './package-environment.js'
|
|
4
|
-
import { Remap } from '@socketsecurity/registry/lib/objects'
|
|
5
|
-
type RegistryEnv = typeof registryConstants.ENV
|
|
6
|
-
type RegistryInternals = (typeof registryConstants)['Symbol(kInternalsSymbol)']
|
|
7
|
-
type Sentry = any
|
|
8
|
-
type Internals = Remap<
|
|
9
|
-
Omit<RegistryInternals, 'getIpc'> &
|
|
10
|
-
Readonly<{
|
|
11
|
-
getIpc: {
|
|
12
|
-
(): Promise<IPC>
|
|
13
|
-
<K extends keyof IPC | undefined>(
|
|
14
|
-
key?: K | undefined
|
|
15
|
-
): Promise<K extends keyof IPC ? IPC[K] : IPC>
|
|
16
|
-
}
|
|
17
|
-
getSentry: () => Sentry
|
|
18
|
-
setSentry(Sentry: Sentry): boolean
|
|
19
|
-
}>
|
|
20
|
-
>
|
|
21
|
-
type ENV = Remap<
|
|
22
|
-
RegistryEnv &
|
|
23
|
-
Readonly<{
|
|
24
|
-
GITHUB_ACTIONS: boolean
|
|
25
|
-
GITHUB_REF_NAME: string
|
|
26
|
-
GITHUB_REF_TYPE: string
|
|
27
|
-
GITHUB_REPOSITORY: string
|
|
28
|
-
LOCALAPPDATA: string
|
|
29
|
-
SOCKET_CLI_ACCEPT_RISKS: boolean
|
|
30
|
-
SOCKET_CLI_DEBUG: boolean
|
|
31
|
-
SOCKET_CLI_NO_API_TOKEN: boolean
|
|
32
|
-
SOCKET_CLI_VIEW_ALL_RISKS: boolean
|
|
33
|
-
SOCKET_SECURITY_API_BASE_URL: string
|
|
34
|
-
SOCKET_SECURITY_API_PROXY: string
|
|
35
|
-
SOCKET_SECURITY_API_TOKEN: string
|
|
36
|
-
SOCKET_SECURITY_GITHUB_PAT: string
|
|
37
|
-
TERM: string
|
|
38
|
-
XDG_DATA_HOME: string
|
|
39
|
-
}>
|
|
40
|
-
>
|
|
41
|
-
type IPC = Readonly<{
|
|
42
|
-
SOCKET_CLI_FIX?: string | undefined
|
|
43
|
-
SOCKET_CLI_OPTIMIZE?: boolean | undefined
|
|
44
|
-
SOCKET_CLI_SAFE_BIN?: string | undefined
|
|
45
|
-
SOCKET_CLI_SAFE_PROGRESS?: boolean | undefined
|
|
46
|
-
}>
|
|
47
|
-
declare const constants: {
|
|
48
|
-
readonly [kInternalsSymbol]: registryConstants.Internals
|
|
49
|
-
readonly AT_LATEST: '@latest'
|
|
50
|
-
readonly BIOME_JSON: 'biome.json'
|
|
51
|
-
readonly CI: 'CI'
|
|
52
|
-
readonly COLUMN_LIMIT: 80
|
|
53
|
-
readonly EMPTY_FILE: '/* empty */\n'
|
|
54
|
-
readonly ESLINT_CONFIG_JS: 'eslint.config.js'
|
|
55
|
-
readonly ESNEXT: 'esnext'
|
|
56
|
-
readonly EXT_CMD: '.cmd'
|
|
57
|
-
readonly EXT_PS1: '.ps1'
|
|
58
|
-
readonly EXTENSIONS: 'extensions'
|
|
59
|
-
readonly EXTENSIONS_JSON: 'extensions.json'
|
|
60
|
-
readonly GITIGNORE: '.gitignore'
|
|
61
|
-
readonly HIDDEN_PACKAGE_LOCK_JSON: '.package-lock.json'
|
|
62
|
-
readonly LATEST: 'latest'
|
|
63
|
-
readonly LICENSE: 'LICENSE'
|
|
64
|
-
readonly LICENSE_GLOB: 'LICEN[CS]E{[.-]*,}'
|
|
65
|
-
readonly LICENSE_GLOB_RECURSIVE: '**/LICEN[CS]E{[.-]*,}'
|
|
66
|
-
readonly LICENSE_ORIGINAL: 'LICENSE.original'
|
|
67
|
-
readonly LICENSE_ORIGINAL_GLOB: '*.original{.*,}'
|
|
68
|
-
readonly LICENSE_ORIGINAL_GLOB_RECURSIVE: '**/*.original{.*,}'
|
|
69
|
-
readonly LOOP_SENTINEL: 1000000
|
|
70
|
-
readonly MANIFEST_JSON: 'manifest.json'
|
|
71
|
-
readonly MIT: 'MIT'
|
|
72
|
-
readonly NODE_AUTH_TOKEN: 'NODE_AUTH_TOKEN'
|
|
73
|
-
readonly NODE_ENV: 'NODE_ENV'
|
|
74
|
-
readonly NODE_MODULES: 'node_modules'
|
|
75
|
-
readonly NODE_MODULES_GLOB_RECURSIVE: '**/node_modules'
|
|
76
|
-
readonly NODE_WORKSPACES: 'node_workspaces'
|
|
77
|
-
readonly NODE_VERSION: string
|
|
78
|
-
readonly NPM: 'npm'
|
|
79
|
-
readonly NPX: 'npx'
|
|
80
|
-
readonly OVERRIDES: 'overrides'
|
|
81
|
-
readonly PACKAGE_DEFAULT_SOCKET_CATEGORIES: readonly ['cleanup']
|
|
82
|
-
readonly PACKAGE_DEFAULT_NODE_RANGE: string
|
|
83
|
-
readonly PACKAGE_DEFAULT_VERSION: '1.0.0'
|
|
84
|
-
readonly PACKAGE_JSON: 'package.json'
|
|
85
|
-
readonly PACKAGE_LOCK_JSON: 'package-lock.json'
|
|
86
|
-
readonly PRE_COMMIT: 'PRE_COMMIT'
|
|
87
|
-
readonly README_GLOB: 'README{.*,}'
|
|
88
|
-
readonly README_GLOB_RECURSIVE: '**/README{.*,}'
|
|
89
|
-
readonly README_MD: 'README.md'
|
|
90
|
-
readonly REGISTRY: 'registry'
|
|
91
|
-
readonly REGISTRY_SCOPE_DELIMITER: '__'
|
|
92
|
-
readonly RESOLUTIONS: 'resolutions'
|
|
93
|
-
readonly SOCKET_GITHUB_ORG: 'SocketDev'
|
|
94
|
-
readonly SOCKET_IPC_HANDSHAKE: 'SOCKET_IPC_HANDSHAKE'
|
|
95
|
-
readonly SOCKET_OVERRIDE_SCOPE: '@socketoverride'
|
|
96
|
-
readonly SOCKET_PUBLIC_API_KEY: string
|
|
97
|
-
readonly SOCKET_PUBLIC_API_TOKEN: string
|
|
98
|
-
readonly SOCKET_REGISTRY_NPM_ORG: 'socketregistry'
|
|
99
|
-
readonly SOCKET_REGISTRY_PACKAGE_NAME: '@socketsecurity/registry'
|
|
100
|
-
readonly SOCKET_REGISTRY_REPO_NAME: 'socket-registry'
|
|
101
|
-
readonly SOCKET_REGISTRY_SCOPE: '@socketregistry'
|
|
102
|
-
readonly SOCKET_SECURITY_SCOPE: '@socketsecurity'
|
|
103
|
-
readonly SUPPORTS_NODE_DISABLE_WARNING_FLAG: boolean
|
|
104
|
-
readonly SUPPORTS_NODE_REQUIRE_MODULE: boolean
|
|
105
|
-
readonly SUPPORTS_NODE_RUN: boolean
|
|
106
|
-
readonly SUPPORTS_PROCESS_SEND: boolean
|
|
107
|
-
readonly TAP: 'TAP'
|
|
108
|
-
readonly TEMPLATE_CJS: 'CJS'
|
|
109
|
-
readonly TEMPLATE_CJS_BROWSER: 'cjs-browser'
|
|
110
|
-
readonly TEMPLATE_CJS_ESM: 'cjs-esm'
|
|
111
|
-
readonly TEMPLATE_ES_SHIM_CONSTRUCTOR: 'es-shim-constructor'
|
|
112
|
-
readonly TEMPLATE_ES_SHIM_PROTOTYPE_METHOD: 'es-shim-prototype-method'
|
|
113
|
-
readonly TEMPLATE_ES_SHIM_STATIC_METHOD: 'es-shim-static-method'
|
|
114
|
-
readonly TSCONFIG_JSON: 'tsconfig.json'
|
|
115
|
-
readonly UNDEFINED_TOKEN: {}
|
|
116
|
-
readonly UNLICENCED: 'UNLICENCED'
|
|
117
|
-
readonly UNLICENSED: 'UNLICENSED'
|
|
118
|
-
readonly UTF8: 'utf8'
|
|
119
|
-
readonly VITEST: 'VITEST'
|
|
120
|
-
readonly WIN32: boolean
|
|
121
|
-
readonly abortController: AbortController
|
|
122
|
-
readonly abortSignal: AbortSignal
|
|
123
|
-
readonly copyLeftLicenses: ReadonlySet<string>
|
|
124
|
-
readonly execPath: string
|
|
125
|
-
readonly ignoreGlobs: readonly [
|
|
126
|
-
'**/.git',
|
|
127
|
-
'**/.npmrc',
|
|
128
|
-
'**/bun.lockb?',
|
|
129
|
-
'**/node_modules',
|
|
130
|
-
'**/package-lock.json',
|
|
131
|
-
'**/pnpm-lock.ya?ml',
|
|
132
|
-
'**/yarn.lock',
|
|
133
|
-
'**/.DS_Store',
|
|
134
|
-
'**/.gitignore',
|
|
135
|
-
'**/.hg',
|
|
136
|
-
'**/.lock-wscript',
|
|
137
|
-
'**/.npmignore',
|
|
138
|
-
'**/.svn',
|
|
139
|
-
'**/.wafpickle-*',
|
|
140
|
-
'**/.*.swp',
|
|
141
|
-
'**/._*/**',
|
|
142
|
-
'**/archived-packages/**',
|
|
143
|
-
'**/build/config.gypi',
|
|
144
|
-
'**/CVS',
|
|
145
|
-
'**/npm-debug.log',
|
|
146
|
-
'**/*.orig',
|
|
147
|
-
'**/.env',
|
|
148
|
-
'**/.eslintcache',
|
|
149
|
-
'**/.nvm',
|
|
150
|
-
'**/.tap',
|
|
151
|
-
'**/.tapci.yaml',
|
|
152
|
-
'**/.vscode',
|
|
153
|
-
'**/*.tsbuildinfo',
|
|
154
|
-
'**/Thumbs.db'
|
|
155
|
-
]
|
|
156
|
-
readonly kInternalsSymbol: unique symbol
|
|
157
|
-
readonly lifecycleScriptNames: ReadonlySet<string>
|
|
158
|
-
readonly maintainedNodeVersions: Readonly<MaintainedNodeVersions>
|
|
159
|
-
readonly nodeHardenFlags: readonly string[] & string[]
|
|
160
|
-
readonly nodeNoWarningsFlags: readonly [
|
|
161
|
-
'--disable-warning',
|
|
162
|
-
'ExperimentalWarning'
|
|
163
|
-
]
|
|
164
|
-
readonly npmExecPath: string
|
|
165
|
-
readonly packageExtensions: readonly [string, object][]
|
|
166
|
-
readonly packumentCache: Map<unknown, unknown>
|
|
167
|
-
readonly pacoteCachePath: string
|
|
168
|
-
readonly parseArgsConfig: import(
|
|
169
|
-
'@socketsecurity/registry/lib/constants/parse-args-config'
|
|
170
|
-
)
|
|
171
|
-
readonly skipTestsByEcosystem: Map<string, ReadonlySet<string>>
|
|
172
|
-
readonly spinner: {
|
|
173
|
-
[x: string]: YoctoSpinner
|
|
174
|
-
[x: number]: YoctoSpinner
|
|
175
|
-
[x: symbol]: YoctoSpinner
|
|
176
|
-
error: (text?: string | undefined, ...extras: any[]) => any
|
|
177
|
-
errorAndStop: (text?: string | undefined, ...extras: any[]) => any
|
|
178
|
-
fail: (text?: string | undefined, ...extras: any[]) => any
|
|
179
|
-
failAndStop: (text?: string | undefined, ...extras: any[]) => any
|
|
180
|
-
getText: () => string
|
|
181
|
-
info: (text?: string | undefined, ...extras: any[]) => any
|
|
182
|
-
infoAndStop: (text?: string | undefined, ...extras: any[]) => any
|
|
183
|
-
log: (text?: string | undefined, ...extras: any[]) => any
|
|
184
|
-
logAndStop: (text?: string | undefined, ...extras: any[]) => any
|
|
185
|
-
setText: (text?: string | undefined) => any
|
|
186
|
-
start: (text?: string | undefined, ...extras: any[]) => any
|
|
187
|
-
stop: (finalText?: string | undefined, ...extras: any[]) => any
|
|
188
|
-
success: (text?: string | undefined, ...extras: any[]) => any
|
|
189
|
-
successAndStop: (text?: string | undefined, ...extras: any[]) => any
|
|
190
|
-
warn: (text?: string | undefined, ...extras: any[]) => any
|
|
191
|
-
warnAndStop: (text?: string | undefined, ...extras: any[]) => any
|
|
192
|
-
warning: (text?: string | undefined, ...extras: any[]) => any
|
|
193
|
-
warningAndStop: (text?: string | undefined, ...extras: any[]) => any
|
|
194
|
-
}
|
|
195
|
-
readonly tsLibsAvailable: ReadonlySet<string>
|
|
196
|
-
readonly tsTypesAvailable: ReadonlySet<string>
|
|
197
|
-
readonly win32EnsureTestsByEcosystem: Map<string, ReadonlySet<string>>
|
|
198
|
-
readonly 'Symbol(kInternalsSymbol)': Internals
|
|
199
|
-
readonly ALERT_TYPE_CRITICAL_CVE: 'criticalCVE'
|
|
200
|
-
readonly ALERT_TYPE_CVE: 'cve'
|
|
201
|
-
readonly ALERT_TYPE_MEDIUM_CVE: 'mediumCVE'
|
|
202
|
-
readonly ALERT_TYPE_MILD_CVE: 'mildCVE'
|
|
203
|
-
readonly API_V0_URL: 'https://api.socket.dev/v0/'
|
|
204
|
-
readonly BINARY_LOCK_EXT: '.lockb'
|
|
205
|
-
readonly BUN: 'bun'
|
|
206
|
-
readonly CLI: 'cli'
|
|
207
|
-
readonly CVE_ALERT_PROPS_FIRST_PATCHED_VERSION_IDENTIFIER: 'firstPatchedVersionIdentifier'
|
|
208
|
-
readonly ENV: ENV
|
|
209
|
-
readonly DIST_TYPE: 'module-sync' | 'require'
|
|
210
|
-
readonly DRY_RUN_LABEL: '[DryRun]'
|
|
211
|
-
readonly DRY_RUN_BAIL_TEXT: '[DryRun] Bailing now'
|
|
212
|
-
readonly GITHUB_ACTIONS: 'GITHUB_ACTIONS'
|
|
213
|
-
readonly GITHUB_REF_NAME: 'GITHUB_REF_NAME'
|
|
214
|
-
readonly GITHUB_REF_TYPE: 'GITHUB_REF_TYPE'
|
|
215
|
-
readonly GITHUB_REPOSITORY: 'GITHUB_REPOSITORY'
|
|
216
|
-
readonly INLINED_SOCKET_CLI_LEGACY_BUILD: 'INLINED_SOCKET_CLI_LEGACY_BUILD'
|
|
217
|
-
readonly INLINED_SOCKET_CLI_PUBLISHED_BUILD: 'INLINED_SOCKET_CLI_PUBLISHED_BUILD'
|
|
218
|
-
readonly INLINED_SOCKET_CLI_SENTRY_BUILD: 'INLINED_SOCKET_CLI_SENTRY_BUILD'
|
|
219
|
-
readonly IPC: IPC
|
|
220
|
-
readonly LOCALAPPDATA: 'LOCALAPPDATA'
|
|
221
|
-
readonly LOCK_EXT: '.lock'
|
|
222
|
-
readonly MODULE_SYNC: 'module-sync'
|
|
223
|
-
readonly NPM_BUGGY_OVERRIDES_PATCHED_VERSION: '11.2.0'
|
|
224
|
-
readonly NPM_REGISTRY_URL: 'https://registry.npmjs.org'
|
|
225
|
-
readonly PNPM: 'pnpm'
|
|
226
|
-
readonly REDACTED: '<redacted>'
|
|
227
|
-
readonly REQUIRE: 'require'
|
|
228
|
-
readonly SHADOW_NPM_BIN: 'shadow-bin'
|
|
229
|
-
readonly SHADOW_NPM_INJECT: 'shadow-npm-inject'
|
|
230
|
-
readonly SHADOW_NPM_PATHS: 'shadow-npm-paths'
|
|
231
|
-
readonly SOCKET: 'socket'
|
|
232
|
-
readonly SOCKET_APP_DIR: 'socket/settings'
|
|
233
|
-
readonly SOCKET_CLI_ACCEPT_RISKS: 'SOCKET_CLI_ACCEPT_RISKS'
|
|
234
|
-
readonly SOCKET_CLI_BIN_NAME: 'socket'
|
|
235
|
-
readonly SOCKET_CLI_BIN_NAME_ALIAS: 'cli'
|
|
236
|
-
readonly SOCKET_CLI_DEBUG: 'SOCKET_CLI_DEBUG'
|
|
237
|
-
readonly SOCKET_CLI_FIX: 'SOCKET_CLI_FIX'
|
|
238
|
-
readonly SOCKET_CLI_ISSUES_URL: 'https://github.com/SocketDev/socket-cli/issues'
|
|
239
|
-
readonly SOCKET_CLI_SENTRY_BIN_NAME_ALIAS: 'cli-with-sentry'
|
|
240
|
-
readonly SOCKET_CLI_LEGACY_PACKAGE_NAME: '@socketsecurity/cli'
|
|
241
|
-
readonly SOCKET_CLI_NO_API_TOKEN: 'SOCKET_CLI_NO_API_TOKEN'
|
|
242
|
-
readonly SOCKET_CLI_NPM_BIN_NAME: 'socket-npm'
|
|
243
|
-
readonly SOCKET_CLI_NPX_BIN_NAME: 'socket-npx'
|
|
244
|
-
readonly SOCKET_CLI_OPTIMIZE: 'SOCKET_CLI_OPTIMIZE'
|
|
245
|
-
readonly SOCKET_CLI_PACKAGE_NAME: 'socket'
|
|
246
|
-
readonly SOCKET_CLI_SAFE_BIN: 'SOCKET_CLI_SAFE_BIN'
|
|
247
|
-
readonly SOCKET_CLI_SAFE_PROGRESS: 'SOCKET_CLI_SAFE_PROGRESS'
|
|
248
|
-
readonly SOCKET_CLI_SENTRY_BIN_NAME: 'socket-with-sentry'
|
|
249
|
-
readonly SOCKET_CLI_SENTRY_NPM_BIN_NAME: 'socket-npm-with-sentry'
|
|
250
|
-
readonly SOCKET_CLI_SENTRY_NPX_BIN_NAME: 'socket-npx-with-sentry'
|
|
251
|
-
readonly SOCKET_CLI_SENTRY_PACKAGE_NAME: '@socketsecurity/cli-with-sentry'
|
|
252
|
-
readonly SOCKET_CLI_VIEW_ALL_RISKS: 'SOCKET_CLI_VIEW_ALL_RISKS'
|
|
253
|
-
readonly SOCKET_SECURITY_API_BASE_URL: 'SOCKET_SECURITY_API_BASE_URL'
|
|
254
|
-
readonly SOCKET_SECURITY_API_PROXY: 'SOCKET_SECURITY_API_PROXY'
|
|
255
|
-
readonly SOCKET_SECURITY_API_TOKEN: 'SOCKET_SECURITY_API_TOKEN'
|
|
256
|
-
readonly SOCKET_SECURITY_GITHUB_PAT: 'SOCKET_SECURITY_GITHUB_PAT'
|
|
257
|
-
readonly TERM: 'TERM'
|
|
258
|
-
readonly VLT: 'vlt'
|
|
259
|
-
readonly WITH_SENTRY: 'with-sentry'
|
|
260
|
-
readonly XDG_DATA_HOME: 'XDG_DATA_HOME'
|
|
261
|
-
readonly YARN: 'yarn'
|
|
262
|
-
readonly YARN_BERRY: 'yarn/berry'
|
|
263
|
-
readonly YARN_CLASSIC: 'yarn/classic'
|
|
264
|
-
readonly YARN_LOCK: 'yarn.lock'
|
|
265
|
-
readonly bashRcPath: string
|
|
266
|
-
readonly blessedOptions: {
|
|
267
|
-
smartCSR: boolean
|
|
268
|
-
term: string
|
|
269
|
-
useBCE: boolean
|
|
270
|
-
}
|
|
271
|
-
readonly distCliPath: string
|
|
272
|
-
readonly distInstrumentWithSentryPath: string
|
|
273
|
-
readonly distPath: string
|
|
274
|
-
readonly distShadowNpmBinPath: string
|
|
275
|
-
readonly distShadowNpmInjectPath: string
|
|
276
|
-
readonly homePath: string
|
|
277
|
-
readonly minimumVersionByAgent: Map<Agent, string>
|
|
278
|
-
readonly nmBinPath: string
|
|
279
|
-
readonly rootBinPath: string
|
|
280
|
-
readonly rootDistPath: string
|
|
281
|
-
readonly rootPath: string
|
|
282
|
-
readonly shadowBinPath: string
|
|
283
|
-
readonly zshRcPath: string
|
|
284
|
-
}
|
|
285
|
-
export { constants as default }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EditablePackageJson,
|
|
3
|
-
fetchPackagePackument
|
|
4
|
-
} from '@socketsecurity/registry/lib/packages'
|
|
5
|
-
import { RangeStyle } from './semver.js'
|
|
6
|
-
import { Diff } from './shadow-npm-inject.js'
|
|
7
|
-
import { SafeNode } from './node.js'
|
|
8
|
-
declare function findBestPatchVersion(
|
|
9
|
-
node: SafeNode,
|
|
10
|
-
availableVersions: string[],
|
|
11
|
-
vulnerableVersionRange?: string,
|
|
12
|
-
_firstPatchedVersionIdentifier?: string | undefined
|
|
13
|
-
): string | null
|
|
14
|
-
declare function findPackageNode(
|
|
15
|
-
tree: SafeNode,
|
|
16
|
-
name: string,
|
|
17
|
-
version?: string | undefined
|
|
18
|
-
): SafeNode | undefined
|
|
19
|
-
declare function findPackageNodes(
|
|
20
|
-
tree: SafeNode,
|
|
21
|
-
name: string,
|
|
22
|
-
version?: string | undefined
|
|
23
|
-
): SafeNode[]
|
|
24
|
-
type DiffQueryIncludeFilter = {
|
|
25
|
-
unchanged?: boolean | undefined
|
|
26
|
-
unknownOrigin?: boolean | undefined
|
|
27
|
-
}
|
|
28
|
-
type DiffQueryOptions = {
|
|
29
|
-
include?: DiffQueryIncludeFilter | undefined
|
|
30
|
-
}
|
|
31
|
-
type PackageDetail = {
|
|
32
|
-
node: SafeNode
|
|
33
|
-
existing?: SafeNode | undefined
|
|
34
|
-
}
|
|
35
|
-
declare function getDetailsFromDiff(
|
|
36
|
-
diff_: Diff | null,
|
|
37
|
-
options?: DiffQueryOptions | undefined
|
|
38
|
-
): PackageDetail[]
|
|
39
|
-
declare function isTopLevel(tree: SafeNode, node: SafeNode): boolean
|
|
40
|
-
type Packument = Exclude<
|
|
41
|
-
Awaited<ReturnType<typeof fetchPackagePackument>>,
|
|
42
|
-
null
|
|
43
|
-
>
|
|
44
|
-
declare function updateNode(
|
|
45
|
-
node: SafeNode,
|
|
46
|
-
newVersion: string,
|
|
47
|
-
newVersionPackument: Packument['versions'][number]
|
|
48
|
-
): void
|
|
49
|
-
declare function updatePackageJsonFromNode(
|
|
50
|
-
editablePkgJson: EditablePackageJson,
|
|
51
|
-
tree: SafeNode,
|
|
52
|
-
node: SafeNode,
|
|
53
|
-
newVersion: string,
|
|
54
|
-
rangeStyle?: RangeStyle | undefined
|
|
55
|
-
): boolean
|
|
56
|
-
export {
|
|
57
|
-
findBestPatchVersion,
|
|
58
|
-
findPackageNode,
|
|
59
|
-
findPackageNodes,
|
|
60
|
-
DiffQueryIncludeFilter,
|
|
61
|
-
DiffQueryOptions,
|
|
62
|
-
PackageDetail,
|
|
63
|
-
getDetailsFromDiff,
|
|
64
|
-
isTopLevel,
|
|
65
|
-
Packument,
|
|
66
|
-
updateNode,
|
|
67
|
-
updatePackageJsonFromNode
|
|
68
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Remap } from '@socketsecurity/registry/lib/objects'
|
|
2
|
-
import { components, operations } from '@socketsecurity/sdk/types/api'
|
|
3
|
-
type ALERT_ACTION = 'error' | 'monitor' | 'warn' | 'ignore'
|
|
4
|
-
type ALERT_TYPE = keyof NonNullable<
|
|
5
|
-
operations['getOrgSecurityPolicy']['responses']['200']['content']['application/json']['securityPolicyRules']
|
|
6
|
-
>
|
|
7
|
-
type CVE_ALERT_TYPE = 'cve' | 'mediumCVE' | 'mildCVE' | 'criticalCVE'
|
|
8
|
-
type ArtifactAlertCve = Remap<
|
|
9
|
-
Omit<CompactSocketArtifactAlert, 'type'> & {
|
|
10
|
-
type: CVE_ALERT_TYPE
|
|
11
|
-
}
|
|
12
|
-
>
|
|
13
|
-
type ArtifactAlertCveFixable = Remap<
|
|
14
|
-
Omit<CompactSocketArtifactAlert, 'props' | 'type'> & {
|
|
15
|
-
type: CVE_ALERT_TYPE
|
|
16
|
-
props: {
|
|
17
|
-
firstPatchedVersionIdentifier: string
|
|
18
|
-
vulnerableVersionRange: string
|
|
19
|
-
[key: string]: any
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
>
|
|
23
|
-
type ArtifactAlertUpgrade = Remap<
|
|
24
|
-
Omit<CompactSocketArtifactAlert, 'type'> & {
|
|
25
|
-
type: 'socketUpgradeAvailable'
|
|
26
|
-
}
|
|
27
|
-
>
|
|
28
|
-
type CompactSocketArtifactAlert = Remap<
|
|
29
|
-
Omit<SocketArtifactAlert, 'category' | 'end' | 'file' | 'start'>
|
|
30
|
-
>
|
|
31
|
-
type CompactSocketArtifact = Remap<
|
|
32
|
-
Omit<SocketArtifact, 'alerts' | 'batchIndex' | 'size'> & {
|
|
33
|
-
alerts: CompactSocketArtifactAlert[]
|
|
34
|
-
}
|
|
35
|
-
>
|
|
36
|
-
type SocketArtifact = Remap<
|
|
37
|
-
Omit<components['schemas']['SocketArtifact'], 'alerts'> & {
|
|
38
|
-
alerts?: SocketArtifactAlert[]
|
|
39
|
-
}
|
|
40
|
-
>
|
|
41
|
-
type SocketArtifactAlert = Remap<
|
|
42
|
-
Omit<components['schemas']['SocketAlert'], 'action' | 'props' | 'type'> & {
|
|
43
|
-
type: ALERT_TYPE
|
|
44
|
-
action?: 'error' | 'monitor' | 'warn' | 'ignore'
|
|
45
|
-
props?: any | undefined
|
|
46
|
-
}
|
|
47
|
-
>
|
|
48
|
-
declare function isArtifactAlertCve(
|
|
49
|
-
alert: CompactSocketArtifactAlert
|
|
50
|
-
): alert is ArtifactAlertCve
|
|
51
|
-
export {
|
|
52
|
-
ALERT_ACTION,
|
|
53
|
-
ALERT_TYPE,
|
|
54
|
-
CVE_ALERT_TYPE,
|
|
55
|
-
ArtifactAlertCve,
|
|
56
|
-
ArtifactAlertCveFixable,
|
|
57
|
-
ArtifactAlertUpgrade,
|
|
58
|
-
CompactSocketArtifactAlert,
|
|
59
|
-
CompactSocketArtifact,
|
|
60
|
-
SocketArtifact,
|
|
61
|
-
SocketArtifactAlert,
|
|
62
|
-
isArtifactAlertCve
|
|
63
|
-
}
|