Socket
Socket
Sign inDemoInstall

reshow

Package Overview
Dependencies
305
Maintainers
1
Versions
281
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.16.1 to 0.16.2

16

build/cjs/ui/organisms/RealTimeReturn.js

@@ -30,14 +30,8 @@ "use strict";

var calculateState = function calculateState(prevState, props, options) {
var _getStore = (0, _reshowFlux.getStore)({
props: props,
options: options
}),
store = _getStore.store,
allProps = _getStore.allProps;
var calculateState = function calculateState(prevState, options) {
var path = options.realTimePath,
url = options.realTimeUrl,
realTimeReset = options.realTimeReset,
store = options.store;
var realTimeState = store.getState();
var path = allProps.realTimePath,
url = allProps.realTimeUrl,
realTimeReset = allProps.realTimeReset;
var data = (0, _getObjectValue["default"])(realTimeState, path);

@@ -44,0 +38,0 @@ var wsUrl = (0, _getObjectValue["default"])(realTimeState, [REAL_TIME_URL]);

import _objectSpread from "reshow-runtime/es/helpers/objectSpread2";
import React from "react";
import get from "get-object-value";
import { useConnect, getStore } from "reshow-flux";
import { useConnect } from "reshow-flux";
import { build } from "react-atomic-molecule";

@@ -13,14 +13,8 @@ import { getReturn } from "reshow-return";

var calculateState = function calculateState(prevState, props, options) {
var _getStore = getStore({
props: props,
options: options
}),
store = _getStore.store,
allProps = _getStore.allProps;
var calculateState = function calculateState(prevState, options) {
var path = options.realTimePath,
url = options.realTimeUrl,
realTimeReset = options.realTimeReset,
store = options.store;
var realTimeState = store.getState();
var path = allProps.realTimePath,
url = allProps.realTimeUrl,
realTimeReset = allProps.realTimeReset;
var data = get(realTimeState, path);

@@ -27,0 +21,0 @@ var wsUrl = get(realTimeState, [REAL_TIME_URL]);

{
"name": "reshow",
"version": "0.16.1",
"version": "0.16.2",
"description": "A simplified React cross-component state management.",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc