chore: migrate code to ESM (#73)

This commit is contained in:
Luca Casonato authored and GitHub committed 2024-09-13 17:15:41 +02:00
1 parent f8480e68ca
commit f1ac2c87b8
905 files changed
+69790 -56120

No files matched your search

-11
View File
@@ -1,11 +0,0 @@
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