New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

detect-missing-await

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-missing-await

Detects potential missing `await` calls in JavaScript/Typescript at runtime

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
2
-50%
Maintainers
1
Weekly downloads
 
Created
Source

detect-missing-await

This module helps you find missing await statements at runtime.

It is a runtime analog to the eslint "no-floating-promises" rule

🚨 Do not use this module in production 🚨 It should be used for debugging only It mutates the Promise global and does magic with proxies This is dangerous

Installation

npm install detect-missing-await

Example usage

require('detect-missing-await')

async function main() {
  const promise1 = await Promise.resolve()
  const promise2 = Promise.resolve() // Will log as missing an `await` statement
}

main()

FAQs

Package last updated on 06 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts