Socket
Socket
Sign inDemoInstall

karma

Package Overview
Dependencies
Maintainers
5
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma - npm Package Compare versions

Comparing version 6.1.2 to 6.2.0

15

lib/plugin.js

@@ -35,8 +35,17 @@ 'use strict'

const pluginDirectory = path.normalize(path.join(__dirname, '/../..'))
const regexp = new RegExp(`^${plugin.replace('*', '.*')}`)
const regexp = new RegExp(`^${plugin.replace(/\*/g, '.*').replace(/\//g, '[/\\\\]')}`)
log.debug(`Loading ${plugin} from ${pluginDirectory}`)
fs.readdirSync(pluginDirectory)
.filter((pluginName) => !IGNORED_PACKAGES.includes(pluginName) && regexp.test(pluginName))
.forEach((pluginName) => requirePlugin(`${pluginDirectory}/${pluginName}`))
.map((e) => {
const modulePath = path.join(pluginDirectory, e)
if (e[0] === '@') {
return fs.readdirSync(modulePath).map((e) => path.join(modulePath, e))
}
return modulePath
})
.reduce((a, x) => a.concat(x), [])
.map((modulePath) => path.relative(pluginDirectory, modulePath))
.filter((moduleName) => !IGNORED_PACKAGES.includes(moduleName) && regexp.test(moduleName))
.forEach((pluginName) => requirePlugin(path.join(pluginDirectory, pluginName)))
} else if (helper.isObject(plugin)) {

@@ -43,0 +52,0 @@ log.debug(`Loading inline plugin defining ${Object.keys(plugin).join(', ')}.`)

3

package.json

@@ -396,2 +396,3 @@ {

"grifball <scottgriffy@gmail.com>",
"hdmr14 <58992133+hdmr14@users.noreply.github.com>",
"hrgdavor <hrgdavor@gmail.com>",

@@ -492,3 +493,3 @@ "ianjobling <ijobling@codio.com>",

},
"version": "6.1.2",
"version": "6.2.0",
"license": "MIT",

@@ -495,0 +496,0 @@ "husky": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc