Skip to content

Commit cc5a608

Browse files
authored
Merge pull request #1130 from arduino/dependabot/npm_and_yarn/semver-7.7.1
build(deps): bump semver from 7.7.0 to 7.7.1
2 parents 32fa0cf + 84b8de0 commit cc5a608

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.licenses/npm/semver-7.7.0.dep.yml renamed to .licenses/npm/semver-7.7.1.dep.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: semver
3-
version: 7.7.0
3+
version: 7.7.1
44
type: npm
55
summary: The semantic version parser used by npm.
66
homepage:

dist/index.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -8970,7 +8970,7 @@ const testSet = (set, version, options) => {
89708970

89718971
const debug = __nccwpck_require__(1159)
89728972
const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(5101)
8973-
const { safeRe: re, t } = __nccwpck_require__(5471)
8973+
const { safeRe: re, safeSrc: src, t } = __nccwpck_require__(5471)
89748974

89758975
const parseOptions = __nccwpck_require__(356)
89768976
const { compareIdentifiers } = __nccwpck_require__(3348)
@@ -9152,7 +9152,8 @@ class SemVer {
91529152
}
91539153
// Avoid an invalid semver results
91549154
if (identifier) {
9155-
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])
9155+
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
9156+
const match = `-${identifier}`.match(r)
91569157
if (!match || match[1] !== identifier) {
91579158
throw new Error(`invalid identifier: ${identifier}`)
91589159
}
@@ -10009,6 +10010,7 @@ exports = module.exports = {}
1000910010
const re = exports.re = []
1001010011
const safeRe = exports.safeRe = []
1001110012
const src = exports.src = []
10013+
const safeSrc = exports.safeSrc = []
1001210014
const t = exports.t = {}
1001310015
let R = 0
1001410016

@@ -10041,6 +10043,7 @@ const createToken = (name, value, isGlobal) => {
1004110043
debug(name, index, value)
1004210044
t[name] = index
1004310045
src[index] = value
10046+
safeSrc[index] = safe
1004410047
re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
1004510048
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
1004610049
}

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"dependencies": {
1919
"@actions/core": "^1.11.1",
2020
"@actions/tool-cache": "^2.0.2",
21-
"semver": "^7.7.0",
21+
"semver": "^7.7.1",
2222
"typed-rest-client": "^2.1.0"
2323
},
2424
"devDependencies": {

0 commit comments

Comments
 (0)