Skip to content

Commit d8c4a18

Browse files
authored
Merge pull request #455 from arduino/dependabot/npm_and_yarn/semver-7.7.1
Bump semver from 7.7.0 to 7.7.1
2 parents d24c4b9 + 78e23fd commit d8c4a18

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
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.
6+
homepage:
67
license: isc
78
licenses:
89
- sources: LICENSE

dist/index.js

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

82178217
const debug = __nccwpck_require__(1159)
82188218
const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(5101)
8219-
const { safeRe: re, t } = __nccwpck_require__(5471)
8219+
const { safeRe: re, safeSrc: src, t } = __nccwpck_require__(5471)
82208220

82218221
const parseOptions = __nccwpck_require__(356)
82228222
const { compareIdentifiers } = __nccwpck_require__(3348)
@@ -8398,7 +8398,8 @@ class SemVer {
83988398
}
83998399
// Avoid an invalid semver results
84008400
if (identifier) {
8401-
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])
8401+
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
8402+
const match = `-${identifier}`.match(r)
84028403
if (!match || match[1] !== identifier) {
84038404
throw new Error(`invalid identifier: ${identifier}`)
84048405
}
@@ -9255,6 +9256,7 @@ exports = module.exports = {}
92559256
const re = exports.re = []
92569257
const safeRe = exports.safeRe = []
92579258
const src = exports.src = []
9259+
const safeSrc = exports.safeSrc = []
92589260
const t = exports.t = {}
92599261
let R = 0
92609262

@@ -9287,6 +9289,7 @@ const createToken = (name, value, isGlobal) => {
92879289
debug(name, index, value)
92889290
t[name] = index
92899291
src[index] = value
9292+
safeSrc[index] = safe
92909293
re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
92919294
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
92929295
}

package-lock.json

+4-4
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
"@actions/core": "^1.11.1",
1919
"@actions/http-client": "^2.2.3",
2020
"@actions/tool-cache": "^2.0.2",
21-
"semver": "^7.7.0"
21+
"semver": "^7.7.1"
2222
},
2323
"devDependencies": {
2424
"@actions/io": "^1.1.3",

0 commit comments

Comments
 (0)