Package Exports
- semver-intersect
- semver-intersect/semver-intersect.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (semver-intersect) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
semver-intersect

Get the intersection of multiple semver ranges
const { intersect } = require('semver-intersect');
// ^4.1.0
intersect('^4.0.0', '^4.1.0');
// ~4.3.0
intersect('^4.0.0', '~4.3.0');
// ~4.3.89
intersect('^4.0.0', '~4.3.89', '~4.3.24', '~4.3.63');
// throws "Range >=4.5.0 is not compatible with <4.4.0"
intersect('^4.0.0', '~4.3.0', '^4.5.0')