socket 0.14.36 → 0.14.38

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 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,
@@ -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
- 'bun.lock': BUN$1,
824
- 'bun.lockb': BUN$1,
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
- 'yarn.lock': YARN_CLASSIC$1,
837
+ [`yarn${LOCK_EXT$1}`]: YARN_CLASSIC$1,
834
838
  'vlt-lock.json': VLT$1,
835
- // Look for a hidden lock file if .npmrc has package-lock=false:
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 === '.lock') {
860
+ if (ext === LOCK_EXT$1) {
857
861
  return await defaultReader(lockPath);
858
862
  }
859
- if (ext === '.lockb') {
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
- return (lockBasename === '.lock' ? npmLockIncludes : yarnLockIncludes)(lockSrc, name);
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
- if (input) {
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
- if (input) {
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
  readonly NPM_REGISTRY_URL: 'https://registry.npmjs.org';
12
14
  readonly NPX: 'npx';
13
15
  readonly PNPM: 'pnpm';
@@ -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,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,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,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"}
@@ -30,7 +30,7 @@ var sdk = require('./sdk.js');
30
30
  var constants = require('./constants.js');
31
31
  var pathResolve = require('./path-resolve.js');
32
32
 
33
- var version = "0.14.36";
33
+ var version = "0.14.38";
34
34
 
35
35
  const NEWLINE_CHAR_CODE = 10; /*'\n'*/
36
36
 
@@ -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
- 'bun.lock': BUN$1,
820
- 'bun.lockb': BUN$1,
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
- 'yarn.lock': YARN_CLASSIC$1,
833
+ [`yarn${LOCK_EXT$1}`]: YARN_CLASSIC$1,
830
834
  'vlt-lock.json': VLT$1,
831
- // Look for a hidden lock file if .npmrc has package-lock=false:
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 === '.lock') {
856
+ if (ext === LOCK_EXT$1) {
853
857
  return await defaultReader(lockPath);
854
858
  }
855
- if (ext === '.lockb') {
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
- return (lockBasename === '.lock' ? npmLockIncludes : yarnLockIncludes)(lockSrc, name);
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
- if (input) {
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
- if (input) {
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","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AAA;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"}
@@ -30,7 +30,7 @@ var sdk = require('./sdk.js');
30
30
  var constants = require('./constants.js');
31
31
  var pathResolve = require('./path-resolve.js');
32
32
 
33
- var version = "0.14.36";
33
+ var version = "0.14.38";
34
34
 
35
35
  const NEWLINE_CHAR_CODE = 10; /*'\n'*/
36
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket",
3
- "version": "0.14.36",
3
+ "version": "0.14.38",
4
4
  "description": "CLI tool for Socket.dev",
5
5
  "homepage": "http://github.com/SocketDev/socket-cli",
6
6
  "license": "MIT",
@@ -14,9 +14,9 @@
14
14
  "url": "https://socket.dev"
15
15
  },
16
16
  "bin": {
17
- "socket": "./bin/cli.js",
18
- "socket-npm": "./bin/npm-cli.js",
19
- "socket-npx": "./bin/npx-cli.js"
17
+ "socket": "bin/cli.js",
18
+ "socket-npm": "bin/npm-cli.js",
19
+ "socket-npx": "bin/npx-cli.js"
20
20
  },
21
21
  "exports": {
22
22
  "./bin/cli.js": {
@@ -58,10 +58,10 @@
58
58
  "@apideck/better-ajv-errors": "^0.3.6",
59
59
  "@cyclonedx/cdxgen": "^11.0.7",
60
60
  "@npmcli/promise-spawn": "^8.0.2",
61
- "@socketregistry/hyrious__bun.lockb": "1.0.6",
61
+ "@socketregistry/hyrious__bun.lockb": "1.0.7",
62
62
  "@socketregistry/yocto-spinner": "^1.0.2",
63
63
  "@socketsecurity/config": "^2.1.3",
64
- "@socketsecurity/registry": "^1.0.56",
64
+ "@socketsecurity/registry": "^1.0.57",
65
65
  "@socketsecurity/sdk": "^1.3.0",
66
66
  "blessed": "^0.1.81",
67
67
  "blessed-contrib": "^4.11.0",
@@ -70,12 +70,18 @@
70
70
  "cmd-shim": "^7.0.0",
71
71
  "has-flag": "^4.0.0",
72
72
  "hpagent": "^1.2.0",
73
- "ignore": "^6.0.2",
73
+ "ignore": "^7.0.0",
74
+ "is-interactive": "^2.0.0",
75
+ "is-unicode-supported": "^2.1.0",
76
+ "meow": "^13.2.0",
74
77
  "micromatch": "^4.0.8",
75
78
  "npm-package-arg": "^12.0.1",
79
+ "open": "^10.1.0",
76
80
  "pony-cause": "^2.1.11",
77
81
  "semver": "^7.6.3",
78
82
  "synp": "^1.9.14",
83
+ "terminal-link": "^3.0.0",
84
+ "tiny-updater": "^3.5.2",
79
85
  "tinyglobby": "^0.2.10",
80
86
  "which": "^5.0.0",
81
87
  "yaml": "^2.6.1",
@@ -112,37 +118,31 @@
112
118
  "@types/update-notifier": "^6.0.8",
113
119
  "@types/which": "^3.0.4",
114
120
  "@types/yargs-parser": "^21.0.3",
115
- "@typescript-eslint/eslint-plugin": "^8.18.1",
116
- "@typescript-eslint/parser": "^8.18.1",
121
+ "@typescript-eslint/eslint-plugin": "^8.18.2",
122
+ "@typescript-eslint/parser": "^8.18.2",
117
123
  "c8": "^10.1.3",
118
124
  "custompatch": "^1.0.28",
119
125
  "eslint": "^9.17.0",
120
- "eslint-import-resolver-oxc": "^0.6.0",
126
+ "eslint-import-resolver-oxc": "^0.7.0",
121
127
  "eslint-plugin-depend": "^0.12.0",
122
128
  "eslint-plugin-import-x": "^4.6.1",
123
- "eslint-plugin-n": "^17.15.0",
129
+ "eslint-plugin-n": "^17.15.1",
124
130
  "eslint-plugin-sort-destructure-keys": "^2.0.0",
125
131
  "eslint-plugin-unicorn": "^56.0.1",
126
132
  "husky": "^9.1.7",
127
- "is-interactive": "^2.0.0",
128
- "is-unicode-supported": "^2.1.0",
129
133
  "knip": "^5.41.1",
130
134
  "magic-string": "^0.30.17",
131
- "meow": "^13.2.0",
132
135
  "mock-fs": "^5.4.1",
133
136
  "nock": "^13.5.6",
134
137
  "npm-run-all2": "^7.0.2",
135
- "open": "^10.1.0",
136
138
  "oxlint": "0.15.3",
137
139
  "prettier": "3.4.2",
138
140
  "read-package-up": "^11.0.0",
139
- "rollup": "4.28.1",
141
+ "rollup": "4.29.1",
140
142
  "rollup-plugin-ts": "^3.4.5",
141
- "terminal-link": "^3.0.0",
142
- "tiny-updater": "^3.5.2",
143
143
  "type-coverage": "^2.29.7",
144
144
  "typescript": "5.4.5",
145
- "typescript-eslint": "^8.18.1",
145
+ "typescript-eslint": "^8.18.2",
146
146
  "unplugin-purge-polyfills": "^0.0.7"
147
147
  },
148
148
  "overrides": {