From bee28893c49e5457e6f0763f9c5a5b878032e6a9 Mon Sep 17 00:00:00 2001 From: Sam Verschueren Date: Wed, 9 May 2018 20:46:25 +0200 Subject: [PATCH] Remove is-observable due to issues with RxJS@6 --- lib/utils.js | 4 +++- package.json | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 3f89c01..8837f72 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,6 +1,8 @@ 'use strict'; const isStream = require('is-stream'); -const isObservable = require('is-observable'); + +// TODO https://github.com/sindresorhus/is-observable/issues/1 +const isObservable = obj => Boolean(obj && typeof obj.subscribe === 'function' && obj.constructor.name === 'Observable'); exports.isListr = obj => Boolean(obj && obj.setRenderer && obj.add && obj.run); exports.isObservable = obj => isObservable(obj); diff --git a/package.json b/package.json index 404a907..c9f8d28 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ "cli-truncate": "^0.2.1", "figures": "^1.7.0", "indent-string": "^2.1.0", - "is-observable": "^0.2.0", "is-promise": "^2.1.0", "is-stream": "^1.1.0", "listr-silent-renderer": "^1.1.1",