fix: use npm install (#77)

This commit is contained in:
Luca Casonato authored and GitHub committed 2024-09-13 18:57:49 +02:00
1 parent 084daf99a8
commit 90ced52839
771 files changed
+307 -127

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
const Range = require('../classes/range')
const validRange = (range, options) => {
try {
// Return '*' instead of '' so that truthiness works.
// This will throw if it's invalid anyway
return new Range(range, options).range || '*'
} catch (er) {
return null
}
}
module.exports = validRange