@socketsecurity/cli-with-sentry 1.0.50 → 1.0.52

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/vendor.js CHANGED
@@ -35507,7 +35507,7 @@ var isInteractiveExports = /*@__PURE__*/ requireIsInteractive();
35507
35507
  var dist$e = {};
35508
35508
 
35509
35509
  var name$2 = "@socketsecurity/sdk";
35510
- var version$5 = "1.4.53";
35510
+ var version$5 = "1.4.54";
35511
35511
  var license = "MIT";
35512
35512
  var description = "SDK for the Socket API client";
35513
35513
  var author = {
@@ -35590,18 +35590,18 @@ var scripts = {
35590
35590
  "update:deps": "npx --yes npm-check-updates"
35591
35591
  };
35592
35592
  var dependencies = {
35593
- "@socketsecurity/registry": "1.0.226"
35593
+ "@socketsecurity/registry": "1.0.230"
35594
35594
  };
35595
35595
  var devDependencies = {
35596
35596
  "@biomejs/biome": "2.1.1",
35597
- "@dotenvx/dotenvx": "1.47.3",
35597
+ "@dotenvx/dotenvx": "1.47.5",
35598
35598
  "@eslint/compat": "1.3.1",
35599
- "@eslint/js": "9.30.1",
35600
- "@types/node": "24.0.12",
35599
+ "@eslint/js": "9.31.0",
35600
+ "@types/node": "24.0.13",
35601
35601
  "@typescript-eslint/parser": "8.36.0",
35602
35602
  "@vitest/coverage-v8": "3.2.4",
35603
35603
  "del-cli": "6.0.0",
35604
- eslint: "9.30.1",
35604
+ eslint: "9.31.0",
35605
35605
  "eslint-import-resolver-typescript": "4.4.4",
35606
35606
  "eslint-plugin-import-x": "4.16.1",
35607
35607
  "eslint-plugin-jsdoc": "51.3.4",
@@ -40862,6 +40862,48 @@ const isWsl = () => {
40862
40862
  };
40863
40863
  var isWsl$1 = process$2.env.__IS_WSL_TEST__ ? isWsl : isWsl();
40864
40864
 
40865
+ const wslDrivesMountPoint = (() => {
40866
+ // Default value for "root" param
40867
+ // according to https://docs.microsoft.com/en-us/windows/wsl/wsl-config
40868
+ const defaultMountPoint = '/mnt/';
40869
+ let mountPoint;
40870
+ return async function () {
40871
+ if (mountPoint) {
40872
+ // Return memoized mount point value
40873
+ return mountPoint;
40874
+ }
40875
+ const configFilePath = '/etc/wsl.conf';
40876
+ let isConfigFileExists = false;
40877
+ try {
40878
+ await fs$2.access(configFilePath, fs$2.constants.F_OK);
40879
+ isConfigFileExists = true;
40880
+ } catch {}
40881
+ if (!isConfigFileExists) {
40882
+ return defaultMountPoint;
40883
+ }
40884
+ const configContent = await fs$2.readFile(configFilePath, {
40885
+ encoding: 'utf8'
40886
+ });
40887
+ const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
40888
+ if (!configMountPoint) {
40889
+ return defaultMountPoint;
40890
+ }
40891
+ mountPoint = configMountPoint.groups.mountPoint.trim();
40892
+ mountPoint = mountPoint.endsWith('/') ? mountPoint : `${mountPoint}/`;
40893
+ return mountPoint;
40894
+ };
40895
+ })();
40896
+ const powerShellPathFromWsl = async () => {
40897
+ const mountPoint = await wslDrivesMountPoint();
40898
+ return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
40899
+ };
40900
+ const powerShellPath = async () => {
40901
+ if (isWsl$1) {
40902
+ return powerShellPathFromWsl();
40903
+ }
40904
+ return `${process$2.env.SYSTEMROOT || process$2.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
40905
+ };
40906
+
40865
40907
  function defineLazyProperty(object, propertyName, valueGetter) {
40866
40908
  const define = value => Object.defineProperty(object, propertyName, {
40867
40909
  value,
@@ -41018,62 +41060,14 @@ const {
41018
41060
  arch
41019
41061
  } = process$2;
41020
41062
 
41021
- /**
41022
- Get the mount point for fixed drives in WSL.
41023
-
41024
- @inner
41025
- @returns {string} The mount point.
41026
- */
41027
- const getWslDrivesMountPoint = (() => {
41028
- // Default value for "root" param
41029
- // according to https://docs.microsoft.com/en-us/windows/wsl/wsl-config
41030
- const defaultMountPoint = '/mnt/';
41031
- let mountPoint;
41032
- return async function () {
41033
- if (mountPoint) {
41034
- // Return memoized mount point value
41035
- return mountPoint;
41036
- }
41037
- const configFilePath = '/etc/wsl.conf';
41038
- let isConfigFileExists = false;
41039
- try {
41040
- await fs$2.access(configFilePath, fs$2.constants.F_OK);
41041
- isConfigFileExists = true;
41042
- } catch {}
41043
- if (!isConfigFileExists) {
41044
- return defaultMountPoint;
41045
- }
41046
- const configContent = await fs$2.readFile(configFilePath, {
41047
- encoding: 'utf8'
41048
- });
41049
- const configMountPoint = /(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(configContent);
41050
- if (!configMountPoint) {
41051
- return defaultMountPoint;
41052
- }
41053
- mountPoint = configMountPoint.groups.mountPoint.trim();
41054
- mountPoint = mountPoint.endsWith('/') ? mountPoint : `${mountPoint}/`;
41055
- return mountPoint;
41056
- };
41057
- })();
41058
-
41059
- /**
41060
- Get the PowerShell executable path in WSL environment.
41061
-
41062
- @returns {Promise<string>} The absolute path to the PowerShell executable in WSL.
41063
- */
41064
- const getPowershellPathFromWsl = async () => {
41065
- const mountPoint = await getWslDrivesMountPoint();
41066
- return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
41067
- };
41068
-
41069
41063
  /**
41070
41064
  Get the default browser name in Windows from WSL.
41071
41065
 
41072
41066
  @returns {Promise<string>} Browser name.
41073
41067
  */
41074
41068
  async function getWindowsDefaultBrowserFromWsl() {
41075
- const powershellPath = await getPowershellPathFromWsl();
41076
- const rawCommand = '(Get-ItemProperty -Path "HKCU:\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice").ProgId';
41069
+ const powershellPath = await powerShellPath();
41070
+ const rawCommand = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`;
41077
41071
  const encodedCommand = node_buffer.Buffer.from(rawCommand, 'utf16le').toString('base64');
41078
41072
  const {
41079
41073
  stdout
@@ -41085,6 +41079,7 @@ async function getWindowsDefaultBrowserFromWsl() {
41085
41079
  // Map ProgId to browser IDs
41086
41080
  const browserMap = {
41087
41081
  ChromeHTML: 'com.google.chrome',
41082
+ BraveHTML: 'com.brave.Browser',
41088
41083
  MSEdgeHTM: 'com.microsoft.edge',
41089
41084
  FirefoxURL: 'org.mozilla.firefox'
41090
41085
  };
@@ -41103,6 +41098,8 @@ const pTryEach = async (array, mapper) => {
41103
41098
  }
41104
41099
  throw latestError;
41105
41100
  };
41101
+
41102
+ // eslint-disable-next-line complexity
41106
41103
  const baseOpen = async options => {
41107
41104
  options = {
41108
41105
  wait: false,
@@ -41136,6 +41133,7 @@ const baseOpen = async options => {
41136
41133
  const ids = {
41137
41134
  'com.google.chrome': 'chrome',
41138
41135
  'google-chrome.desktop': 'chrome',
41136
+ 'com.brave.Browser': 'brave',
41139
41137
  'org.mozilla.firefox': 'firefox',
41140
41138
  'firefox.desktop': 'firefox',
41141
41139
  'com.microsoft.msedge': 'edge',
@@ -41147,6 +41145,7 @@ const baseOpen = async options => {
41147
41145
  // Incognito flags for each browser in `apps`.
41148
41146
  const flags = {
41149
41147
  chrome: '--incognito',
41148
+ brave: '--incognito',
41150
41149
  firefox: '--private-window',
41151
41150
  edge: '--inPrivate'
41152
41151
  };
@@ -41184,7 +41183,7 @@ const baseOpen = async options => {
41184
41183
  cliArguments.push('-a', app);
41185
41184
  }
41186
41185
  } else if (platform === 'win32' || isWsl$1 && !isInsideContainer() && !app) {
41187
- command = isWsl$1 ? await getPowershellPathFromWsl() : `${process$2.env.SYSTEMROOT || process$2.env.windir || 'C:\\Windows'}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
41186
+ command = await powerShellPath();
41188
41187
  cliArguments.push('-NoProfile', '-NonInteractive', '-ExecutionPolicy', 'Bypass', '-EncodedCommand');
41189
41188
  if (!isWsl$1) {
41190
41189
  childProcessOptions.windowsVerbatimArguments = true;
@@ -41305,9 +41304,19 @@ defineLazyProperty(apps, 'chrome', () => detectPlatformBinary({
41305
41304
  x64: ['/mnt/c/Program Files/Google/Chrome/Application/chrome.exe', '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe']
41306
41305
  }
41307
41306
  }));
41307
+ defineLazyProperty(apps, 'brave', () => detectPlatformBinary({
41308
+ darwin: 'brave browser',
41309
+ win32: 'brave',
41310
+ linux: ['brave-browser', 'brave']
41311
+ }, {
41312
+ wsl: {
41313
+ ia32: '/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe',
41314
+ x64: ['/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe', '/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe']
41315
+ }
41316
+ }));
41308
41317
  defineLazyProperty(apps, 'firefox', () => detectPlatformBinary({
41309
41318
  darwin: 'firefox',
41310
- win32: 'C:\\Program Files\\Mozilla Firefox\\firefox.exe',
41319
+ win32: String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,
41311
41320
  linux: 'firefox'
41312
41321
  }, {
41313
41322
  wsl: '/mnt/c/Program Files/Mozilla Firefox/firefox.exe'
@@ -172538,5 +172547,5 @@ exports.terminalLinkExports = terminalLinkExports;
172538
172547
  exports.updater = updater$1;
172539
172548
  exports.yargsParser = yargsParser;
172540
172549
  exports.yoctocolorsCjsExports = yoctocolorsCjsExports;
172541
- //# debugId=e91c2a80-9cb3-4be1-a0fe-0ce49250131c
172550
+ //# debugId=49175a13-2fbc-45ec-a696-5df9b44f83af
172542
172551
  //# sourceMappingURL=vendor.js.map
@@ -19,7 +19,7 @@ function determineArticle(word) {
19
19
 
20
20
  /*@__NO_SIDE_EFFECTS__*/
21
21
  function pluralize(word, count = 1) {
22
- return count > 1 ? `${word}s` : word
22
+ return count === 0 || count > 1 ? `${word}s` : word
23
23
  }
24
24
 
25
25
  module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@socketsecurity/cli-with-sentry",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "description": "CLI 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",
@@ -87,9 +87,9 @@
87
87
  "@biomejs/biome": "2.1.1",
88
88
  "@coana-tech/cli": "14.10.3",
89
89
  "@cyclonedx/cdxgen": "11.4.3",
90
- "@dotenvx/dotenvx": "1.47.3",
90
+ "@dotenvx/dotenvx": "1.47.5",
91
91
  "@eslint/compat": "1.3.1",
92
- "@eslint/js": "9.30.1",
92
+ "@eslint/js": "9.31.0",
93
93
  "@npmcli/arborist": "9.1.2",
94
94
  "@npmcli/config": "10.3.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.8",
114
114
  "@socketsecurity/config": "3.0.1",
115
- "@socketsecurity/registry": "1.0.229",
116
- "@socketsecurity/sdk": "1.4.53",
115
+ "@socketsecurity/registry": "1.0.230",
116
+ "@socketsecurity/sdk": "1.4.54",
117
117
  "@types/blessed": "0.1.25",
118
118
  "@types/cmd-shim": "5.0.2",
119
119
  "@types/js-yaml": "4.0.9",
@@ -127,7 +127,7 @@
127
127
  "@types/which": "3.0.4",
128
128
  "@types/yargs-parser": "21.0.3",
129
129
  "@typescript-eslint/parser": "8.36.0",
130
- "@typescript/native-preview": "7.0.0-dev.20250710.1",
130
+ "@typescript/native-preview": "7.0.0-dev.20250712.1",
131
131
  "@vitest/coverage-v8": "3.2.4",
132
132
  "blessed": "0.1.81",
133
133
  "blessed-contrib": "4.11.0",
@@ -137,7 +137,7 @@
137
137
  "custompatch": "1.1.7",
138
138
  "del-cli": "6.0.0",
139
139
  "dev-null-cli": "2.0.0",
140
- "eslint": "9.30.1",
140
+ "eslint": "9.31.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.0",
@@ -157,12 +157,12 @@
157
157
  "nock": "14.0.5",
158
158
  "npm-package-arg": "12.0.2",
159
159
  "npm-run-all2": "8.0.4",
160
- "open": "10.1.2",
160
+ "open": "10.2.0",
161
161
  "oxlint": "1.6.0",
162
162
  "pony-cause": "2.1.11",
163
163
  "registry-auth-token": "5.1.0",
164
164
  "registry-url": "7.2.0",
165
- "rollup": "4.44.2",
165
+ "rollup": "4.45.0",
166
166
  "semver": "7.7.2",
167
167
  "synp": "1.9.14",
168
168
  "terminal-link": "2.1.1",
@@ -1 +0,0 @@
1
- {"version":3,"file":"git.d.mts","sourceRoot":"","sources":["../../../../src/commands/fix/git.mts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AAa1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAGpE,MAAM,MAAM,6BAA6B,GAAG;IAC1C,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,CAAA;AAMD,MAAM,MAAM,kBAAkB,GAAG,CAC/B,MAAM,EAAE,MAAM,KACX,uBAAuB,GAAG,IAAI,CAAA;AAEnC,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,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