Fix dependabot issues
This commit is contained in:
parent
c89d9bd8b0
commit
531c6ba7c8
705 changed files with 53406 additions and 20466 deletions
5
node_modules/ava/lib/extensions.js
generated
vendored
5
node_modules/ava/lib/extensions.js
generated
vendored
|
|
@ -2,8 +2,11 @@ module.exports = (configuredExtensions, providers = []) => {
|
|||
// Combine all extensions possible for testing. Remove duplicate extensions.
|
||||
const duplicates = new Set();
|
||||
const seen = new Set();
|
||||
|
||||
const normalize = extensions => Array.isArray(extensions) ? extensions : Object.keys(extensions);
|
||||
|
||||
const combine = extensions => {
|
||||
for (const ext of extensions) {
|
||||
for (const ext of normalize(extensions)) {
|
||||
if (seen.has(ext)) {
|
||||
duplicates.add(ext);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue