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

evt

Package Overview
Dependencies
Maintainers
2
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

evt - npm Package Compare versions

Comparing version 2.1.1 to 2.2.0

4

lib/Evt.js

@@ -614,5 +614,5 @@ "use strict";

EvtImpl.prototype[Symbol.asyncIterator] = function () {
return this.getAsyncIterable()[Symbol.asyncIterator]();
return this.iter()[Symbol.asyncIterator]();
};
EvtImpl.prototype.getAsyncIterable = function () {
EvtImpl.prototype.iter = function () {
var _a;

@@ -619,0 +619,0 @@ var _b;

@@ -170,3 +170,3 @@ import type { Operator } from "../Operator";

/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -179,5 +179,5 @@ * op - fλ

*/
getAsyncIterable<U, CtxResult>(op: Operator.fλ.Stateless<T, U>, ctx: CtxLike<CtxResult>, timeout?: number): AsyncIterableEvt<U, CtxResult>;
iter<U, CtxResult>(op: Operator.fλ.Stateless<T, U>, ctx: CtxLike<CtxResult>, timeout?: number): AsyncIterableEvt<U, CtxResult>;
/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -190,5 +190,5 @@ * op - Type guard

*/
getAsyncIterable<Q extends T, CtxResult>(op: (data: T) => data is Q, ctx: CtxLike<CtxResult>, timeout?: number): AsyncIterableEvt<Q, CtxResult>;
iter<Q extends T, CtxResult>(op: (data: T) => data is Q, ctx: CtxLike<CtxResult>, timeout?: number): AsyncIterableEvt<Q, CtxResult>;
/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -201,5 +201,5 @@ * op - Filter

*/
getAsyncIterable<CtxResult>(op: (data: T) => boolean, ctx: CtxLike<CtxResult>, timeout?: number): AsyncIterableEvt<T, CtxResult>;
iter<CtxResult>(op: (data: T) => boolean, ctx: CtxLike<CtxResult>, timeout?: number): AsyncIterableEvt<T, CtxResult>;
/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -210,5 +210,5 @@ * op - fλ

*/
getAsyncIterable<U, CtxResult>(op: Operator.fλ.Stateless<T, U>, timeout?: number): AsyncIterableEvt<U>;
iter<U, CtxResult>(op: Operator.fλ.Stateless<T, U>, timeout?: number): AsyncIterableEvt<U>;
/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -219,5 +219,5 @@ * op - Type guard

*/
getAsyncIterable<Q extends T>(op: (data: T) => data is Q, timeout?: number): AsyncIterableEvt<Q>;
iter<Q extends T>(op: (data: T) => data is Q, timeout?: number): AsyncIterableEvt<Q>;
/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -228,5 +228,5 @@ * op - Filter

*/
getAsyncIterable(op: (data: T) => boolean, timeout?: number): AsyncIterableEvt<T>;
iter(op: (data: T) => boolean, timeout?: number): AsyncIterableEvt<T>;
/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -237,9 +237,9 @@ * ctx

*/
getAsyncIterable<CtxResult>(ctx: CtxLike, timeout?: number): AsyncIterableEvt<T, CtxResult>;
iter<CtxResult>(ctx: CtxLike, timeout?: number): AsyncIterableEvt<T, CtxResult>;
/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*
* timeout?
*/
getAsyncIterable(timeout?: number): AsyncIterableEvt<T, void>;
iter(timeout?: number): AsyncIterableEvt<T, void>;
/**

@@ -246,0 +246,0 @@ * https://docs.evt.land/api/evt/attach

{
"name": "evt",
"version": "2.1.1",
"version": "2.2.0",
"description": "Type safe replacement for node's EventEmitter",

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

@@ -759,6 +759,6 @@ import "minimal-polyfills/Array.prototype.find";

[Symbol.asyncIterator]() {
return this.getAsyncIterable()[Symbol.asyncIterator]();
return this.iter()[Symbol.asyncIterator]();
}
getAsyncIterable(...args: any[]): AsyncIterableEvt<any, any> {
iter(...args: any[]): AsyncIterableEvt<any, any> {

@@ -765,0 +765,0 @@ const props = parsePropsFromArgs<T>(args, "waitFor");

@@ -314,3 +314,3 @@ import type { Operator } from "../Operator";

/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -323,3 +323,3 @@ * op - fλ

*/
getAsyncIterable<U, CtxResult>(
iter<U, CtxResult>(
op: Operator.fλ.Stateless<T, U>,

@@ -330,3 +330,3 @@ ctx: CtxLike<CtxResult>,

/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -339,3 +339,3 @@ * op - Type guard

*/
getAsyncIterable<Q extends T, CtxResult>(
iter<Q extends T, CtxResult>(
op: (data: T) => data is Q,

@@ -346,3 +346,3 @@ ctx: CtxLike<CtxResult>,

/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -355,3 +355,3 @@ * op - Filter

*/
getAsyncIterable<CtxResult>(
iter<CtxResult>(
op: (data: T) => boolean,

@@ -362,3 +362,3 @@ ctx: CtxLike<CtxResult>,

/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -369,3 +369,3 @@ * op - fλ

*/
getAsyncIterable<U, CtxResult>(
iter<U, CtxResult>(
op: Operator.fλ.Stateless<T, U>,

@@ -375,3 +375,3 @@ timeout?: number

/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -382,3 +382,3 @@ * op - Type guard

*/
getAsyncIterable<Q extends T>(
iter<Q extends T>(
op: (data: T) => data is Q,

@@ -388,3 +388,3 @@ timeout?: number

/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -395,3 +395,3 @@ * op - Filter

*/
getAsyncIterable(
iter(
op: (data: T) => boolean,

@@ -401,3 +401,3 @@ timeout?: number

/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*

@@ -408,3 +408,3 @@ * ctx

*/
getAsyncIterable<CtxResult>(
iter<CtxResult>(
ctx: CtxLike,

@@ -414,7 +414,7 @@ timeout?: number

/**
* https://docs.evt.land/api/evt/getAsyncIterable
* https://docs.evt.land/api/evt/iter
*
* timeout?
*/
getAsyncIterable(
iter(
timeout?: number

@@ -421,0 +421,0 @@ ): AsyncIterableEvt<T, void>;

Sorry, the diff of this file is not supported yet

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