semver 7.3.6 → 7.3.7
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/bin/semver.js +2 -1
- package/classes/semver.js +1 -1
- package/functions/inc.js +4 -1
- package/package.json +6 -5
package/bin/semver.js
CHANGED
|
@@ -37,8 +37,9 @@ const main = () => {
|
|
|
37
37
|
let a = argv.shift()
|
|
38
38
|
const indexOfEqualSign = a.indexOf('=')
|
|
39
39
|
if (indexOfEqualSign !== -1) {
|
|
40
|
+
const value = a.slice(indexOfEqualSign + 1)
|
|
40
41
|
a = a.slice(0, indexOfEqualSign)
|
|
41
|
-
argv.unshift(
|
|
42
|
+
argv.unshift(value)
|
|
42
43
|
}
|
|
43
44
|
switch (a) {
|
|
44
45
|
case '-rv': case '-rev': case '--rev': case '--reverse':
|
package/classes/semver.js
CHANGED
|
@@ -265,7 +265,7 @@ class SemVer {
|
|
|
265
265
|
if (identifier) {
|
|
266
266
|
// 1.2.0-beta.1 bumps to 1.2.0-beta.2,
|
|
267
267
|
// 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
|
|
268
|
-
if (this.prerelease[0] ===
|
|
268
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
269
269
|
if (isNaN(this.prerelease[1])) {
|
|
270
270
|
this.prerelease = [identifier, 0]
|
|
271
271
|
}
|
package/functions/inc.js
CHANGED
|
@@ -7,7 +7,10 @@ const inc = (version, release, options, identifier) => {
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
try {
|
|
10
|
-
return new SemVer(
|
|
10
|
+
return new SemVer(
|
|
11
|
+
version instanceof SemVer ? version.version : version,
|
|
12
|
+
options
|
|
13
|
+
).inc(release, identifier).version
|
|
11
14
|
} catch (er) {
|
|
12
15
|
return null
|
|
13
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semver",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.7",
|
|
4
4
|
"description": "The semantic version parser used by npm.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@npmcli/eslint-config": "^3.0.1",
|
|
21
|
-
"@npmcli/template-oss": "3.
|
|
21
|
+
"@npmcli/template-oss": "3.3.2",
|
|
22
22
|
"tap": "^16.0.0"
|
|
23
23
|
},
|
|
24
24
|
"license": "ISC",
|
|
@@ -44,15 +44,16 @@
|
|
|
44
44
|
"coverage-map": "map.js"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
|
-
"node": "
|
|
47
|
+
"node": ">=10"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"lru-cache": "^
|
|
50
|
+
"lru-cache": "^6.0.0"
|
|
51
51
|
},
|
|
52
52
|
"author": "GitHub Inc.",
|
|
53
53
|
"templateOSS": {
|
|
54
54
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
55
|
-
"version": "3.
|
|
55
|
+
"version": "3.3.2",
|
|
56
|
+
"engines": ">=10",
|
|
56
57
|
"ciVersions": [
|
|
57
58
|
"10.0.0",
|
|
58
59
|
"10.x",
|