New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

for-emit-of

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

for-emit-of - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

9

dist/index.js

@@ -20,2 +20,6 @@ "use strict";

/**
* @param {import('events').EventEmitter} emitter
* @param {{event: string, transform: () => any}} options
*/
function forEmitOf(emitter, options) {

@@ -62,3 +66,8 @@ if (!options) {

}
/* We do not want to block the process!
This call allows other processes
a chance to execute.
*/
await sleep(0);

@@ -65,0 +74,0 @@ const [event, ...rest] = events;

5

package.json
{
"name": "for-emit-of",
"version": "1.0.3",
"version": "1.0.4",
"description": "Turn Node.js Events into Async Iterables",
"main": "./dist",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {

@@ -7,0 +8,0 @@ "test": "cross-env ./node_modules/.bin/nyc ./node_modules/.bin/mocha --recursive --exit --timeout=100000 -r ts-node/register test/**/*.test.ts",

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