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

check-if-next-version-only.js 653 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
  1. const { next, latest } = require('./enterprise-server-releases')
  2. const versionSatisfiesRange = require('./version-satisfies-range')
  3. // Special handling for frontmatter that evalues to the next GHES release number or a hardcoded `next`:
  4. // we don't want to return it as an applicable version or it will become a permalink,
  5. // but we also don't want to throw an error if no other versions are found.
  6. module.exports = function checkIfNextVersionOnly (value) {
  7. if (value === '*') return false
  8. const ghesNextVersionOnly = versionSatisfiesRange(next, value) && !versionSatisfiesRange(latest, value)
  9. return (ghesNextVersionOnly || value === 'next')
  10. }
Tip!

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

Comments

Loading...