Comparing version 1.1.2 to 1.2.0
{ | ||
"name": "most-rx", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Convert Most.js observables to RxJS and vice-versa", | ||
@@ -30,16 +30,19 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"babel-cli": "^6.3.17", | ||
"babel-preset-es2015": "^6.3.13", | ||
"babel-tape-runner": "^2.0.0", | ||
"eslint": "^1.10.3", | ||
"eslint-config-airbnb": "^2.1.1", | ||
"most": "^0.16.0", | ||
"rxjs": "^5.0.0-beta.0", | ||
"babel-cli": "^6.10.1", | ||
"babel-preset-es2015": "^6.9.0", | ||
"babel-tape-runner": "^2.0.1", | ||
"eslint": "^2.12.0", | ||
"eslint-config-airbnb": "^9.0.1", | ||
"eslint-plugin-import": "^1.8.1", | ||
"eslint-plugin-jsx-a11y": "^1.4.2", | ||
"eslint-plugin-react": "^5.1.1", | ||
"most": "^0.19.7", | ||
"rxjs": "^5.0.0-beta.8", | ||
"tap-nyan": "0.0.2", | ||
"tape": "^4.3.0" | ||
"tape": "^4.5.1" | ||
}, | ||
"peerDependencies": { | ||
"most": "^0.16.0", | ||
"rxjs": "^5.0.0-beta.0" | ||
"most": "^0.19.7", | ||
"rxjs": "^5.0.0-beta.8" | ||
} | ||
} |
import Rx from 'rxjs/Rx'; | ||
export function mostToRx(mostObservable) { | ||
return Rx.Observable.create((observer) => { | ||
return mostObservable.observe(value => observer.next(value)); | ||
}); | ||
return Rx.Observable.create(observer => mostObservable.observe(value => observer.next(value))); | ||
} |
Sorry, the diff of this file is not supported yet
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
4311
12
10
57