Socket
Socket
Sign inDemoInstall

@reach/component-component

Package Overview
Dependencies
Maintainers
4
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reach/component-component - npm Package Compare versions

Comparing version 0.15.0 to 0.15.3

dist/declarations/src/index.d.ts

22

dist/reach-component-component.cjs.dev.js

@@ -33,3 +33,5 @@ 'use strict';

var cleanProps = function cleanProps(props) {
var _excluded = ["initialState", "getInitialState", "refs", "getRefs", "didMount", "didUpdate", "willUnmount", "getSnapshotBeforeUpdate", "shouldUpdate", "render"];
function cleanProps(props) {
props.initialState;

@@ -45,6 +47,6 @@ props.getInitialState;

props.render;
var rest = _objectWithoutPropertiesLoose(props, ["initialState", "getInitialState", "refs", "getRefs", "didMount", "didUpdate", "willUnmount", "getSnapshotBeforeUpdate", "shouldUpdate", "render"]);
var rest = _objectWithoutPropertiesLoose(props, _excluded);
return rest;
};
}

@@ -62,5 +64,11 @@ var Component = /*#__PURE__*/function (_React$Component) {

_this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;
_this.state = _this.props.initialState || _this.props.getInitialState(_this.props);
_this._refs = _this.props.refs || _this.props.getRefs(_this.getArgs());
_this.state = _this.props.initialState || (_this.props.getInitialState || function () {
return {};
})(_this.props);
_this._refs = _this.props.refs || (_this.props.getRefs || function () {
return {};
})(_this.getArgs());
_this._setState = function () {

@@ -155,3 +163,5 @@ var _this2;

if (process.env.NODE_ENV !== "production") {
Component.displayName = "ComponentComponent";
// @ts-ignore
Component.displayName = "ComponentComponent"; // @ts-ignore
Component.propTypes = {

@@ -158,0 +168,0 @@ initialState: PropTypes__default['default'].object,

@@ -29,3 +29,5 @@ 'use strict';

var cleanProps = function cleanProps(props) {
var _excluded = ["initialState", "getInitialState", "refs", "getRefs", "didMount", "didUpdate", "willUnmount", "getSnapshotBeforeUpdate", "shouldUpdate", "render"];
function cleanProps(props) {
props.initialState;

@@ -41,6 +43,6 @@ props.getInitialState;

props.render;
var rest = _objectWithoutPropertiesLoose(props, ["initialState", "getInitialState", "refs", "getRefs", "didMount", "didUpdate", "willUnmount", "getSnapshotBeforeUpdate", "shouldUpdate", "render"]);
var rest = _objectWithoutPropertiesLoose(props, _excluded);
return rest;
};
}

@@ -58,5 +60,11 @@ var Component = /*#__PURE__*/function (_React$Component) {

_this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;
_this.state = _this.props.initialState || _this.props.getInitialState(_this.props);
_this._refs = _this.props.refs || _this.props.getRefs(_this.getArgs());
_this.state = _this.props.initialState || (_this.props.getInitialState || function () {
return {};
})(_this.props);
_this._refs = _this.props.refs || (_this.props.getRefs || function () {
return {};
})(_this.getArgs());
_this._setState = function () {

@@ -63,0 +71,0 @@ var _this2;

@@ -25,3 +25,5 @@ import { Component as Component$1 } from 'react';

var cleanProps = function cleanProps(props) {
var _excluded = ["initialState", "getInitialState", "refs", "getRefs", "didMount", "didUpdate", "willUnmount", "getSnapshotBeforeUpdate", "shouldUpdate", "render"];
function cleanProps(props) {
props.initialState;

@@ -37,6 +39,6 @@ props.getInitialState;

props.render;
var rest = _objectWithoutPropertiesLoose(props, ["initialState", "getInitialState", "refs", "getRefs", "didMount", "didUpdate", "willUnmount", "getSnapshotBeforeUpdate", "shouldUpdate", "render"]);
var rest = _objectWithoutPropertiesLoose(props, _excluded);
return rest;
};
}

@@ -54,5 +56,11 @@ var Component = /*#__PURE__*/function (_React$Component) {

_this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;
_this.state = _this.props.initialState || _this.props.getInitialState(_this.props);
_this._refs = _this.props.refs || _this.props.getRefs(_this.getArgs());
_this.state = _this.props.initialState || (_this.props.getInitialState || function () {
return {};
})(_this.props);
_this._refs = _this.props.refs || (_this.props.getRefs || function () {
return {};
})(_this.getArgs());
_this._setState = function () {

@@ -147,3 +155,5 @@ var _this2;

if (process.env.NODE_ENV !== "production") {
Component.displayName = "ComponentComponent";
// @ts-ignore
Component.displayName = "ComponentComponent"; // @ts-ignore
Component.propTypes = {

@@ -150,0 +160,0 @@ initialState: PropTypes.object,

{
"name": "@reach/component-component",
"version": "0.15.0",
"version": "0.15.3",
"description": "Declarative React Component Definitions",

@@ -36,3 +36,3 @@ "author": "React Training <hello@reacttraining.com>",

],
"gitHead": "1449650359c119c1afe25973aa7584e09e2c88bc"
"gitHead": "aac3d3e1902ec32656476bcdccd7b56207384fcd"
}
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