Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-mocha

Package Overview
Dependencies
Maintainers
3
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-mocha - npm Package Compare versions

Comparing version 8.1.0 to 8.2.0

10

CHANGELOG.md

@@ -0,1 +1,11 @@

## 8.2.0 (May 25, 2021)
### Enhancements
* Memoize names (increases speed by 10x) ([#280](https://github.com/lo1tuma/eslint-plugin-mocha/pull/280))
### Code Refactoring
* - Avoid passing superfluous argument ([#278](https://github.com/lo1tuma/eslint-plugin-mocha/pull/278))
## 8.1.0 (March 5, 2021)

@@ -2,0 +12,0 @@

2

lib/rules/prefer-arrow-callback.js

@@ -284,3 +284,3 @@ 'use strict';

// Reports if it's a callback which can replace with arrows.
const callbackInfo = getCallbackInfo(node, context);
const callbackInfo = getCallbackInfo(node);

@@ -287,0 +287,0 @@ if (callbackInfo.isCallback &&

@@ -17,2 +17,3 @@ 'use strict';

const allPass = require('ramda/src/allPass');
const memoizeWith = require('ramda/src/memoizeWith');

@@ -119,8 +120,10 @@ const INTERFACES = {

const getNamesByTypeMemoized = memoizeWith((type, options) => JSON.stringify({ type, options }), getNamesByType);
function getTestCaseNames(options) {
return getNamesByType(TYPES.testCase, options);
return getNamesByTypeMemoized(TYPES.testCase, options);
}
function getSuiteNames(options) {
return getNamesByType(TYPES.suite, options);
return getNamesByTypeMemoized(TYPES.suite, options);
}

@@ -127,0 +130,0 @@

{
"name": "eslint-plugin-mocha",
"version": "8.1.0",
"version": "8.2.0",
"description": "Eslint rules for mocha.",

@@ -5,0 +5,0 @@ "engines": {

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