@socketsecurity/cli-with-sentry 0.15.25 → 0.15.26
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 -2
- package/dist/cli.js.map +1 -1
- package/dist/constants.js +3 -3
- package/dist/constants.js.map +1 -1
- package/dist/shadow-inject.js +12 -7
- package/dist/shadow-inject.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4286,6 +4286,10 @@ async function npmFix(pkgEnvDetails, {
|
|
|
4286
4286
|
firstPatchedVersionIdentifier,
|
|
4287
4287
|
vulnerableVersionRange
|
|
4288
4288
|
} of infos.values()) {
|
|
4289
|
+
if (vendor.semverExports.gte(oldVersion, firstPatchedVersionIdentifier)) {
|
|
4290
|
+
debug.debugLog(`${oldId} is >= ${firstPatchedVersionIdentifier}, skipping.`);
|
|
4291
|
+
continue infosLoop;
|
|
4292
|
+
}
|
|
4289
4293
|
const newVersion = shadowInject.findBestPatchVersion(node, availableVersions, vulnerableVersionRange);
|
|
4290
4294
|
const newVersionPackument = newVersion ? packument.versions[newVersion] : undefined;
|
|
4291
4295
|
if (!(newVersion && newVersionPackument)) {
|
|
@@ -4688,7 +4692,7 @@ async function pnpmFix(pkgEnvDetails, {
|
|
|
4688
4692
|
|
|
4689
4693
|
// actualTree may not be defined on the first iteration of pkgJsonPathsLoop.
|
|
4690
4694
|
if (!actualTree) {
|
|
4691
|
-
const maybeActualTree = fs$1.existsSync(path.join(rootPath, 'node_modules')) ?
|
|
4695
|
+
const maybeActualTree = isCi && fs$1.existsSync(path.join(rootPath, 'node_modules')) ?
|
|
4692
4696
|
// eslint-disable-next-line no-await-in-loop
|
|
4693
4697
|
await getActualTree(cwd) :
|
|
4694
4698
|
// eslint-disable-next-line no-await-in-loop
|
|
@@ -4746,6 +4750,10 @@ async function pnpmFix(pkgEnvDetails, {
|
|
|
4746
4750
|
firstPatchedVersionIdentifier,
|
|
4747
4751
|
vulnerableVersionRange
|
|
4748
4752
|
} of infos.values()) {
|
|
4753
|
+
if (vendor.semverExports.gte(oldVersion, firstPatchedVersionIdentifier)) {
|
|
4754
|
+
debug.debugLog(`${oldId} is >= ${firstPatchedVersionIdentifier}, skipping.`);
|
|
4755
|
+
continue infosLoop;
|
|
4756
|
+
}
|
|
4749
4757
|
const newVersion = shadowInject.findBestPatchVersion(node, availableVersions, vulnerableVersionRange);
|
|
4750
4758
|
const newVersionPackument = newVersion ? packument.versions[newVersion] : undefined;
|
|
4751
4759
|
if (!(newVersion && newVersionPackument)) {
|
|
@@ -12694,5 +12702,5 @@ void (async () => {
|
|
|
12694
12702
|
await utils.captureException(e);
|
|
12695
12703
|
}
|
|
12696
12704
|
})();
|
|
12697
|
-
//# debugId=
|
|
12705
|
+
//# debugId=fc951913-c543-4f4f-aef4-8c8e6d016539
|
|
12698
12706
|
//# sourceMappingURL=cli.js.map
|