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

refract-preact-xstream

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

refract-preact-xstream - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

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-preact-xstream",
"description": "Refract bindings for Preact with xstream: harness the power of reactive programming to supercharge your components!",
"version": "4.2.1",
"version": "4.2.2",
"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