is-observable
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -1,4 +0,2 @@ | ||
'use strict'; | ||
module.exports = value => { | ||
export default function isObservable(value) { | ||
if (!value) { | ||
@@ -19,2 +17,2 @@ return false; | ||
return false; | ||
}; | ||
} |
{ | ||
"name": "is-observable", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "Check if a value is an Observable", | ||
@@ -13,4 +13,7 @@ "license": "MIT", | ||
}, | ||
"type": "module", | ||
"exports": "./index.js", | ||
"types": "./index.d.ts", | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=14.16" | ||
}, | ||
@@ -32,10 +35,10 @@ "scripts": { | ||
"devDependencies": { | ||
"ava": "^1.4.1", | ||
"ava": "^4.3.0", | ||
"indefinite-observable": "^1.0.1", | ||
"most": "^1.7.2", | ||
"rxjs": "^6.5.2", | ||
"xo": "^0.24.0", | ||
"xstream": "^11.0.0", | ||
"zen-observable": "^0.8.14" | ||
"most": "^1.9.0", | ||
"rxjs": "^7.5.5", | ||
"xo": "^0.49.0", | ||
"xstream": "^11.14.0", | ||
"zen-observable": "^0.8.15" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# is-observable [![Build Status](https://travis-ci.com/sindresorhus/is-observable.svg?branch=master)](https://travis-ci.com/github/sindresorhus/is-observable) | ||
# is-observable | ||
@@ -7,5 +7,5 @@ > Check if a value is an [Observable](https://github.com/zenparsing/es-observable) | ||
```sh | ||
npm install is-observable | ||
``` | ||
$ npm install is-observable | ||
``` | ||
@@ -15,3 +15,3 @@ ## Usage | ||
```js | ||
const isObservable = require('is-observable'); | ||
import isObservable from 'is-observable'; | ||
@@ -18,0 +18,0 @@ isObservable(Observable.of(1, 2)); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
3244
14