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

promise-readable

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-readable - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

4

CHANGELOG.md
# Changelog
## v0.3.0 2017-03-11
* Method `end` is renamed to `onceEnd`.
## v0.2.0 2017-03-11

@@ -4,0 +8,0 @@

2

examples/read-on-data-event.js

@@ -14,5 +14,5 @@ 'use strict'

rstream.end()
rstream.onceEnd()
.then(function () {
console.log('Read', total, 'bytes in total')
})

@@ -159,3 +159,3 @@ 'use strict'

end () {
onceEnd () {
const stream = this.stream

@@ -162,0 +162,0 @@ return new Promise((resolve, reject) => {

{
"name": "promise-readable",
"version": "0.2.0",
"version": "0.3.0",
"description": "Return promise for readable stream",

@@ -5,0 +5,0 @@ "main": "lib/promise-readable.js",

@@ -102,3 +102,3 @@ ## promise-readable

#### end
#### onceEnd

@@ -111,3 +111,3 @@ This method returns `Promise` which is fulfilled when stream is ended. No value

await promiseRstream.end()
await promiseRstream.onceEnd()
```

@@ -114,0 +114,0 @@

@@ -309,3 +309,3 @@ 'use strict'

When('I call end method', () => {
this.promiseReadable.end()
this.promiseReadable.onceEnd()
})

@@ -358,3 +358,3 @@

When('I call end method', () => {
this.promise = this.promiseReadable.end()
this.promise = this.promiseReadable.onceEnd()
})

@@ -397,3 +397,3 @@

When('I call end method', () => {
this.promise = this.promiseReadable.end()
this.promise = this.promiseReadable.onceEnd()
})

@@ -416,3 +416,3 @@

When('I call end method', () => {
this.promise = this.promiseReadable.end()
this.promise = this.promiseReadable.onceEnd()
})

@@ -419,0 +419,0 @@

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