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

@victorpotasso/fluxo

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@victorpotasso/fluxo - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

4

build/connect.js

@@ -13,4 +13,4 @@ "use strict";

return function (Component) {
function Container(selector) {
Component.call(this, selector);
function Container(...args) {
Component.call(this, ...args);
Component.prototype.render.call(this);

@@ -17,0 +17,0 @@

@@ -5,4 +5,4 @@ function connect(mapStateToProps, mapDispatchToProps) {

return function (Component) {
function Container(selector) {
Component.call(this, selector);
function Container(...args) {
Component.call(this, ...args);
Component.prototype.render.call(this);

@@ -9,0 +9,0 @@

{
"name": "@victorpotasso/fluxo",
"version": "0.0.3",
"version": "0.0.4",
"description": "vanilla flux",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -55,5 +55,5 @@ # fluxo

const mapStateToProps = state => ({
value1: `Sample: ${selectors.sample(state)}`,
value2: selectors.count(state),
const mapStateToProps = getState => ({
value1: `Sample: ${selectors.sample(getState())}`,
value2: selectors.count(getState()),
});

@@ -60,0 +60,0 @@

@@ -5,4 +5,6 @@ import store from './store';

store.dispatch(actions.update('initial data'));
const home = new Home('section#home-view');
// fake loading
setTimeout(() => {
store.dispatch(actions.update('initial data'));
const home = new Home('section#home-view');
}, 2000);

@@ -13,2 +13,3 @@ import { connect } from './../../lib';

this.button.addEventListener('click', this.onClick.bind(this));
this.button.style.display = null;
}

@@ -27,3 +28,3 @@

this.title.textContent = this.props.value1;
this.count.textContent = this.props.value2;
this.count.textContent = `Count: ${this.props.value2}`;
}

@@ -30,0 +31,0 @@ }

import * as types from './../types';
const initalState = {
sample: 'initial',
sample: null,
counter: {

@@ -6,0 +6,0 @@ count: 0,

Sorry, the diff of this file is not supported yet

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