@socketsecurity/cli-with-sentry 1.0.51 → 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.
|
|
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.
|
|
35593
|
+
"@socketsecurity/registry": "1.0.230"
|
|
35594
35594
|
};
|
|
35595
35595
|
var devDependencies = {
|
|
35596
35596
|
"@biomejs/biome": "2.1.1",
|
|
35597
|
-
"@dotenvx/dotenvx": "1.47.
|
|
35597
|
+
"@dotenvx/dotenvx": "1.47.5",
|
|
35598
35598
|
"@eslint/compat": "1.3.1",
|
|
35599
|
-
"@eslint/js": "9.
|
|
35600
|
-
"@types/node": "24.0.
|
|
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.
|
|
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
|
|
41076
|
-
const rawCommand =
|
|
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 =
|
|
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:
|
|
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=
|
|
172550
|
+
//# debugId=49175a13-2fbc-45ec-a696-5df9b44f83af
|
|
172542
172551
|
//# sourceMappingURL=vendor.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socketsecurity/cli-with-sentry",
|
|
3
|
-
"version": "1.0.
|
|
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",
|
|
@@ -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.
|
|
116
|
-
"@socketsecurity/sdk": "1.4.
|
|
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",
|
|
@@ -157,7 +157,7 @@
|
|
|
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.
|
|
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",
|