Skip to content

Commit

Permalink
update dependencies and fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Mar 31, 2021
1 parent 9652799 commit 72646fd
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"eslint-plugin-optimize-regex": "^1.2.0",
"eslint-plugin-qunit": "^6.0.0",
"eslint-plugin-radar": "~0.2.1",
"eslint-plugin-regexp": "~0.6.3",
"eslint-plugin-regexp": "~0.7.4",
"eslint-plugin-unicorn": "^29.0.0",
"karma": "^6.3.2",
"karma-chrome-launcher": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"devDependencies": {
"chalk": "^4.1.0",
"detective": "^5.2.0",
"electron-to-chromium": "^1.3.702",
"electron-to-chromium": "^1.3.703",
"glob": "^7.1.6"
},
"funding": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js-compat/src/build-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ for (const scope of [data, external]) {
if (!module.android) {
module.android = String(Math.max(chrome, 37));
}
if (/^(es|esnext|web)\./.test(key)) {
if (/^(?:es|esnext|web)\./.test(key)) {
map(ChromeToElectron, chrome, 'electron');
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/internals/engine-is-ios.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
var userAgent = require('../internals/engine-user-agent');

module.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);
module.exports = /(?:iphone|ipod|ipad).*applewebkit/i.test(userAgent);
2 changes: 1 addition & 1 deletion packages/core-js/internals/string-pad-webkit-bug.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
var userAgent = require('../internals/engine-user-agent');

// eslint-disable-next-line unicorn/no-unsafe-regex -- safe
module.exports = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);
module.exports = /Version\/10(?:\.\d+){1,2}(?: Mobile\/\w+)? Safari\//.test(userAgent);
2 changes: 1 addition & 1 deletion scripts/check-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function checkDependencies(pkg, title) {
Object.assign(dependencies, devDependencies);
for (const name of Object.keys(dependencies)) {
const { required, stable, warn } = dependencies[name];
if (/^(git|file)/.test(required) || warn || eq(minVersion(required), coerce(stable))) {
if (/^(?:git|file)/.test(required) || warn || eq(minVersion(required), coerce(stable))) {
delete dependencies[name];
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-indexes.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function generateTestsIndex(name, pkg) {
const dir = `./tests/${ name }`;
const files = await readdir(dir);
return writeFile(`${ dir }/index.js`, `${ files
.filter(it => /^(es|esnext|web)\./.test(it))
.filter(it => /^(?:es|esnext|web)\./.test(it))
.map(it => `import './${ it.slice(0, -3) }';\n`)
.join('') }\nimport core from '${ pkg }';\ncore.globalThis.core = core;\n`);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/compat/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (v8) {
var IS_NODE = Object.prototype.toString.call(process) == '[object process]';

// eslint-disable-next-line unicorn/no-unsafe-regex -- safe
var WEBKIT_STRING_PAD_BUG = /Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(USERAGENT);
var WEBKIT_STRING_PAD_BUG = /Version\/10(?:\.\d+){1,2}?(?: Mobile\/\w+)? Safari\//.test(USERAGENT);

var DESCRIPTORS_SUPPORT = function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a == 7;
Expand Down

0 comments on commit 72646fd

Please sign in to comment.