snyk 1.1279.0 → 1.1280.0
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/245.index.js +7 -3
- package/dist/cli/245.index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +2 -2
- package/package.json +1 -1
- package/src/generated/sha256sums.txt +8 -8
- package/src/generated/version +1 -1
- package/wrapper_dist/generated/sha256sums.txt +8 -8
- package/wrapper_dist/generated/version +1 -1
package/dist/cli/245.index.js
CHANGED
|
@@ -222697,9 +222697,13 @@ const getChildNodeKey = (name, version, ancestry, pkgs, pkgKeysByName) => {
|
|
|
222697
222697
|
}
|
|
222698
222698
|
}
|
|
222699
222699
|
// So now we can check semver to filter out some values
|
|
222700
|
-
|
|
222701
|
-
|
|
222702
|
-
|
|
222700
|
+
// if our version is valid semver
|
|
222701
|
+
if (semver.validRange(version)) {
|
|
222702
|
+
const candidatePkgVersion = pkgs[candidate].version;
|
|
222703
|
+
const doesVersionSatisfySemver = semver.satisfies(candidatePkgVersion, version);
|
|
222704
|
+
return doesVersionSatisfySemver;
|
|
222705
|
+
}
|
|
222706
|
+
return true;
|
|
222703
222707
|
});
|
|
222704
222708
|
if (filteredCandidates.length === 1) {
|
|
222705
222709
|
return filteredCandidates[0];
|