promise-readable
Advanced tools
Comparing version 0.2.0 to 0.3.0
# Changelog | ||
## v0.3.0 2017-03-11 | ||
* Method `end` is renamed to `onceEnd`. | ||
## v0.2.0 2017-03-11 | ||
@@ -4,0 +8,0 @@ |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27923