Socket
Socket
Sign inDemoInstall

eslint-plugin-promise

Package Overview
Dependencies
1
Maintainers
0
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.2.0 to 6.3.0

2

package.json
{
"name": "eslint-plugin-promise",
"version": "6.2.0",
"version": "6.3.0",
"description": "Enforce best practices for JavaScript promises",

@@ -5,0 +5,0 @@ "keywords": [

@@ -142,8 +142,18 @@ /**

this.resolvedCount = 0
/** @type {CodePathSegment[]} */
this.allSegments = []
/** @type {Set<CodePathSegment>} */
this.currentSegments = new Set()
}
/** @param {CodePathSegment} segment */
onSegmentEnter(segment) {
this.currentSegments.add(segment)
}
/** @param {CodePathSegment} segment */
onSegmentExit(segment) {
this.currentSegments.delete(segment)
}
getCurrentSegmentInfos() {
return this.path.currentSegments.map((segment) => {
return [...this.currentSegments].map((segment) => {
const info = this.segmentInfos.get(segment)

@@ -438,2 +448,11 @@ if (info) {

},
/** @param {CodePathSegment} segment */
onCodePathSegmentStart(segment) {
codePathInfoStack[0].onSegmentEnter(segment)
},
/** @param {CodePathSegment} segment */
/* istanbul ignore next */ // It is not called in ESLint v7.
onUnreachableCodePathSegmentStart(segment) {
codePathInfoStack[0].onSegmentEnter(segment)
},
/**

@@ -458,3 +477,9 @@ * @param {CodePathSegment} segment

}
codePathInfoStack[0].onSegmentExit(segment)
},
/** @param {CodePathSegment} segment */
/* istanbul ignore next */ // It is not called in ESLint v7.
onUnreachableCodePathSegmentEnd(segment) {
codePathInfoStack[0].onSegmentExit(segment)
},
/** @type {Identifier} */

@@ -461,0 +486,0 @@ 'CallExpression > Identifier.callee'(node) {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc