aboutsummaryrefslogtreecommitdiffstats
path: root/backend/node_modules/semver/functions/valid.js
diff options
context:
space:
mode:
Diffstat (limited to 'backend/node_modules/semver/functions/valid.js')
-rw-r--r--backend/node_modules/semver/functions/valid.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/node_modules/semver/functions/valid.js b/backend/node_modules/semver/functions/valid.js
new file mode 100644
index 0000000..f27bae1
--- /dev/null
+++ b/backend/node_modules/semver/functions/valid.js
@@ -0,0 +1,6 @@
+const parse = require('./parse')
+const valid = (version, options) => {
+ const v = parse(version, options)
+ return v ? v.version : null
+}
+module.exports = valid