New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fluxible-addons-react

Package Overview
Dependencies
Maintainers
3
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluxible-addons-react - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

18

dist/es/connectToStores.js
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";

@@ -7,2 +8,3 @@ import _createClass from "@babel/runtime/helpers/createClass";

import _createSuper from "@babel/runtime/helpers/createSuper";
var _excluded = ["fluxibleRef"];

@@ -89,6 +91,10 @@ /**

value: function render() {
var storeState = getStateFromStores(this.context, this.props);
var _this$props = this.props,
fluxibleRef = _this$props.fluxibleRef,
props = _objectWithoutProperties(_this$props, _excluded);
var storeState = getStateFromStores(this.context, props);
return /*#__PURE__*/createElement(Component, _objectSpread(_objectSpread({
ref: this.props.fluxibleRef
}, this.props), storeState));
ref: fluxibleRef
}, props), storeState));
}

@@ -102,5 +108,5 @@ }]);

var forwarded = /*#__PURE__*/forwardRef(function (props, ref) {
return /*#__PURE__*/createElement(StoreConnector, _objectSpread(_objectSpread({}, props), {}, {
fluxibleRef: options !== null && options !== void 0 && options.forwardRef ? ref : null
}));
return /*#__PURE__*/createElement(StoreConnector, options !== null && options !== void 0 && options.forwardRef ? Object.assign({
fluxibleRef: ref
}, props) : props);
});

@@ -107,0 +113,0 @@ forwarded.displayName = "storeConnector(".concat(Component.displayName || Component.name || 'Component', ")");

@@ -12,2 +12,4 @@ "use strict";

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));

@@ -29,6 +31,3 @@

/**
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
var _excluded = ["fluxibleRef"];

@@ -106,6 +105,9 @@ /**

value: function render() {
var storeState = getStateFromStores(this.context, this.props);
var _this$props = this.props,
fluxibleRef = _this$props.fluxibleRef,
props = (0, _objectWithoutProperties2["default"])(_this$props, _excluded);
var storeState = getStateFromStores(this.context, props);
return /*#__PURE__*/(0, _react.createElement)(Component, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
ref: this.props.fluxibleRef
}, this.props), storeState));
ref: fluxibleRef
}, props), storeState));
}

@@ -118,5 +120,5 @@ }]);

var forwarded = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
return /*#__PURE__*/(0, _react.createElement)(StoreConnector, (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, props), {}, {
fluxibleRef: options !== null && options !== void 0 && options.forwardRef ? ref : null
}));
return /*#__PURE__*/(0, _react.createElement)(StoreConnector, options !== null && options !== void 0 && options.forwardRef ? Object.assign({
fluxibleRef: ref
}, props) : props);
});

@@ -123,0 +125,0 @@ forwarded.displayName = "storeConnector(".concat(Component.displayName || Component.name || 'Component', ")");

{
"name": "fluxible-addons-react",
"version": "1.1.0",
"version": "1.2.0",
"description": "Fluxible addons for use with React",

@@ -5,0 +5,0 @@ "main": "dist/lib/index.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