Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yarnpkg/core

Package Overview
Dependencies
Maintainers
0
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/core - npm Package Compare versions

Comparing version 4.1.2 to 4.1.3

18

lib/semverUtils.js

@@ -182,3 +182,3 @@ "use strict";

function simplifyRanges(ranges) {
const parsedRanges = ranges.map(range => validRange(range).set.map(comparators => comparators.map(comparator => getComparator(comparator))));
const parsedRanges = ranges.map(removeSubsets).map(range => validRange(range).set.map(comparators => comparators.map(comparator => getComparator(comparator))));
let alternatives = parsedRanges.shift().map(comparators => mergeComparators(comparators))

@@ -205,1 +205,17 @@ .filter((range) => range !== null);

}
function removeSubsets(rangeString) {
const parts = rangeString.split(`||`);
if (parts.length > 1) {
const newParts = new Set();
for (const potentialSubset of parts) {
if (!parts.some(part => part !== potentialSubset && semver_1.default.subset(potentialSubset, part))) {
newParts.add(potentialSubset);
}
}
if (newParts.size < parts.length) {
const newRange = [...newParts].join(` || `);
return newRange;
}
}
return rangeString;
}

6

package.json
{
"name": "@yarnpkg/core",
"version": "4.1.2",
"version": "4.1.3",
"license": "BSD-2-Clause",

@@ -18,3 +18,3 @@ "main": "./lib/index.js",

"@yarnpkg/parsers": "^3.0.2",
"@yarnpkg/shell": "^4.0.2",
"@yarnpkg/shell": "^4.1.0",
"camelcase": "^5.3.1",

@@ -53,3 +53,3 @@ "chalk": "^3.0.0",

"@types/tunnel": "^0.0.0",
"@yarnpkg/cli": "^4.4.0",
"@yarnpkg/cli": "^4.5.0",
"@yarnpkg/plugin-link": "^3.0.0",

@@ -56,0 +56,0 @@ "@yarnpkg/plugin-npm": "^3.0.1",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc