webext-schema
Advanced tools
Comparing version 5.1.6 to 5.1.7
@@ -181,3 +181,3 @@ /** | ||
func = commands.reset(id); | ||
} else if (/^(?:(?:(?:Alt|Command|(?:Mac)?Ctrl)(?:\+Shift)?|Alt\+(?:Command|(?:Mac)?Ctrl)|Command\+(?:Alt|MacCtrl)|Ctrl\+(?:Alt|MacCtrl)|MacCtrl\+(?:Alt|Command|Ctrl))\+(?:[\dA-Z]|F(?:[1-9]|1[0-2])|(?:Page)?(?:Down|Up)|Left|Right|Comma|Period|Home|End|Delete|Insert|Space))|F(?:[1-9]|1[0-2])|Media(?:(?:Next|Prev)Track|PlayPause|Stop)$/.test(shortcut)) { | ||
} else if (/^(?:(?:Alt|Command|(?:Mac)?Ctrl)(?:\+Shift)?|Alt\+(?:Command|(?:Mac)?Ctrl)|Command\+(?:Alt|MacCtrl)|Ctrl\+(?:Alt|MacCtrl)|MacCtrl\+(?:Alt|Command|Ctrl))\+[\dA-Z]|F[1-9]|Media(?:(?:Next|Prev)Track|PlayPause|Stop)$/.test(shortcut)) { | ||
func = commands.update({ | ||
@@ -184,0 +184,0 @@ shortcut, |
@@ -131,3 +131,3 @@ /** | ||
if (isString(file) && isFile(file) && | ||
/^([^.]+)(?:\..+)?$/.test(path.basename(file))) { | ||
/^[^.]+(?:\..+)?$/.test(path.basename(file))) { | ||
[, name] = /^([^.]+)(?:\..+)?$/.exec(path.basename(file)); | ||
@@ -134,0 +134,0 @@ } |
@@ -31,3 +31,3 @@ /** | ||
this.#channel = | ||
isString(arg1) && /(?:(?:centra|mai)l|beta|esr|release)/.test(arg1) | ||
isString(arg1) && /(?:centra|mai)l|beta|esr|release/.test(arg1) | ||
? arg1 | ||
@@ -51,3 +51,3 @@ : 'beta'; | ||
set channel(ch) { | ||
if (isString(ch) && /(?:(?:centra|mai)l|beta|esr|release)/.test(ch)) { | ||
if (isString(ch) && /(?:centra|mai)l|beta|esr|release/.test(ch)) { | ||
this.#channel = ch; | ||
@@ -54,0 +54,0 @@ } |
@@ -99,3 +99,3 @@ /** | ||
const reg = | ||
/content\/(?:(?:brows|messeng)er|extensions)\/schemas\/([\da-zA-Z_]+\.json)/; | ||
/content\/(?:(?:brows|messeng)er|extensions)\/schemas\/(\w+\.json)/; | ||
const items = text.split('\n'); | ||
@@ -102,0 +102,0 @@ const arr = []; |
@@ -17,3 +17,3 @@ { | ||
"@types/firefox-webext-browser": "^109.0.0", | ||
"@types/node": "^18.14.1", | ||
"@types/node": "^18.14.2", | ||
"@types/sinon": "^10.0.13", | ||
@@ -35,2 +35,3 @@ "camelize": "^1.0.1", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-regexp": "^1.12.0", | ||
"eslint-plugin-unicorn": "^45.0.2", | ||
@@ -60,3 +61,3 @@ "mocha": "^10.2.0", | ||
}, | ||
"version": "5.1.6" | ||
"version": "5.1.7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3546186
14
99627
Updated@types/node@^18.14.2