Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastrx

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastrx - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

2

package.json
{
"name": "fastrx",
"version": "1.4.3",
"version": "1.4.4",
"description": "fast rxjs implemention",

@@ -5,0 +5,0 @@ "main": "dist/cjs.js",

@@ -105,3 +105,3 @@ #rx4rx-fast

rxComputed:{
test0:_this=>rx.interval(1000).take(10),//简单的订阅
test0:()=>rx.interval(1000).take(10),//简单的订阅
test_watch:{//使用watch触发Observable发射数据

@@ -108,0 +108,0 @@ get:ob=>ob.switchMapTo(rx.interval(1000)).map(x=>10-x)

@@ -38,7 +38,7 @@ const { rx } = require('./index')

if (typeof item == 'function') {
const ob = item(this)
const ob = item.call(this)
this.$data._rxComputed.push(ob.subscribe(setFunc))
} else {
const subject = this.$data._rxSubjects[key]
this.$data._rxComputed.push(item.get(subject).subscribe(item.call ? data => this[key](data) : setFunc))
this.$data._rxComputed.push(item.get.call(this,subject).subscribe(item.call ? data => this[key](data) : setFunc))
if ('watch' in item) {

@@ -45,0 +45,0 @@ if (typeof item.watch == 'object') {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc