aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/semver/functions/parse.js
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/semver/functions/parse.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/semver/functions/parse.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/semver/functions/parse.js b/sandbox/testAppNevena/Front/node_modules/semver/functions/parse.js
deleted file mode 100644
index 11f20f03..00000000
--- a/sandbox/testAppNevena/Front/node_modules/semver/functions/parse.js
+++ /dev/null
@@ -1,33 +0,0 @@
-const {MAX_LENGTH} = require('../internal/constants')
-const { re, t } = require('../internal/re')
-const SemVer = require('../classes/semver')
-
-const parseOptions = require('../internal/parse-options')
-const parse = (version, options) => {
- options = parseOptions(options)
-
- if (version instanceof SemVer) {
- return version
- }
-
- if (typeof version !== 'string') {
- return null
- }
-
- if (version.length > MAX_LENGTH) {
- return null
- }
-
- const r = options.loose ? re[t.LOOSE] : re[t.FULL]
- if (!r.test(version)) {
- return null
- }
-
- try {
- return new SemVer(version, options)
- } catch (er) {
- return null
- }
-}
-
-module.exports = parse