Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

version-satisfies-range.js 341 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
  1. const semver = require('semver')
  2. // workaround for Enterprise Server 11.10.340 because we can't use semver to
  3. // compare it to 2.x like we can with 2.0+
  4. module.exports = function versionSatisfiesRange (version, range) {
  5. if (version === '11.10.340') return range.startsWith('<')
  6. return semver.satisfies(semver.coerce(version), range)
  7. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...