socket 0.14.65 → 0.14.67
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/dist/constants.d.ts +2 -2
- package/dist/constants.js +10 -6
- package/dist/constants.js.map +1 -1
- package/dist/module-sync/cli.js +1038 -556
- package/dist/module-sync/cli.js.map +1 -1
- package/dist/module-sync/config.d.ts +19 -0
- package/dist/module-sync/path-resolve.d.ts +2 -2
- package/dist/module-sync/shadow-npm-inject.js +136 -114
- package/dist/module-sync/shadow-npm-inject.js.map +1 -1
- package/dist/module-sync/shadow-npm-paths.js +3 -3
- package/dist/module-sync/shadow-npm-paths.js.map +1 -1
- package/dist/module-sync/socket-package-alert.d.ts +1 -1
- package/dist/require/cli.js +1038 -556
- package/dist/require/cli.js.map +1 -1
- package/package.json +13 -13
- package/dist/module-sync/fs.d.ts +0 -22
- package/dist/module-sync/settings.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "socket",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.67",
|
|
4
4
|
"description": "CLI tool for Socket.dev",
|
|
5
5
|
"homepage": "https://github.com/SocketDev/socket-cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -76,11 +76,11 @@
|
|
|
76
76
|
"@pnpm/lockfile.detect-dep-types": "^1001.0.5",
|
|
77
77
|
"@socketregistry/hyrious__bun.lockb": "1.0.16",
|
|
78
78
|
"@socketregistry/indent-string": "1.0.12",
|
|
79
|
-
"@socketregistry/is-interactive": "1.0.
|
|
79
|
+
"@socketregistry/is-interactive": "1.0.5",
|
|
80
80
|
"@socketregistry/packageurl-js": "1.0.4",
|
|
81
81
|
"@socketsecurity/config": "2.1.3",
|
|
82
|
-
"@socketsecurity/registry": "1.0.
|
|
83
|
-
"@socketsecurity/sdk": "1.4.
|
|
82
|
+
"@socketsecurity/registry": "1.0.135",
|
|
83
|
+
"@socketsecurity/sdk": "1.4.16",
|
|
84
84
|
"blessed": "0.1.81",
|
|
85
85
|
"blessed-contrib": "4.11.0",
|
|
86
86
|
"browserslist": "4.24.4",
|
|
@@ -110,12 +110,12 @@
|
|
|
110
110
|
"@babel/plugin-transform-export-namespace-from": "^7.25.9",
|
|
111
111
|
"@babel/plugin-transform-runtime": "^7.26.10",
|
|
112
112
|
"@babel/preset-env": "^7.26.9",
|
|
113
|
-
"@babel/preset-typescript": "^7.
|
|
114
|
-
"@babel/runtime": "^7.
|
|
113
|
+
"@babel/preset-typescript": "^7.27.0",
|
|
114
|
+
"@babel/runtime": "^7.27.0",
|
|
115
115
|
"@biomejs/biome": "^1.9.4",
|
|
116
116
|
"@cyclonedx/cdxgen": "^11.2.2",
|
|
117
117
|
"@eslint/compat": "^1.2.7",
|
|
118
|
-
"@eslint/js": "^9.
|
|
118
|
+
"@eslint/js": "^9.23.0",
|
|
119
119
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
120
120
|
"@rollup/plugin-json": "^6.1.0",
|
|
121
121
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
@@ -126,17 +126,17 @@
|
|
|
126
126
|
"@types/common-tags": "^1.8.4",
|
|
127
127
|
"@types/micromatch": "^4.0.9",
|
|
128
128
|
"@types/mock-fs": "^4.13.4",
|
|
129
|
-
"@types/node": "^22.13.
|
|
129
|
+
"@types/node": "^22.13.13",
|
|
130
130
|
"@types/npmcli__arborist": "^6.3.0",
|
|
131
131
|
"@types/proc-log": "^3.0.4",
|
|
132
132
|
"@types/semver": "^7.5.8",
|
|
133
133
|
"@types/which": "^3.0.4",
|
|
134
134
|
"@types/yargs-parser": "^21.0.3",
|
|
135
|
-
"@typescript-eslint/parser": "^8.
|
|
135
|
+
"@typescript-eslint/parser": "^8.28.0",
|
|
136
136
|
"@vitest/coverage-v8": "3.0.9",
|
|
137
137
|
"cross-env": "^7.0.3",
|
|
138
138
|
"del-cli": "^6.0.0",
|
|
139
|
-
"eslint": "^9.
|
|
139
|
+
"eslint": "^9.23.0",
|
|
140
140
|
"eslint-import-resolver-oxc": "^0.13.1",
|
|
141
141
|
"eslint-plugin-import-x": "^4.9.1",
|
|
142
142
|
"eslint-plugin-n": "^17.16.2",
|
|
@@ -150,14 +150,14 @@
|
|
|
150
150
|
"mock-fs": "^5.5.0",
|
|
151
151
|
"nock": "^14.0.1",
|
|
152
152
|
"npm-run-all2": "^7.0.2",
|
|
153
|
-
"oxlint": "0.16.
|
|
153
|
+
"oxlint": "0.16.2",
|
|
154
154
|
"read-package-up": "^11.0.0",
|
|
155
|
-
"rollup": "4.
|
|
155
|
+
"rollup": "4.37.0",
|
|
156
156
|
"rollup-plugin-ts": "^3.4.5",
|
|
157
157
|
"synp": "^1.9.14",
|
|
158
158
|
"type-coverage": "^2.29.7",
|
|
159
159
|
"typescript": "5.4.5",
|
|
160
|
-
"typescript-eslint": "^8.
|
|
160
|
+
"typescript-eslint": "^8.28.0",
|
|
161
161
|
"unplugin-purge-polyfills": "^0.0.7",
|
|
162
162
|
"vitest": "3.0.9"
|
|
163
163
|
},
|
package/dist/module-sync/fs.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Remap } from '@socketsecurity/registry/lib/objects';
|
|
3
|
-
import { Abortable } from 'node:events';
|
|
4
|
-
import { ObjectEncodingOptions, OpenMode, PathLike, PathOrFileDescriptor } from 'node:fs';
|
|
5
|
-
import { FileHandle } from 'node:fs/promises';
|
|
6
|
-
type FindUpOptions = {
|
|
7
|
-
cwd?: string | undefined;
|
|
8
|
-
signal?: AbortSignal | undefined;
|
|
9
|
-
};
|
|
10
|
-
declare function findUp(name: string | string[], { cwd, signal }: FindUpOptions): Promise<string | undefined>;
|
|
11
|
-
type ReadFileOptions = Remap<ObjectEncodingOptions & Abortable & {
|
|
12
|
-
flag?: OpenMode | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
declare function readFileBinary(filepath: PathLike | FileHandle, options?: ReadFileOptions | undefined): Promise<Buffer>;
|
|
15
|
-
declare function readFileUtf8(filepath: PathLike | FileHandle, options?: ReadFileOptions | undefined): Promise<string>;
|
|
16
|
-
declare function safeReadFile(filepath: PathLike | FileHandle, options?: 'utf8' | 'utf-8' | {
|
|
17
|
-
encoding: 'utf8' | 'utf-8';
|
|
18
|
-
} | undefined): Promise<string | undefined>;
|
|
19
|
-
declare function safeReadFileSync(filepath: PathOrFileDescriptor, options?: 'utf8' | 'utf-8' | {
|
|
20
|
-
encoding: 'utf8' | 'utf-8';
|
|
21
|
-
} | undefined): string | undefined;
|
|
22
|
-
export { FindUpOptions, findUp, ReadFileOptions, readFileBinary, readFileUtf8, safeReadFile, safeReadFileSync };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import config from '@socketsecurity/config';
|
|
2
|
-
interface Settings {
|
|
3
|
-
apiBaseUrl?: string | null | undefined;
|
|
4
|
-
apiKey?: string | null | undefined;
|
|
5
|
-
apiProxy?: string | null | undefined;
|
|
6
|
-
enforcedOrgs?: string[] | readonly string[] | null | undefined;
|
|
7
|
-
apiToken?: string | null | undefined;
|
|
8
|
-
}
|
|
9
|
-
declare function findSocketYmlSync(): {
|
|
10
|
-
path: string;
|
|
11
|
-
parsed: config.SocketYml;
|
|
12
|
-
} | null;
|
|
13
|
-
declare function getSetting<Key extends keyof Settings>(key: Key): Settings[Key];
|
|
14
|
-
declare function updateSetting<Key extends keyof Settings>(key: Key, value: Settings[Key]): void;
|
|
15
|
-
export { findSocketYmlSync, getSetting, updateSetting };
|