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

refract-xstream

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

refract-xstream - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

11

index.es.js

@@ -148,3 +148,12 @@ import xs from 'xstream';

pushEvent: pushEvent,
useEvent: function (eventName) { return [fromEvent(eventName), pushEvent(eventName)]; }
useEvent: function (eventName, seedValue) {
var events$ = fromEvent(eventName);
var pushEventValue = pushEvent(eventName);
return [
seedValue === undefined
? events$
: events$.startWith(seedValue),
pushEventValue
];
}
};

@@ -151,0 +160,0 @@ };

@@ -154,3 +154,12 @@ 'use strict';

pushEvent: pushEvent,
useEvent: function (eventName) { return [fromEvent(eventName), pushEvent(eventName)]; }
useEvent: function (eventName, seedValue) {
var events$ = fromEvent(eventName);
var pushEventValue = pushEvent(eventName);
return [
seedValue === undefined
? events$
: events$.startWith(seedValue),
pushEventValue
];
}
};

@@ -157,0 +166,0 @@ };

2

package.json
{
"name": "refract-xstream",
"description": "Refract bindings for React with xstream: harness the power of reactive programming to supercharge your components!",
"version": "2.1.0",
"version": "2.2.0",
"main": "index.js",

@@ -6,0 +6,0 @@ "jsnext:main": "index.es.js",

@@ -16,3 +16,6 @@ import { Stream, Listener, Subscription } from 'xstream'

pushEvent: PushEvent
useEvent: <T>(eventName: string) => [Stream<T>, (val: T) => any]
useEvent: <T>(
eventName: string,
seedValue?: T
) => [Stream<T>, (val: T) => any]
}

@@ -31,3 +34,3 @@ export declare type Aperture<P, E, C = any> = (

dataObservable: any,
pushEvent: any
pushEvent: PushEvent
) => ObservableComponent
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