Socket
Socket
Sign inDemoInstall

eslint-plugin-promise

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-promise - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 6.0.1
- Fixed @typescript-eslint/parser issue #331, #205
## 6.0.0

@@ -2,0 +6,0 @@

6

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

@@ -14,3 +14,4 @@ "keywords": [

"contributors": [
"Brett Zamir"
"Brett Zamir",
"Aadit M Shah <aaditmshah@aadit.codes> (https://aadit.codes/)"
],

@@ -26,3 +27,2 @@ "repository": "https://github.com/xjamundx/eslint-plugin-promise",

},
"dependencies": {},
"devDependencies": {

@@ -29,0 +29,0 @@ "doctoc": "^2.1.0",

@@ -109,2 +109,3 @@ # eslint-plugin-promise

- Macklin Underdown - [@macklinu][]
- Aadit M Shah - [@aaditmshah][]

@@ -132,3 +133,4 @@ ## License

[pify]: https://www.npmjs.com/package/pify
[@aaditmshah]: https://github.com/aaditmshah
[@macklinu]: https://github.com/macklinu
[@xjamundx]: https://github.com/xjamundx

@@ -48,4 +48,12 @@ // Borrowed from here:

const scope = context.getScope()
const leftToBeResolved =
scope.implicit.left ||
/* istanbul ignore next
* Fixes https://github.com/xjamundx/eslint-plugin-promise/issues/205.
* The problem was that @typescript-eslint has a scope manager
* which has `leftToBeResolved` instead of the default `left`.
*/
scope.implicit.leftToBeResolved
scope.implicit.left.forEach((ref) => {
leftToBeResolved.forEach((ref) => {
if (ref.identifier.name !== 'Promise') {

@@ -52,0 +60,0 @@ return

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