aboutsummaryrefslogtreecommitdiff
path: root/node_modules/observable-to-promise
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/observable-to-promise')
-rw-r--r--node_modules/observable-to-promise/index.js23
-rw-r--r--node_modules/observable-to-promise/license21
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/index.js6
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/license21
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/CHANGELOG.md44
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/index.d.ts2
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/index.js4
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/license22
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/package.json34
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/ponyfill.js19
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/readme.md31
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/package.json37
-rw-r--r--node_modules/observable-to-promise/node_modules/is-observable/readme.md30
-rw-r--r--node_modules/observable-to-promise/package.json42
-rw-r--r--node_modules/observable-to-promise/readme.md32
15 files changed, 0 insertions, 368 deletions
diff --git a/node_modules/observable-to-promise/index.js b/node_modules/observable-to-promise/index.js
deleted file mode 100644
index 7109b70e5..000000000
--- a/node_modules/observable-to-promise/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-const isObservable = require('is-observable');
-const symbolObservable = require('symbol-observable').default;
-
-module.exports = val => {
- if (!isObservable(val)) {
- throw new TypeError('Expected an Observable');
- }
-
- const ret = [];
-
- return new Promise((resolve, reject) => {
- val[symbolObservable]().subscribe({
- next: x => {
- ret.push(x);
- },
- error: reject,
- complete: () => {
- resolve(ret);
- }
- });
- });
-};
diff --git a/node_modules/observable-to-promise/license b/node_modules/observable-to-promise/license
deleted file mode 100644
index 654d0bfe9..000000000
--- a/node_modules/observable-to-promise/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/index.js b/node_modules/observable-to-promise/node_modules/is-observable/index.js
deleted file mode 100644
index 77f399458..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-'use strict';
-var symbolObservable = require('symbol-observable');
-
-module.exports = function (fn) {
- return Boolean(fn && fn[symbolObservable]);
-};
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/license b/node_modules/observable-to-promise/node_modules/is-observable/license
deleted file mode 100644
index 654d0bfe9..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/CHANGELOG.md b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/CHANGELOG.md
deleted file mode 100644
index abb46759c..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/CHANGELOG.md
+++ /dev/null
@@ -1,44 +0,0 @@
-<a name="0.2.4"></a>
-## [0.2.4](https://github.com/blesh/symbol-observable/compare/0.2.2...v0.2.4) (2016-04-25)
-
-
-### Bug Fixes
-
-* **IE8 support:** Ensure ES3 support so IE8 is happy ([9aaa7c3](https://github.com/blesh/symbol-observable/commit/9aaa7c3))
-* **Symbol.observable:** should NOT equal `Symbol.for('observable')`. ([3b0fdee](https://github.com/blesh/symbol-observable/commit/3b0fdee)), closes [#7](https://github.com/blesh/symbol-observable/issues/7)
-
-
-
-<a name="0.2.3"></a>
-## [0.2.3](https://github.com/blesh/symbol-observable/compare/0.2.3...v0.2.3) (2016-04-24)
-
-### Bug Fixes
-
-- **IE8/ECMAScript 3**: Make sure legacy browsers don't choke on a property named `for`. ([9aaa7c](https://github.com/blesh/symbol-observable/9aaa7c))
-
-
-<a name="0.2.2"></a>
-## [0.2.2](https://github.com/sindresorhus/symbol-observable/compare/0.2.1...v0.2.2) (2016-04-19)
-
-### Features
-
-* **TypeScript:** add TypeScript typings file ([befd7a](https://github.com/sindresorhus/symbol-observable/commit/befd7a))
-
-
-<a name="0.2.1"></a>
-## [0.2.1](https://github.com/sindresorhus/symbol-observable/compare/0.2.0...v0.2.1) (2016-04-19)
-
-
-### Bug Fixes
-
-* **publish:** publish all required files ([5f26c3a](https://github.com/sindresorhus/symbol-observable/commit/5f26c3a))
-
-
-
-<a name="0.2.0"></a>
-# [0.2.0](https://github.com/sindresorhus/symbol-observable/compare/v0.1.0...v0.2.0) (2016-04-19)
-
-
-### Bug Fixes
-
-* **Symbol.observable:** ensure Symbol.for(\'observable\') matches Symbol.observable ([ada343f](https://github.com/sindresorhus/symbol-observable/commit/ada343f)), closes [#1](https://github.com/sindresorhus/symbol-observable/issues/1) [#2](https://github.com/sindresorhus/symbol-observable/issues/2)
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/index.d.ts b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/index.d.ts
deleted file mode 100644
index e5dd040ac..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-declare const observableSymbol: symbol;
-export = observableSymbol; \ No newline at end of file
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/index.js b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/index.js
deleted file mode 100644
index 1aefd759a..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/index.js
+++ /dev/null
@@ -1,4 +0,0 @@
-/* global window */
-'use strict';
-
-module.exports = require('./ponyfill')(global || window || this);
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/license b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/license
deleted file mode 100644
index 0239f4730..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/license
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-Copyright (c) Ben Lesh <ben@benlesh.com>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/package.json b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/package.json
deleted file mode 100644
index 49ff105b8..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/package.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "name": "symbol-observable",
- "version": "0.2.4",
- "description": "Symbol.observable ponyfill",
- "license": "MIT",
- "repository": "blesh/symbol-observable",
- "author": {
- "name": "Ben Lesh",
- "email": "ben@benlesh.com"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "scripts": {
- "test": "mocha"
- },
- "files": [
- "index.js",
- "ponyfill.js",
- "index.d.ts"
- ],
- "keywords": [
- "symbol",
- "observable",
- "observables",
- "ponyfill",
- "polyfill",
- "shim"
- ],
- "devDependencies": {
- "chai": "^3.5.0",
- "mocha": "^2.4.5"
- }
-}
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/ponyfill.js b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/ponyfill.js
deleted file mode 100644
index b81f36c19..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/ponyfill.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-module.exports = function symbolObservablePonyfill(root) {
- var result;
- var Symbol = root.Symbol;
-
- if (typeof Symbol === 'function') {
- if (Symbol.observable) {
- result = Symbol.observable;
- } else {
- result = Symbol('observable');
- Symbol.observable = result;
- }
- } else {
- result = '@@observable';
- }
-
- return result;
-};
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/readme.md b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/readme.md
deleted file mode 100644
index b4831594b..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/readme.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# symbol-observable [![Build Status](https://travis-ci.org/blesh/symbol-observable.svg?branch=master)](https://travis-ci.org/blesh/symbol-observable)
-
-> [Symbol.observable](https://github.com/zenparsing/es-observable) ponyfill
-
-
-## Install
-
-```
-$ npm install --save symbol-observable
-```
-
-
-## Usage
-
-```js
-const symbolObservable = require('symbol-observable');
-
-console.log(symbolObservable);
-//=> Symbol(observable)
-```
-
-
-## Related
-
-- [is-observable](https://github.com/sindresorhus/is-observable) - Check if a value is an Observable
-- [observable-to-promise](https://github.com/sindresorhus/observable-to-promise) - Convert an Observable to a Promise
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/package.json b/node_modules/observable-to-promise/node_modules/is-observable/package.json
deleted file mode 100644
index 9dd2ffa6a..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/package.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "name": "is-observable",
- "version": "0.2.0",
- "description": "Check if a value is an Observable",
- "license": "MIT",
- "repository": "sindresorhus/is-observable",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "observable",
- "observables",
- "is",
- "check",
- "detect",
- "type"
- ],
- "dependencies": {
- "symbol-observable": "^0.2.2"
- },
- "devDependencies": {
- "ava": "*",
- "xo": "*",
- "zen-observable": "^0.2.1"
- }
-}
diff --git a/node_modules/observable-to-promise/node_modules/is-observable/readme.md b/node_modules/observable-to-promise/node_modules/is-observable/readme.md
deleted file mode 100644
index aaef1b3c7..000000000
--- a/node_modules/observable-to-promise/node_modules/is-observable/readme.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# is-observable [![Build Status](https://travis-ci.org/sindresorhus/is-observable.svg?branch=master)](https://travis-ci.org/sindresorhus/is-observable)
-
-> Check if a value is an [Observable](https://github.com/zenparsing/es-observable)
-
-
-## Install
-
-```
-$ npm install --save is-observable
-```
-
-
-## Usage
-
-```js
-const isObservable = require('is-observable');
-
-isObservable(Observable.of(1, 2));
-//=> true
-```
-
-
-## Related
-
-- [observable-to-promise](https://github.com/sindresorhus/observable-to-promise) - Convert an Observable to a Promise
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/observable-to-promise/package.json b/node_modules/observable-to-promise/package.json
deleted file mode 100644
index a88ecc19c..000000000
--- a/node_modules/observable-to-promise/package.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "name": "observable-to-promise",
- "version": "0.5.0",
- "description": "Convert an Observable to a Promise",
- "license": "MIT",
- "repository": "sindresorhus/observable-to-promise",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "engines": {
- "node": ">=4"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "files": [
- "index.js"
- ],
- "keywords": [
- "observable",
- "observables",
- "promise",
- "promises",
- "convert",
- "subscribe"
- ],
- "dependencies": {
- "is-observable": "^0.2.0",
- "symbol-observable": "^1.0.4"
- },
- "devDependencies": {
- "ava": "*",
- "most": "^1.2.2",
- "p-is-promise": "^1.1.0",
- "rxjs": "^5.2.0",
- "xo": "*",
- "xstream": "^10.2.0",
- "zen-observable": "^0.5.0"
- }
-}
diff --git a/node_modules/observable-to-promise/readme.md b/node_modules/observable-to-promise/readme.md
deleted file mode 100644
index 2d4467b2c..000000000
--- a/node_modules/observable-to-promise/readme.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# observable-to-promise [![Build Status](https://travis-ci.org/sindresorhus/observable-to-promise.svg?branch=master)](https://travis-ci.org/sindresorhus/observable-to-promise)
-
-> Convert an [Observable](https://github.com/tc39/proposal-observable) to a Promise
-
-
-## Install
-
-```
-$ npm install --save observable-to-promise
-```
-
-
-## Usage
-
-```js
-const observableToPromise = require('observable-to-promise');
-
-observableToPromise(Observable.of(1, 2)).then(result => {
- console.log(result);
- //=> [1, 2]
-});
-```
-
-
-## Related
-
-- [is-observable](https://github.com/sindresorhus/is-observable) - Check if a value is an Observable
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)