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

@reach/component-component

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

@reach/component-component - npm Package Compare versions

Comparing version 0.5.0 to 0.6.1

24

es/index.js

@@ -10,3 +10,3 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

import React from "react";
import { object, func, oneOfType, node } from "prop-types";
import PropTypes from "prop-types";

@@ -137,13 +137,13 @@ var cleanProps = function cleanProps(props) {

Component.propTypes = {
initialState: object,
getInitialState: func,
refs: object,
getRefs: func,
didMount: func,
didUpdate: func,
willUnmount: func,
getSnapshotBeforeUpdate: func,
shouldUpdate: func,
render: func,
children: oneOfType([func, node])
initialState: PropTypes.object,
getInitialState: PropTypes.func,
refs: PropTypes.object,
getRefs: PropTypes.func,
didMount: PropTypes.func,
didUpdate: PropTypes.func,
willUnmount: PropTypes.func,
getSnapshotBeforeUpdate: PropTypes.func,
shouldUpdate: PropTypes.func,
render: PropTypes.func,
children: PropTypes.oneOfType([PropTypes.func, PropTypes.node])
};

@@ -150,0 +150,0 @@ }

@@ -8,3 +8,3 @@ "use strict";

var _propTypes = require("prop-types");
var _propTypes = _interopRequireDefault(require("prop-types"));

@@ -145,13 +145,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

Component.propTypes = {
initialState: _propTypes.object,
getInitialState: _propTypes.func,
refs: _propTypes.object,
getRefs: _propTypes.func,
didMount: _propTypes.func,
didUpdate: _propTypes.func,
willUnmount: _propTypes.func,
getSnapshotBeforeUpdate: _propTypes.func,
shouldUpdate: _propTypes.func,
render: _propTypes.func,
children: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.node])
initialState: _propTypes["default"].object,
getInitialState: _propTypes["default"].func,
refs: _propTypes["default"].object,
getRefs: _propTypes["default"].func,
didMount: _propTypes["default"].func,
didUpdate: _propTypes["default"].func,
willUnmount: _propTypes["default"].func,
getSnapshotBeforeUpdate: _propTypes["default"].func,
shouldUpdate: _propTypes["default"].func,
render: _propTypes["default"].func,
children: _propTypes["default"].oneOfType([_propTypes["default"].func, _propTypes["default"].node])
};

@@ -158,0 +158,0 @@ }

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

@@ -30,3 +30,3 @@ "main": "index.js",

],
"gitHead": "7e33672d882cd6df77ac8cdb76b6b4a21dbf28c2"
"gitHead": "c1e249448a3672ccc65698218f0f38ef9814ab90"
}
import React from "react";
import { object, func, oneOfType, node } from "prop-types";
import PropTypes from "prop-types";

@@ -109,13 +109,13 @@ let cleanProps = props => {

Component.propTypes = {
initialState: object,
getInitialState: func,
refs: object,
getRefs: func,
didMount: func,
didUpdate: func,
willUnmount: func,
getSnapshotBeforeUpdate: func,
shouldUpdate: func,
render: func,
children: oneOfType([func, node])
initialState: PropTypes.object,
getInitialState: PropTypes.func,
refs: PropTypes.object,
getRefs: PropTypes.func,
didMount: PropTypes.func,
didUpdate: PropTypes.func,
willUnmount: PropTypes.func,
getSnapshotBeforeUpdate: PropTypes.func,
shouldUpdate: PropTypes.func,
render: PropTypes.func,
children: PropTypes.oneOfType([PropTypes.func, PropTypes.node])
};

@@ -122,0 +122,0 @@ }

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