semver 7.5.3 → 7.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/classes/range.js +1 -1
- package/internal/re.js +6 -2
- package/package.json +3 -3
package/classes/range.js
CHANGED
|
@@ -38,7 +38,7 @@ class Range {
|
|
|
38
38
|
this.set = this.raw
|
|
39
39
|
.split('||')
|
|
40
40
|
// map the range to a 2d array of comparators
|
|
41
|
-
.map(r => this.parseRange(r))
|
|
41
|
+
.map(r => this.parseRange(r.trim()))
|
|
42
42
|
// throw out any comparator lists that are empty
|
|
43
43
|
// this generally means that it was not a valid range, which is allowed
|
|
44
44
|
// in loose mode, but will still throw if the WHOLE range is invalid.
|
package/internal/re.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
const {
|
|
1
|
+
const {
|
|
2
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
3
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
4
|
+
MAX_LENGTH,
|
|
5
|
+
} = require('./constants')
|
|
2
6
|
const debug = require('./debug')
|
|
3
7
|
exports = module.exports = {}
|
|
4
8
|
|
|
@@ -19,7 +23,7 @@ const LETTERDASHNUMBER = '[a-zA-Z0-9-]'
|
|
|
19
23
|
// all input should have extra whitespace removed.
|
|
20
24
|
const safeRegexReplacements = [
|
|
21
25
|
['\\s', 1],
|
|
22
|
-
['\\d',
|
|
26
|
+
['\\d', MAX_LENGTH],
|
|
23
27
|
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
|
|
24
28
|
]
|
|
25
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semver",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.4",
|
|
4
4
|
"description": "The semantic version parser used by npm.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@npmcli/eslint-config": "^4.0.0",
|
|
17
|
-
"@npmcli/template-oss": "4.
|
|
17
|
+
"@npmcli/template-oss": "4.17.0",
|
|
18
18
|
"tap": "^16.0.0"
|
|
19
19
|
},
|
|
20
20
|
"license": "ISC",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"author": "GitHub Inc.",
|
|
54
54
|
"templateOSS": {
|
|
55
55
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
56
|
-
"version": "4.
|
|
56
|
+
"version": "4.17.0",
|
|
57
57
|
"engines": ">=10",
|
|
58
58
|
"ciVersions": [
|
|
59
59
|
"10.0.0",
|