socket 0.14.36 → 0.14.37
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.js +4 -0
- package/dist/module-sync/cli.js +24 -9
- package/dist/module-sync/constants.d.ts +2 -0
- package/dist/module-sync/constants.d.ts.map +1 -1
- package/dist/module-sync/npm-injection.js +1 -1
- package/dist/require/cli.js +24 -9
- package/dist/require/constants.d.ts.map +1 -1
- package/dist/require/npm-injection.js +1 -1
- package/package.json +8 -8
package/dist/constants.js
CHANGED
|
@@ -14,7 +14,9 @@ const {
|
|
|
14
14
|
} = registryConstants;
|
|
15
15
|
const API_V0_URL = 'https://api.socket.dev/v0';
|
|
16
16
|
const BABEL_RUNTIME = '@babel/runtime';
|
|
17
|
+
const BINARY_LOCK_EXT = '.lockb';
|
|
17
18
|
const BUN = 'bun';
|
|
19
|
+
const LOCK_EXT = '.lock';
|
|
18
20
|
const NPM_REGISTRY_URL = 'https://registry.npmjs.org';
|
|
19
21
|
const NPX = 'npx';
|
|
20
22
|
const PNPM = 'pnpm';
|
|
@@ -58,10 +60,12 @@ path.join(constants.nmBinPath, 'synp');
|
|
|
58
60
|
const constants = createConstantsObject({
|
|
59
61
|
API_V0_URL,
|
|
60
62
|
BABEL_RUNTIME,
|
|
63
|
+
BINARY_LOCK_EXT,
|
|
61
64
|
BUN,
|
|
62
65
|
ENV: undefined,
|
|
63
66
|
// Lazily defined values are initialized as `undefined` to keep their key order.
|
|
64
67
|
DIST_TYPE: undefined,
|
|
68
|
+
LOCK_EXT,
|
|
65
69
|
NPM_REGISTRY_URL,
|
|
66
70
|
NPX,
|
|
67
71
|
PNPM,
|
package/dist/module-sync/cli.js
CHANGED
|
@@ -789,7 +789,9 @@ async function readFileUtf8(filepath, options) {
|
|
|
789
789
|
}
|
|
790
790
|
|
|
791
791
|
const {
|
|
792
|
+
BINARY_LOCK_EXT,
|
|
792
793
|
BUN: BUN$1,
|
|
794
|
+
LOCK_EXT: LOCK_EXT$1,
|
|
793
795
|
NPM: NPM$2,
|
|
794
796
|
PNPM: PNPM$1,
|
|
795
797
|
VLT: VLT$1,
|
|
@@ -819,9 +821,11 @@ async function getAgentVersion(agentExecPath, cwd) {
|
|
|
819
821
|
} catch {}
|
|
820
822
|
return result;
|
|
821
823
|
}
|
|
824
|
+
|
|
825
|
+
// The order of LOCKS properties IS significant as it affects iteration order.
|
|
822
826
|
const LOCKS = {
|
|
823
|
-
|
|
824
|
-
|
|
827
|
+
[`bun${LOCK_EXT$1}`]: BUN$1,
|
|
828
|
+
[`bun${BINARY_LOCK_EXT}`]: BUN$1,
|
|
825
829
|
// If both package-lock.json and npm-shrinkwrap.json are present in the root
|
|
826
830
|
// of a project, npm-shrinkwrap.json will take precedence and package-lock.json
|
|
827
831
|
// will be ignored.
|
|
@@ -830,9 +834,9 @@ const LOCKS = {
|
|
|
830
834
|
'package-lock.json': NPM$2,
|
|
831
835
|
'pnpm-lock.yaml': PNPM$1,
|
|
832
836
|
'pnpm-lock.yml': PNPM$1,
|
|
833
|
-
|
|
837
|
+
[`yarn${LOCK_EXT$1}`]: YARN_CLASSIC$1,
|
|
834
838
|
'vlt-lock.json': VLT$1,
|
|
835
|
-
//
|
|
839
|
+
// Lastly, look for a hidden lock file which is present if .npmrc has package-lock=false:
|
|
836
840
|
// https://docs.npmjs.com/cli/v10/configuring-npm/package-lock-json#hidden-lockfiles
|
|
837
841
|
//
|
|
838
842
|
// Unlike the other LOCKS keys this key contains a directory AND filename so
|
|
@@ -853,10 +857,10 @@ const readLockFileByAgent = (() => {
|
|
|
853
857
|
return {
|
|
854
858
|
[BUN$1]: wrapReader(async (lockPath, agentExecPath) => {
|
|
855
859
|
const ext = path.extname(lockPath);
|
|
856
|
-
if (ext ===
|
|
860
|
+
if (ext === LOCK_EXT$1) {
|
|
857
861
|
return await defaultReader(lockPath);
|
|
858
862
|
}
|
|
859
|
-
if (ext ===
|
|
863
|
+
if (ext === BINARY_LOCK_EXT) {
|
|
860
864
|
const lockBuffer = await binaryReader(lockPath);
|
|
861
865
|
if (lockBuffer) {
|
|
862
866
|
try {
|
|
@@ -868,6 +872,7 @@ const readLockFileByAgent = (() => {
|
|
|
868
872
|
// https://bun.sh/guides/install/yarnlock
|
|
869
873
|
return (await spawn(agentExecPath, [lockPath])).stdout.trim();
|
|
870
874
|
}
|
|
875
|
+
return undefined;
|
|
871
876
|
}),
|
|
872
877
|
[NPM$2]: defaultReader,
|
|
873
878
|
[PNPM$1]: defaultReader,
|
|
@@ -982,6 +987,7 @@ async function detect({
|
|
|
982
987
|
|
|
983
988
|
const {
|
|
984
989
|
BUN,
|
|
990
|
+
LOCK_EXT,
|
|
985
991
|
NPM: NPM$1,
|
|
986
992
|
PNPM,
|
|
987
993
|
UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE,
|
|
@@ -1069,7 +1075,12 @@ const lockIncludesByAgent = (() => {
|
|
|
1069
1075
|
}
|
|
1070
1076
|
return {
|
|
1071
1077
|
[BUN](lockSrc, name, lockBasename) {
|
|
1072
|
-
|
|
1078
|
+
// This is a bit counterintuitive. When lockBasename ends with a .lockb
|
|
1079
|
+
// we treat it as a yarn.lock. When lockBasename ends with a .lock we
|
|
1080
|
+
// treat it as a package-lock.json. The bun.lock format is not identical
|
|
1081
|
+
// package-lock.json, however it close enough for npmLockIncludes to work.
|
|
1082
|
+
const lockScanner = lockBasename?.endsWith(LOCK_EXT) ? npmLockIncludes : yarnLockIncludes;
|
|
1083
|
+
return lockScanner(lockSrc, name);
|
|
1073
1084
|
},
|
|
1074
1085
|
[NPM$1]: npmLockIncludes,
|
|
1075
1086
|
[PNPM](lockSrc, name) {
|
|
@@ -1442,6 +1453,10 @@ async function addOverrides({
|
|
|
1442
1453
|
const thingToScan = isLockScanned ? lockSrc : await lsByAgent[agent](agentExecPath, pkgPath, {
|
|
1443
1454
|
npmExecPath
|
|
1444
1455
|
});
|
|
1456
|
+
// The AgentDepsIncludesFn and AgentLockIncludesFn types overlap in their
|
|
1457
|
+
// first two parameters. AgentLockIncludesFn accepts an optional third
|
|
1458
|
+
// parameter which AgentDepsIncludesFn will ignore so we cast thingScanner
|
|
1459
|
+
// as an AgentLockIncludesFn type.
|
|
1445
1460
|
const thingScanner = isLockScanned ? lockIncludesByAgent[agent] : depsIncludesByAgent[agent];
|
|
1446
1461
|
const depEntries = getDependencyEntries(pkgJson);
|
|
1447
1462
|
const overridesDataObjects = [];
|
|
@@ -3721,7 +3736,7 @@ const dependencies = {
|
|
|
3721
3736
|
}) {
|
|
3722
3737
|
const name = parentName + ' dependencies';
|
|
3723
3738
|
const input = setupCommand$3(name, dependencies.description, argv, importMeta);
|
|
3724
|
-
|
|
3739
|
+
{
|
|
3725
3740
|
await searchDeps(input);
|
|
3726
3741
|
}
|
|
3727
3742
|
}
|
|
@@ -4290,7 +4305,7 @@ const threatFeed = {
|
|
|
4290
4305
|
}) {
|
|
4291
4306
|
const name = `${parentName} threat-feed`;
|
|
4292
4307
|
const input = setupCommand(name, threatFeed.description, argv, importMeta);
|
|
4293
|
-
|
|
4308
|
+
{
|
|
4294
4309
|
const apiKey = sdk.getDefaultKey();
|
|
4295
4310
|
if (!apiKey) {
|
|
4296
4311
|
throw new sdk.AuthError('User must be authenticated to run this command. To log in, run the command `socket login` and enter your API key.');
|
|
@@ -3,11 +3,13 @@ type RegistryEnv = typeof registryConstants.ENV;
|
|
|
3
3
|
type Constants = {
|
|
4
4
|
readonly API_V0_URL: 'https://api.socket.dev/v0';
|
|
5
5
|
readonly BABEL_RUNTIME: '@babel/runtime';
|
|
6
|
+
readonly BINARY_LOCK_EXT: '.lockb';
|
|
6
7
|
readonly BUN: 'bun';
|
|
7
8
|
readonly ENV: RegistryEnv & {
|
|
8
9
|
UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE: boolean;
|
|
9
10
|
};
|
|
10
11
|
readonly DIST_TYPE: 'module-sync' | 'require';
|
|
12
|
+
readonly LOCK_EXT: '.lock';
|
|
11
13
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AQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B,GAAG,OAAO,iBAAiB,CAAA;AAwE5B,QAAA,MAAM,SAAS,WA4Cd,CAAA"}
|
package/dist/require/cli.js
CHANGED
|
@@ -785,7 +785,9 @@ async function readFileUtf8(filepath, options) {
|
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
const {
|
|
788
|
+
BINARY_LOCK_EXT,
|
|
788
789
|
BUN: BUN$1,
|
|
790
|
+
LOCK_EXT: LOCK_EXT$1,
|
|
789
791
|
NPM: NPM$2,
|
|
790
792
|
PNPM: PNPM$1,
|
|
791
793
|
VLT: VLT$1,
|
|
@@ -815,9 +817,11 @@ async function getAgentVersion(agentExecPath, cwd) {
|
|
|
815
817
|
} catch {}
|
|
816
818
|
return result;
|
|
817
819
|
}
|
|
820
|
+
|
|
821
|
+
// The order of LOCKS properties IS significant as it affects iteration order.
|
|
818
822
|
const LOCKS = {
|
|
819
|
-
|
|
820
|
-
|
|
823
|
+
[`bun${LOCK_EXT$1}`]: BUN$1,
|
|
824
|
+
[`bun${BINARY_LOCK_EXT}`]: BUN$1,
|
|
821
825
|
// If both package-lock.json and npm-shrinkwrap.json are present in the root
|
|
822
826
|
// of a project, npm-shrinkwrap.json will take precedence and package-lock.json
|
|
823
827
|
// will be ignored.
|
|
@@ -826,9 +830,9 @@ const LOCKS = {
|
|
|
826
830
|
'package-lock.json': NPM$2,
|
|
827
831
|
'pnpm-lock.yaml': PNPM$1,
|
|
828
832
|
'pnpm-lock.yml': PNPM$1,
|
|
829
|
-
|
|
833
|
+
[`yarn${LOCK_EXT$1}`]: YARN_CLASSIC$1,
|
|
830
834
|
'vlt-lock.json': VLT$1,
|
|
831
|
-
//
|
|
835
|
+
// Lastly, look for a hidden lock file which is present if .npmrc has package-lock=false:
|
|
832
836
|
// https://docs.npmjs.com/cli/v10/configuring-npm/package-lock-json#hidden-lockfiles
|
|
833
837
|
//
|
|
834
838
|
// Unlike the other LOCKS keys this key contains a directory AND filename so
|
|
@@ -849,10 +853,10 @@ const readLockFileByAgent = (() => {
|
|
|
849
853
|
return {
|
|
850
854
|
[BUN$1]: wrapReader(async (lockPath, agentExecPath) => {
|
|
851
855
|
const ext = path.extname(lockPath);
|
|
852
|
-
if (ext ===
|
|
856
|
+
if (ext === LOCK_EXT$1) {
|
|
853
857
|
return await defaultReader(lockPath);
|
|
854
858
|
}
|
|
855
|
-
if (ext ===
|
|
859
|
+
if (ext === BINARY_LOCK_EXT) {
|
|
856
860
|
const lockBuffer = await binaryReader(lockPath);
|
|
857
861
|
if (lockBuffer) {
|
|
858
862
|
try {
|
|
@@ -864,6 +868,7 @@ const readLockFileByAgent = (() => {
|
|
|
864
868
|
// https://bun.sh/guides/install/yarnlock
|
|
865
869
|
return (await spawn(agentExecPath, [lockPath])).stdout.trim();
|
|
866
870
|
}
|
|
871
|
+
return undefined;
|
|
867
872
|
}),
|
|
868
873
|
[NPM$2]: defaultReader,
|
|
869
874
|
[PNPM$1]: defaultReader,
|
|
@@ -978,6 +983,7 @@ async function detect({
|
|
|
978
983
|
|
|
979
984
|
const {
|
|
980
985
|
BUN,
|
|
986
|
+
LOCK_EXT,
|
|
981
987
|
NPM: NPM$1,
|
|
982
988
|
PNPM,
|
|
983
989
|
UPDATE_SOCKET_OVERRIDES_IN_PACKAGE_LOCK_FILE,
|
|
@@ -1065,7 +1071,12 @@ const lockIncludesByAgent = (() => {
|
|
|
1065
1071
|
}
|
|
1066
1072
|
return {
|
|
1067
1073
|
[BUN](lockSrc, name, lockBasename) {
|
|
1068
|
-
|
|
1074
|
+
// This is a bit counterintuitive. When lockBasename ends with a .lockb
|
|
1075
|
+
// we treat it as a yarn.lock. When lockBasename ends with a .lock we
|
|
1076
|
+
// treat it as a package-lock.json. The bun.lock format is not identical
|
|
1077
|
+
// package-lock.json, however it close enough for npmLockIncludes to work.
|
|
1078
|
+
const lockScanner = lockBasename?.endsWith(LOCK_EXT) ? npmLockIncludes : yarnLockIncludes;
|
|
1079
|
+
return lockScanner(lockSrc, name);
|
|
1069
1080
|
},
|
|
1070
1081
|
[NPM$1]: npmLockIncludes,
|
|
1071
1082
|
[PNPM](lockSrc, name) {
|
|
@@ -1438,6 +1449,10 @@ async function addOverrides({
|
|
|
1438
1449
|
const thingToScan = isLockScanned ? lockSrc : await lsByAgent[agent](agentExecPath, pkgPath, {
|
|
1439
1450
|
npmExecPath
|
|
1440
1451
|
});
|
|
1452
|
+
// The AgentDepsIncludesFn and AgentLockIncludesFn types overlap in their
|
|
1453
|
+
// first two parameters. AgentLockIncludesFn accepts an optional third
|
|
1454
|
+
// parameter which AgentDepsIncludesFn will ignore so we cast thingScanner
|
|
1455
|
+
// as an AgentLockIncludesFn type.
|
|
1441
1456
|
const thingScanner = isLockScanned ? lockIncludesByAgent[agent] : depsIncludesByAgent[agent];
|
|
1442
1457
|
const depEntries = getDependencyEntries(pkgJson);
|
|
1443
1458
|
const overridesDataObjects = [];
|
|
@@ -3717,7 +3732,7 @@ const dependencies = {
|
|
|
3717
3732
|
}) {
|
|
3718
3733
|
const name = parentName + ' dependencies';
|
|
3719
3734
|
const input = setupCommand$3(name, dependencies.description, argv, importMeta);
|
|
3720
|
-
|
|
3735
|
+
{
|
|
3721
3736
|
await searchDeps(input);
|
|
3722
3737
|
}
|
|
3723
3738
|
}
|
|
@@ -4286,7 +4301,7 @@ const threatFeed = {
|
|
|
4286
4301
|
}) {
|
|
4287
4302
|
const name = `${parentName} threat-feed`;
|
|
4288
4303
|
const input = setupCommand(name, threatFeed.description, argv, importMeta);
|
|
4289
|
-
|
|
4304
|
+
{
|
|
4290
4305
|
const apiKey = sdk.getDefaultKey();
|
|
4291
4306
|
if (!apiKey) {
|
|
4292
4307
|
throw new sdk.AuthError('User must be authenticated to run this command. To log in, run the command `socket login` and enter your API key.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAIA,OAAO,iBAAiB,MAAM,wCAAwC,CAAA;AAEtE,KAAK,WAAW,GAAG,OAAO,iBAAiB,CAAC,GAAG,CAAA;AAE/C,KAAK,SAAS,GAAG;IACf,QAAQ,CAAC,UAAU,EAAE,2BAA2B,CAAA;IAChD,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAAA;IACxC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAA;IACnB,QAAQ,CAAC,GAAG,EAAE,WAAW,GAAG;QAC1B,4CAA4C,EAAE,OAAO,CAAA;KACtD,CAAA;IACD,QAAQ,CAAC,SAAS,EAAE,aAAa,GAAG,SAAS,CAAA;IAC7C,QAAQ,CAAC,gBAAgB,EAAE,4BAA4B,CAAA;IACvD,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,qBAAqB,EAAE,gDAAgD,CAAA;IAChF,QAAQ,CAAC,4CAA4C,EAAE,8CAA8C,CAAA;IACrG,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAA;IACnB,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAA;IACjC,QAAQ,CAAC,YAAY,EAAE,cAAc,CAAA;IACrC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QA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,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B,GAAG,OAAO,iBAAiB,CAAA;AAwE5B,QAAA,MAAM,SAAS,WA4Cd,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "socket",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.37",
|
|
4
4
|
"description": "CLI tool for Socket.dev",
|
|
5
5
|
"homepage": "http://github.com/SocketDev/socket-cli",
|
|
6
6
|
"license": "MIT",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"cmd-shim": "^7.0.0",
|
|
71
71
|
"has-flag": "^4.0.0",
|
|
72
72
|
"hpagent": "^1.2.0",
|
|
73
|
-
"ignore": "^
|
|
73
|
+
"ignore": "^7.0.0",
|
|
74
74
|
"micromatch": "^4.0.8",
|
|
75
75
|
"npm-package-arg": "^12.0.1",
|
|
76
76
|
"pony-cause": "^2.1.11",
|
|
@@ -112,15 +112,15 @@
|
|
|
112
112
|
"@types/update-notifier": "^6.0.8",
|
|
113
113
|
"@types/which": "^3.0.4",
|
|
114
114
|
"@types/yargs-parser": "^21.0.3",
|
|
115
|
-
"@typescript-eslint/eslint-plugin": "^8.18.
|
|
116
|
-
"@typescript-eslint/parser": "^8.18.
|
|
115
|
+
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
116
|
+
"@typescript-eslint/parser": "^8.18.2",
|
|
117
117
|
"c8": "^10.1.3",
|
|
118
118
|
"custompatch": "^1.0.28",
|
|
119
119
|
"eslint": "^9.17.0",
|
|
120
|
-
"eslint-import-resolver-oxc": "^0.
|
|
120
|
+
"eslint-import-resolver-oxc": "^0.7.0",
|
|
121
121
|
"eslint-plugin-depend": "^0.12.0",
|
|
122
122
|
"eslint-plugin-import-x": "^4.6.1",
|
|
123
|
-
"eslint-plugin-n": "^17.15.
|
|
123
|
+
"eslint-plugin-n": "^17.15.1",
|
|
124
124
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
125
125
|
"eslint-plugin-unicorn": "^56.0.1",
|
|
126
126
|
"husky": "^9.1.7",
|
|
@@ -136,13 +136,13 @@
|
|
|
136
136
|
"oxlint": "0.15.3",
|
|
137
137
|
"prettier": "3.4.2",
|
|
138
138
|
"read-package-up": "^11.0.0",
|
|
139
|
-
"rollup": "4.
|
|
139
|
+
"rollup": "4.29.1",
|
|
140
140
|
"rollup-plugin-ts": "^3.4.5",
|
|
141
141
|
"terminal-link": "^3.0.0",
|
|
142
142
|
"tiny-updater": "^3.5.2",
|
|
143
143
|
"type-coverage": "^2.29.7",
|
|
144
144
|
"typescript": "5.4.5",
|
|
145
|
-
"typescript-eslint": "^8.18.
|
|
145
|
+
"typescript-eslint": "^8.18.2",
|
|
146
146
|
"unplugin-purge-polyfills": "^0.0.7"
|
|
147
147
|
},
|
|
148
148
|
"overrides": {
|