Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-iterable-stream

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-iterable-stream - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "async-iterable-stream",
"version": "1.2.0",
"version": "1.2.1",
"description": "A readable async stream which can be iterated over using a for-await-of loop.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,3 +21,3 @@ # async-iterable-stream

- `next`: Returns a `Promise` which will resolve an object in the form `{value: data, done: boolean}` whenever some data is received or when the stream ends.
- `once`: Similar to `next()` except that the resolved value will be the raw data and it will not resolve when the stream ends. Note that once `once()` is called, it cannot be cancelled; the affected closure will stay in memory until either `once()` resolves or until the stream is garbage collected.
- `once`: Similar to `next()` except that the resolved value will be the raw data and it will not resolve when the stream ends. Note that once `once()` is called, it cannot be cancelled; the affected closure will stay in memory until either `once()` resolves or until the stream is ended or garbage collected.

@@ -24,0 +24,0 @@ ```js

@@ -22,3 +22,3 @@ const AsyncIterableStream = require('../index');

describe('AsyncIterableStream as a generator wrapper', () => {
describe('AsyncIterableStream', () => {
let streamData;

@@ -25,0 +25,0 @@ let stream;

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