@socketsecurity/cli-with-sentry 0.15.22 → 0.15.23
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/cli.js +10 -9
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -5
- package/dist/constants.js.map +1 -1
- package/dist/shadow-inject.js +27 -16
- package/dist/shadow-inject.js.map +1 -1
- package/dist/utils.js +99 -83
- package/dist/utils.js.map +1 -1
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -4046,7 +4046,7 @@ async function setGitRemoteGitHubRepoUrl(owner, repo, token, cwd = process.cwd()
|
|
|
4046
4046
|
}
|
|
4047
4047
|
|
|
4048
4048
|
const CMD_NAME$1 = 'socket fix';
|
|
4049
|
-
function
|
|
4049
|
+
function getAlertsMapOptions(options = {}) {
|
|
4050
4050
|
return {
|
|
4051
4051
|
__proto__: null,
|
|
4052
4052
|
consolidate: true,
|
|
@@ -4143,9 +4143,9 @@ async function npmFix(pkgEnvDetails, {
|
|
|
4143
4143
|
let actualTree = await arb.reify();
|
|
4144
4144
|
let alertsMap;
|
|
4145
4145
|
try {
|
|
4146
|
-
alertsMap = purls.length ? await utils.getAlertsMapFromPurls(purls,
|
|
4146
|
+
alertsMap = purls.length ? await utils.getAlertsMapFromPurls(purls, getAlertsMapOptions({
|
|
4147
4147
|
limit
|
|
4148
|
-
})) : await shadowInject.getAlertsMapFromArborist(arb,
|
|
4148
|
+
})) : await shadowInject.getAlertsMapFromArborist(arb, getAlertsMapOptions({
|
|
4149
4149
|
limit
|
|
4150
4150
|
}));
|
|
4151
4151
|
} catch (e) {
|
|
@@ -4474,9 +4474,10 @@ const {
|
|
|
4474
4474
|
PNPM: PNPM$7
|
|
4475
4475
|
} = constants;
|
|
4476
4476
|
async function getActualTree(cwd = process.cwd()) {
|
|
4477
|
-
//
|
|
4478
|
-
//
|
|
4479
|
-
// our usage to --dry-run loading
|
|
4477
|
+
// @npmcli/arborist DOES have partial support for pnpm structured node_modules
|
|
4478
|
+
// folders. However, support is iffy resulting in unhappy path errors and hangs.
|
|
4479
|
+
// So, to avoid the unhappy path, we restrict our usage to --dry-run loading
|
|
4480
|
+
// of the node_modules folder.
|
|
4480
4481
|
const arb = new shadowInject.SafeArborist({
|
|
4481
4482
|
path: cwd,
|
|
4482
4483
|
...shadowInject.SAFE_ARBORIST_REIFY_OPTIONS_OVERRIDES
|
|
@@ -4567,9 +4568,9 @@ async function pnpmFix(pkgEnvDetails, {
|
|
|
4567
4568
|
}
|
|
4568
4569
|
let alertsMap;
|
|
4569
4570
|
try {
|
|
4570
|
-
alertsMap = purls.length ? await utils.getAlertsMapFromPurls(purls,
|
|
4571
|
+
alertsMap = purls.length ? await utils.getAlertsMapFromPurls(purls, getAlertsMapOptions({
|
|
4571
4572
|
limit
|
|
4572
|
-
})) : await utils.getAlertsMapFromPnpmLockfile(lockfile,
|
|
4573
|
+
})) : await utils.getAlertsMapFromPnpmLockfile(lockfile, getAlertsMapOptions({
|
|
4573
4574
|
limit
|
|
4574
4575
|
}));
|
|
4575
4576
|
} catch (e) {
|
|
@@ -12606,5 +12607,5 @@ void (async () => {
|
|
|
12606
12607
|
await utils.captureException(e);
|
|
12607
12608
|
}
|
|
12608
12609
|
})();
|
|
12609
|
-
//# debugId=
|
|
12610
|
+
//# debugId=c94f3f7e-3083-4d96-937a-6613d7ce5dce
|
|
12610
12611
|
//# sourceMappingURL=cli.js.map
|