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 4.2.2 to 4.2.3

22

index.es.js

@@ -193,2 +193,5 @@ import $$observable from 'symbol-observable';

}
else if (typeof state === 'function') {
instance.state = state(instance.state);
}
else {

@@ -210,8 +213,15 @@ instance.state = __assign({}, instance.state, state);

else if (effect && effect.type === PROPS_EFFECT) {
var payload = effect.payload;
setState({
replace: payload.replace,
props: mergeProps
? __assign({}, instance.state.props, payload.props) : payload.props
});
var payload_1 = effect.payload;
if (mergeProps) {
setState(function (prev) { return ({
replace: payload_1.replace,
props: __assign({}, prev.props, payload_1.props)
}); });
}
else {
setState({
replace: payload_1.replace,
props: payload_1.props
});
}
}

@@ -218,0 +228,0 @@ else {

@@ -199,2 +199,5 @@ 'use strict';

}
else if (typeof state === 'function') {
instance.state = state(instance.state);
}
else {

@@ -216,8 +219,15 @@ instance.state = __assign({}, instance.state, state);

else if (effect && effect.type === PROPS_EFFECT) {
var payload = effect.payload;
setState({
replace: payload.replace,
props: mergeProps
? __assign({}, instance.state.props, payload.props) : payload.props
});
var payload_1 = effect.payload;
if (mergeProps) {
setState(function (prev) { return ({
replace: payload_1.replace,
props: __assign({}, prev.props, payload_1.props)
}); });
}
else {
setState({
replace: payload_1.replace,
props: payload_1.props
});
}
}

@@ -224,0 +234,0 @@ else {

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

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

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