diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-27 19:33:54 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-27 19:34:16 +0100 |
commit | 0e6de2c31dbf8c21277481f112e99c52b913940f (patch) | |
tree | 91789032de3b8eec9d789acd1323f25fc5d08422 /node_modules/is-observable | |
parent | ceda0da31ad542c598c68146ae0712ca03df3d71 (diff) | |
download | wallet-core-0e6de2c31dbf8c21277481f112e99c52b913940f.tar.xz |
node_modules
Diffstat (limited to 'node_modules/is-observable')
-rw-r--r-- | node_modules/is-observable/index.js | 6 | ||||
-rw-r--r-- | node_modules/is-observable/license | 20 | ||||
-rw-r--r-- | node_modules/is-observable/package.json | 73 | ||||
-rw-r--r-- | node_modules/is-observable/readme.md | 2 |
4 files changed, 45 insertions, 56 deletions
diff --git a/node_modules/is-observable/index.js b/node_modules/is-observable/index.js index 77f399458..2ee881996 100644 --- a/node_modules/is-observable/index.js +++ b/node_modules/is-observable/index.js @@ -1,6 +1,4 @@ 'use strict'; -var symbolObservable = require('symbol-observable'); +const symbolObservable = require('symbol-observable').default; -module.exports = function (fn) { - return Boolean(fn && fn[symbolObservable]); -}; +module.exports = value => Boolean(value && value[symbolObservable] && value === value[symbolObservable]()); diff --git a/node_modules/is-observable/license b/node_modules/is-observable/license index 654d0bfe9..e7af2f771 100644 --- a/node_modules/is-observable/license +++ b/node_modules/is-observable/license @@ -1,21 +1,9 @@ -The MIT License (MIT) +MIT License 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: +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 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. +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/is-observable/package.json b/node_modules/is-observable/package.json index 9dd2ffa6a..d7891ee54 100644 --- a/node_modules/is-observable/package.json +++ b/node_modules/is-observable/package.json @@ -1,37 +1,40 @@ { - "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" - } + "name": "is-observable", + "version": "1.1.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": ">=4" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "observable", + "observables", + "is", + "check", + "detect", + "type" + ], + "dependencies": { + "symbol-observable": "^1.1.0" + }, + "devDependencies": { + "ava": "*", + "most": "^1.7.2", + "rxjs": "^5.5.5", + "xo": "*", + "xstream": "^11.0.0", + "zen-observable": "^0.6.0" + } } diff --git a/node_modules/is-observable/readme.md b/node_modules/is-observable/readme.md index aaef1b3c7..2f295820c 100644 --- a/node_modules/is-observable/readme.md +++ b/node_modules/is-observable/readme.md @@ -6,7 +6,7 @@ ## Install ``` -$ npm install --save is-observable +$ npm install is-observable ``` |