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.0.0 to 4.1.0

29

index.es.js

@@ -0,4 +1,4 @@

import $$observable from 'symbol-observable';
import xs from 'xstream';
import dropRepeats from 'xstream/extra/dropRepeats';
import $$observable from 'symbol-observable';
import { h, Component } from 'preact';

@@ -170,2 +170,12 @@

};
var createObservable = function (subscribe) {
return (_a = {
subscribe: subscribe
},
_a[$$observable] = function () {
return this;
},
_a);
var _a;
};

@@ -250,13 +260,7 @@ var configureComponent = function (aperture, instance, isValidElement, isComponentClass, handler, errorHandler, mergeProps, decorateProps) {

}
var dataObservable = (_a = {
subscribe: function (listener) {
addListener(listener);
listener.next(createPropsData(instance.props));
return { unsubscribe: function () { return removeListener(listener); } };
}
},
_a[$$observable] = function () {
return this;
},
_a);
var dataObservable = createObservable(function (listener) {
addListener(listener);
listener.next(createPropsData(instance.props));
return { unsubscribe: function () { return removeListener(listener); } };
});
var component = createComponent(function (propName) { return instance.props[propName]; }, dataObservable, pushEvent, decorateProps);

@@ -316,3 +320,2 @@ var sinkObservable = aperture(component, instance.props, instance.context);

};
var _a;
};

@@ -319,0 +322,0 @@

@@ -7,5 +7,5 @@ 'use strict';

var $$observable = _interopDefault(require('symbol-observable'));
var xs = _interopDefault(require('xstream'));
var dropRepeats = _interopDefault(require('xstream/extra/dropRepeats'));
var $$observable = _interopDefault(require('symbol-observable'));
var preact = require('preact');

@@ -177,2 +177,12 @@

};
var createObservable = function (subscribe) {
return (_a = {
subscribe: subscribe
},
_a[$$observable] = function () {
return this;
},
_a);
var _a;
};

@@ -257,13 +267,7 @@ var configureComponent = function (aperture, instance, isValidElement, isComponentClass, handler, errorHandler, mergeProps, decorateProps) {

}
var dataObservable = (_a = {
subscribe: function (listener) {
addListener(listener);
listener.next(createPropsData(instance.props));
return { unsubscribe: function () { return removeListener(listener); } };
}
},
_a[$$observable] = function () {
return this;
},
_a);
var dataObservable = createObservable(function (listener) {
addListener(listener);
listener.next(createPropsData(instance.props));
return { unsubscribe: function () { return removeListener(listener); } };
});
var component = createComponent(function (propName) { return instance.props[propName]; }, dataObservable, pushEvent, decorateProps);

@@ -323,3 +327,2 @@ var sinkObservable = aperture(component, instance.props, instance.context);

};
var _a;
};

@@ -326,0 +329,0 @@

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

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

@@ -47,1 +47,7 @@ import { Stream, Listener, Subscription } from 'xstream'

) => ObservableComponent
export declare const createObservable: (
subscribe: any
) => {
[x: string]: any
subscribe: any
}
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