with-immutable-props-to-js
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -18,8 +18,12 @@ "use strict"; | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } | ||
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
@@ -49,3 +53,3 @@ | ||
}, {}); | ||
return _react["default"].createElement(WrappedComponent, _extends({}, propsJS, { | ||
return /*#__PURE__*/_react["default"].createElement(WrappedComponent, _extends({}, propsJS, { | ||
ref: forwardedRef | ||
@@ -59,4 +63,4 @@ })); | ||
var WrapperWithForwardedRef = _react["default"].forwardRef(function (props, ref) { | ||
return _react["default"].createElement(Wrapper, _extends({}, props, { | ||
var WrapperWithForwardedRef = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) { | ||
return /*#__PURE__*/_react["default"].createElement(Wrapper, _extends({}, props, { | ||
forwardedRef: ref | ||
@@ -67,2 +71,3 @@ })); | ||
WrapperWithForwardedRef.displayName = "withImmutablePropsToJS(".concat(getDisplayName(WrappedComponent), ")"); | ||
WrapperWithForwardedRef.WrappedComponent = WrappedComponent; | ||
(0, _hoistNonReactStatics["default"])(WrapperWithForwardedRef, WrappedComponent); | ||
@@ -69,0 +74,0 @@ return WrapperWithForwardedRef; |
{ | ||
"name": "with-immutable-props-to-js", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "A higher-order component for keeping Immutable objects outside your presentational components", | ||
@@ -31,25 +31,27 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/cli": "^7.6.4", | ||
"@babel/core": "^7.6.4", | ||
"@babel/preset-env": "^7.7.1", | ||
"@babel/preset-react": "^7.0.0", | ||
"@tophat/eslint-config": "^0.1.2", | ||
"all-contributors-cli": "^6.9.1", | ||
"@babel/cli": "^7.10.1", | ||
"@babel/core": "^7.10.5", | ||
"@babel/preset-env": "^7.11.0", | ||
"@babel/preset-react": "^7.10.4", | ||
"@tophat/eslint-config": "^0.7.0", | ||
"all-contributors-cli": "^6.17.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-jest": "^24.9.0", | ||
"babel-jest": "^26.1.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.24", | ||
"enzyme": "^3.10.0", | ||
"enzyme-adapter-react-16": "^1.14.0", | ||
"eslint": "^6.6.0", | ||
"eslint-config-prettier": "^6.4.0", | ||
"eslint-plugin-jest": "^22.17.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.3", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"eslint-plugin-react": "^7.16.0", | ||
"enzyme": "^3.11.0", | ||
"enzyme-adapter-react-16": "^1.15.2", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint-plugin-jest": "^23.20.0", | ||
"eslint-plugin-jsx-a11y": "^6.3.1", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"eslint-plugin-react": "^7.20.3", | ||
"eslint-plugin-react-hooks": "^4.0.8", | ||
"immutable": "^4.0.0-rc.12", | ||
"jest": "^24.9.0", | ||
"prettier": "^1.18.2", | ||
"jest": "^26.1.0", | ||
"prettier": "^2.0.5", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.9.0", | ||
"react-dom": "^16.9.0" | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1" | ||
}, | ||
@@ -70,4 +72,4 @@ "peerDependencies": { | ||
"dependencies": { | ||
"hoist-non-react-statics": "^3.3.0" | ||
"hoist-non-react-statics": "^3.3.2" | ||
} | ||
} |
@@ -11,3 +11,3 @@ # with-immutable-props-to-js | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg?style=flat)](#contributors) | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-13-orange.svg?style=flat)](#contributors) | ||
[![Slack workspace](https://slackinvite.dev.tophat.com/badge.svg)](https://opensource.tophat.com/slack) | ||
@@ -81,22 +81,27 @@ [![Maturity badge - level 3](https://img.shields.io/badge/Maturity-Level%203%20--%20Stable-green.svg)](https://github.com/tophat/getting-started/blob/master/scorecard.md) | ||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
<!-- prettier-ignore --> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
<table> | ||
<tr> | ||
<td align="center"><a href="http://msrose.github.io"><img src="https://avatars3.githubusercontent.com/u/3495264?v=4" width="100px;" alt="Michael Rose"/><br /><sub><b>Michael Rose</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=msrose" title="Code">💻</a> <a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=msrose" title="Documentation">📖</a> <a href="#infra-msrose" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="https://www.linkedin.com/in/brandonbaksh/"><img src="https://avatars1.githubusercontent.com/u/39271619?v=4" width="100px;" alt="Brandon Baksh"/><br /><sub><b>Brandon Baksh</b></sub></a><br /><a href="#infra-brandonbaksh" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="https://github.com/apps/greenkeeper"><img src="https://avatars3.githubusercontent.com/in/505?v=4" width="100px;" alt="greenkeeper[bot]"/><br /><sub><b>greenkeeper[bot]</b></sub></a><br /><a href="#infra-greenkeeper[bot]" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="https://jakebolam.com"><img src="https://avatars2.githubusercontent.com/u/3534236?v=4" width="100px;" alt="Jake Bolam"/><br /><sub><b>Jake Bolam</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=jakebolam" title="Documentation">📖</a> <a href="#infra-jakebolam" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="http://www.sanchitgera.ca"><img src="https://avatars0.githubusercontent.com/u/8632167?v=4" width="100px;" alt="Sanchit Gera"/><br /><sub><b>Sanchit Gera</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=sanchitgera" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://breezio.com"><img src="https://avatars1.githubusercontent.com/u/445636?v=4" width="100px;" alt="Siavash Mahmoudian"/><br /><sub><b>Siavash Mahmoudian</b></sub></a><br /><a href="#infra-syavash" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="http://www.monicamoore.ca"><img src="https://avatars1.githubusercontent.com/u/8105535?v=4" width="100px;" alt="monicamm95"/><br /><sub><b>monicamm95</b></sub></a><br /><a href="#design-monicamm95" title="Design">🎨</a></td> | ||
<td align="center"><a href="http://msrose.github.io"><img src="https://avatars3.githubusercontent.com/u/3495264?v=4" width="100px;" alt=""/><br /><sub><b>Michael Rose</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=msrose" title="Code">💻</a> <a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=msrose" title="Documentation">📖</a> <a href="#infra-msrose" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="https://www.linkedin.com/in/brandonbaksh/"><img src="https://avatars1.githubusercontent.com/u/39271619?v=4" width="100px;" alt=""/><br /><sub><b>Brandon Baksh</b></sub></a><br /><a href="#infra-brandonbaksh" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="https://github.com/apps/greenkeeper"><img src="https://avatars3.githubusercontent.com/in/505?v=4" width="100px;" alt=""/><br /><sub><b>greenkeeper[bot]</b></sub></a><br /><a href="#infra-greenkeeper[bot]" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="https://jakebolam.com"><img src="https://avatars2.githubusercontent.com/u/3534236?v=4" width="100px;" alt=""/><br /><sub><b>Jake Bolam</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=jakebolam" title="Documentation">📖</a> <a href="#infra-jakebolam" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="http://www.sanchitgera.ca"><img src="https://avatars0.githubusercontent.com/u/8632167?v=4" width="100px;" alt=""/><br /><sub><b>Sanchit Gera</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=sanchitgera" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://breezio.com"><img src="https://avatars1.githubusercontent.com/u/445636?v=4" width="100px;" alt=""/><br /><sub><b>Siavash Mahmoudian</b></sub></a><br /><a href="#infra-syavash" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="http://www.monicamoore.ca"><img src="https://avatars1.githubusercontent.com/u/8105535?v=4" width="100px;" alt=""/><br /><sub><b>monicamm95</b></sub></a><br /><a href="#design-monicamm95" title="Design">🎨</a></td> | ||
</tr> | ||
<tr> | ||
<td align="center"><a href="https://github.com/danilomatamoros"><img src="https://avatars0.githubusercontent.com/u/6589617?v=4" width="100px;" alt="Danilo Matamoros"/><br /><sub><b>Danilo Matamoros</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=danilomatamoros" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/enheit"><img src="https://avatars1.githubusercontent.com/u/8645216?v=4" width="100px;" alt="Roman Mahotskyi"/><br /><sub><b>Roman Mahotskyi</b></sub></a><br /><a href="#infra-enheit" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="http://twitter.com/pfmmfp"><img src="https://avatars3.githubusercontent.com/u/2229060?v=4" width="100px;" alt="Pablo Morra"/><br /><sub><b>Pablo Morra</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=pfmmfp" title="Code">💻</a> <a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=pfmmfp" title="Tests">⚠️</a></td> | ||
<td align="center"><a href="https://github.com/apps/dependabot"><img src="https://avatars0.githubusercontent.com/in/29110?v=4" width="100px;" alt="dependabot[bot]"/><br /><sub><b>dependabot[bot]</b></sub></a><br /><a href="#infra-dependabot[bot]" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="https://github.com/maarteti"><img src="https://avatars2.githubusercontent.com/u/1140243?v=4" width="100px;" alt="jinwoo choi"/><br /><sub><b>jinwoo choi</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=maarteti" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/danilomatamoros"><img src="https://avatars0.githubusercontent.com/u/6589617?v=4" width="100px;" alt=""/><br /><sub><b>Danilo Matamoros</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=danilomatamoros" title="Code">💻</a></td> | ||
<td align="center"><a href="https://github.com/enheit"><img src="https://avatars1.githubusercontent.com/u/8645216?v=4" width="100px;" alt=""/><br /><sub><b>Roman Mahotskyi</b></sub></a><br /><a href="#infra-enheit" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="http://twitter.com/pfmmfp"><img src="https://avatars3.githubusercontent.com/u/2229060?v=4" width="100px;" alt=""/><br /><sub><b>Pablo Morra</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=pfmmfp" title="Code">💻</a> <a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=pfmmfp" title="Tests">⚠️</a></td> | ||
<td align="center"><a href="https://github.com/apps/dependabot"><img src="https://avatars0.githubusercontent.com/in/29110?v=4" width="100px;" alt=""/><br /><sub><b>dependabot[bot]</b></sub></a><br /><a href="#infra-dependabot[bot]" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="https://github.com/maarteti"><img src="https://avatars2.githubusercontent.com/u/1140243?v=4" width="100px;" alt=""/><br /><sub><b>jinwoo choi</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=maarteti" title="Code">💻</a></td> | ||
<td align="center"><a href="https://mcataford.github.io"><img src="https://avatars2.githubusercontent.com/u/6210361?v=4" width="100px;" alt=""/><br /><sub><b>Marc Cataford</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=mcataford" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://github.com/mh91chentophat"><img src="https://avatars3.githubusercontent.com/u/22596458?v=4" width="100px;" alt=""/><br /><sub><b>Michael Chen</b></sub></a><br /><a href="https://github.com/tophat/with-immutable-props-to-js/commits?author=mh91chentophat" title="Code">💻</a></td> | ||
</tr> | ||
</table> | ||
<!-- markdownlint-enable --> | ||
<!-- prettier-ignore-end --> | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
@@ -103,0 +108,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26279
59
112
25