Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Commit

Permalink
Release v1.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
pouc committed Feb 2, 2017
1 parent afb3701 commit 7db7e55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ module.exports = class TaskSubject extends Rx.ReplaySubject {
super.error(this.get());
}

toPromise(PromiseCtor) {
return super
.toPromise(PromiseCtor)
.then(
(ret) => ret.val,
(err) => { throw err.detail; }
);
}

get() {
return {
status: this.status,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rxjs-task-subject",
"version": "1.1.7",
"version": "1.1.8",
"description": "A extension of ReplaySubject to add useful features like time tracking, details, ...",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7db7e55

Please sign in to comment.