diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-02-20 17:16:29 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-02-20 17:16:29 +0100 |
commit | 0ad2935a1f6436d62251f30e826c9c78bfd49525 (patch) | |
tree | e9852ed84b8e6520361dbe514c98e13d69672be7 /node_modules/observable-to-promise | |
parent | 23f4998dfec5edc8f0ce134d848c996d434181ba (diff) | |
download | wallet-core-0ad2935a1f6436d62251f30e826c9c78bfd49525.tar.xz |
node_modules
Diffstat (limited to 'node_modules/observable-to-promise')
11 files changed, 250 insertions, 0 deletions
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 new file mode 100644 index 000000000..77f399458 --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/index.js @@ -0,0 +1,6 @@ +'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 new file mode 100644 index 000000000..654d0bfe9 --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/license @@ -0,0 +1,21 @@ +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 new file mode 100644 index 000000000..abb46759c --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/CHANGELOG.md @@ -0,0 +1,44 @@ +<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 new file mode 100644 index 000000000..e5dd040ac --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/index.d.ts @@ -0,0 +1,2 @@ +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 new file mode 100644 index 000000000..1aefd759a --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/index.js @@ -0,0 +1,4 @@ +/* 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 new file mode 100644 index 000000000..0239f4730 --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/license @@ -0,0 +1,22 @@ +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 new file mode 100644 index 000000000..49ff105b8 --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/package.json @@ -0,0 +1,34 @@ +{ + "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 new file mode 100644 index 000000000..b81f36c19 --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/ponyfill.js @@ -0,0 +1,19 @@ +'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 new file mode 100644 index 000000000..b4831594b --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/node_modules/symbol-observable/readme.md @@ -0,0 +1,31 @@ +# 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 new file mode 100644 index 000000000..9dd2ffa6a --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/package.json @@ -0,0 +1,37 @@ +{ + "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 new file mode 100644 index 000000000..aaef1b3c7 --- /dev/null +++ b/node_modules/observable-to-promise/node_modules/is-observable/readme.md @@ -0,0 +1,30 @@ +# 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) |