@fortawesome/react-fontawesome
Advanced tools
Comparing version 0.1.16 to 0.1.17
137
index.es.js
@@ -5,16 +5,38 @@ import { parse, icon } from '@fortawesome/fontawesome-svg-core'; | ||
function _typeof(obj) { | ||
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
_typeof = function (obj) { | ||
return typeof obj; | ||
}; | ||
} else { | ||
_typeof = function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
enumerableOnly && (symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
})), keys.push.apply(keys, symbols); | ||
} | ||
return _typeof(obj); | ||
return keys; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = null != arguments[i] ? arguments[i] : {}; | ||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
return target; | ||
} | ||
function _typeof(obj) { | ||
"@babel/helpers - typeof"; | ||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | ||
return typeof obj; | ||
} : function (obj) { | ||
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}, _typeof(obj); | ||
} | ||
function _defineProperty(obj, key, value) { | ||
@@ -35,36 +57,2 @@ if (key in obj) { | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
keys.push.apply(keys, symbols); | ||
} | ||
return keys; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
} | ||
return target; | ||
} | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
@@ -107,19 +95,32 @@ if (source == null) return {}; | ||
function _toConsumableArray(arr) { | ||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); | ||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); | ||
} | ||
function _arrayWithoutHoles(arr) { | ||
if (Array.isArray(arr)) { | ||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; | ||
return arr2; | ||
} | ||
if (Array.isArray(arr)) return _arrayLikeToArray(arr); | ||
} | ||
function _iterableToArray(iter) { | ||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); | ||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); | ||
} | ||
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 _nonIterableSpread() { | ||
throw new TypeError("Invalid attempt to spread non-iterable instance"); | ||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
@@ -131,3 +132,8 @@ | ||
var spin = props.spin, | ||
var beat = props.beat, | ||
fade = props.fade, | ||
flash = props.flash, | ||
spin = props.spin, | ||
spinPulse = props.spinPulse, | ||
spinReverse = props.spinReverse, | ||
pulse = props.pulse, | ||
@@ -144,3 +150,8 @@ fixedWidth = props.fixedWidth, | ||
var classes = (_classes = { | ||
'fa-beat': beat, | ||
'fa-fade': fade, | ||
'fa-flash': flash, | ||
'fa-spin': spin, | ||
'fa-spin-reverse': spinReverse, | ||
'fa-spin-pulse': spinPulse, | ||
'fa-pulse': pulse, | ||
@@ -186,2 +197,4 @@ 'fa-fw': fixedWidth, | ||
var _excluded$1 = ["style"]; | ||
function capitalize(val) { | ||
@@ -246,8 +259,8 @@ return val.charAt(0).toUpperCase() + val.slice(1); | ||
existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style, | ||
remaining = _objectWithoutProperties(extraProps, ["style"]); | ||
remaining = _objectWithoutProperties(extraProps, _excluded$1); | ||
mixins.attrs['style'] = _objectSpread2({}, mixins.attrs['style'], {}, existingStyle); | ||
mixins.attrs['style'] = _objectSpread2(_objectSpread2({}, mixins.attrs['style']), existingStyle); | ||
/* eslint-enable */ | ||
return createElement.apply(void 0, [element.tag, _objectSpread2({}, mixins.attrs, {}, remaining)].concat(_toConsumableArray(children))); | ||
return createElement.apply(void 0, [element.tag, _objectSpread2(_objectSpread2({}, mixins.attrs), remaining)].concat(_toConsumableArray(children))); | ||
} | ||
@@ -319,5 +332,6 @@ | ||
var _excluded = ["forwardedRef"]; | ||
function FontAwesomeIcon(_ref) { | ||
var forwardedRef = _ref.forwardedRef, | ||
props = _objectWithoutProperties(_ref, ["forwardedRef"]); | ||
props = _objectWithoutProperties(_ref, _excluded); | ||
@@ -334,3 +348,3 @@ var iconArgs = props.icon, | ||
var mask = objectWithKey('mask', normalizeIconArgs(maskArgs)); | ||
var renderedIcon = icon(iconLookup, _objectSpread2({}, classes, {}, transform, {}, mask, { | ||
var renderedIcon = icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, { | ||
symbol: symbol, | ||
@@ -360,4 +374,7 @@ title: title, | ||
FontAwesomeIcon.propTypes = { | ||
beat: PropTypes.bool, | ||
border: PropTypes.bool, | ||
className: PropTypes.string, | ||
fade: PropTypes.bool, | ||
flash: PropTypes.bool, | ||
mask: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]), | ||
@@ -372,4 +389,6 @@ fixedWidth: PropTypes.bool, | ||
rotation: PropTypes.oneOf([0, 90, 180, 270]), | ||
size: PropTypes.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']), | ||
size: PropTypes.oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']), | ||
spin: PropTypes.bool, | ||
spinPulse: PropTypes.bool, | ||
spinReverse: PropTypes.bool, | ||
symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]), | ||
@@ -376,0 +395,0 @@ title: PropTypes.string, |
183
index.js
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@fortawesome/fontawesome-svg-core'), require('prop-types'), require('react')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@fortawesome/fontawesome-svg-core', 'prop-types', 'react'], factory) : | ||
(global = global || self, factory(global['react-fontawesome'] = {}, global.FontAwesome, global.PropTypes, global.React)); | ||
}(this, (function (exports, fontawesomeSvgCore, PropTypes, React) { 'use strict'; | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["react-fontawesome"] = {}, global.FontAwesome, global.PropTypes, global.React)); | ||
})(this, (function (exports, fontawesomeSvgCore, PropTypes, React) { 'use strict'; | ||
PropTypes = PropTypes && PropTypes.hasOwnProperty('default') ? PropTypes['default'] : PropTypes; | ||
React = React && React.hasOwnProperty('default') ? React['default'] : React; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
function _typeof(obj) { | ||
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
_typeof = function (obj) { | ||
return typeof obj; | ||
}; | ||
} else { | ||
_typeof = function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes); | ||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
enumerableOnly && (symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
})), keys.push.apply(keys, symbols); | ||
} | ||
return _typeof(obj); | ||
return keys; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = null != arguments[i] ? arguments[i] : {}; | ||
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
return target; | ||
} | ||
function _typeof(obj) { | ||
"@babel/helpers - typeof"; | ||
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { | ||
return typeof obj; | ||
} : function (obj) { | ||
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}, _typeof(obj); | ||
} | ||
function _defineProperty(obj, key, value) { | ||
@@ -39,36 +63,2 @@ if (key in obj) { | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
keys.push.apply(keys, symbols); | ||
} | ||
return keys; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
if (i % 2) { | ||
ownKeys(Object(source), true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(Object(source)).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
} | ||
return target; | ||
} | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
@@ -111,19 +101,32 @@ if (source == null) return {}; | ||
function _toConsumableArray(arr) { | ||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); | ||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); | ||
} | ||
function _arrayWithoutHoles(arr) { | ||
if (Array.isArray(arr)) { | ||
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; | ||
return arr2; | ||
} | ||
if (Array.isArray(arr)) return _arrayLikeToArray(arr); | ||
} | ||
function _iterableToArray(iter) { | ||
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); | ||
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); | ||
} | ||
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 _nonIterableSpread() { | ||
throw new TypeError("Invalid attempt to spread non-iterable instance"); | ||
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
@@ -135,3 +138,8 @@ | ||
var spin = props.spin, | ||
var beat = props.beat, | ||
fade = props.fade, | ||
flash = props.flash, | ||
spin = props.spin, | ||
spinPulse = props.spinPulse, | ||
spinReverse = props.spinReverse, | ||
pulse = props.pulse, | ||
@@ -148,3 +156,8 @@ fixedWidth = props.fixedWidth, | ||
var classes = (_classes = { | ||
'fa-beat': beat, | ||
'fa-fade': fade, | ||
'fa-flash': flash, | ||
'fa-spin': spin, | ||
'fa-spin-reverse': spinReverse, | ||
'fa-spin-pulse': spinPulse, | ||
'fa-pulse': pulse, | ||
@@ -190,2 +203,4 @@ 'fa-fw': fixedWidth, | ||
var _excluded$1 = ["style"]; | ||
function capitalize(val) { | ||
@@ -250,8 +265,8 @@ return val.charAt(0).toUpperCase() + val.slice(1); | ||
existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style, | ||
remaining = _objectWithoutProperties(extraProps, ["style"]); | ||
remaining = _objectWithoutProperties(extraProps, _excluded$1); | ||
mixins.attrs['style'] = _objectSpread2({}, mixins.attrs['style'], {}, existingStyle); | ||
mixins.attrs['style'] = _objectSpread2(_objectSpread2({}, mixins.attrs['style']), existingStyle); | ||
/* eslint-enable */ | ||
return createElement.apply(void 0, [element.tag, _objectSpread2({}, mixins.attrs, {}, remaining)].concat(_toConsumableArray(children))); | ||
return createElement.apply(void 0, [element.tag, _objectSpread2(_objectSpread2({}, mixins.attrs), remaining)].concat(_toConsumableArray(children))); | ||
} | ||
@@ -323,5 +338,6 @@ | ||
var _excluded = ["forwardedRef"]; | ||
function FontAwesomeIcon(_ref) { | ||
var forwardedRef = _ref.forwardedRef, | ||
props = _objectWithoutProperties(_ref, ["forwardedRef"]); | ||
props = _objectWithoutProperties(_ref, _excluded); | ||
@@ -338,3 +354,3 @@ var iconArgs = props.icon, | ||
var mask = objectWithKey('mask', normalizeIconArgs(maskArgs)); | ||
var renderedIcon = fontawesomeSvgCore.icon(iconLookup, _objectSpread2({}, classes, {}, transform, {}, mask, { | ||
var renderedIcon = fontawesomeSvgCore.icon(iconLookup, _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, classes), transform), mask), {}, { | ||
symbol: symbol, | ||
@@ -364,19 +380,24 @@ title: title, | ||
FontAwesomeIcon.propTypes = { | ||
border: PropTypes.bool, | ||
className: PropTypes.string, | ||
mask: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]), | ||
fixedWidth: PropTypes.bool, | ||
inverse: PropTypes.bool, | ||
flip: PropTypes.oneOf(['horizontal', 'vertical', 'both']), | ||
icon: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]), | ||
listItem: PropTypes.bool, | ||
pull: PropTypes.oneOf(['right', 'left']), | ||
pulse: PropTypes.bool, | ||
rotation: PropTypes.oneOf([0, 90, 180, 270]), | ||
size: PropTypes.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']), | ||
spin: PropTypes.bool, | ||
symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]), | ||
title: PropTypes.string, | ||
transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), | ||
swapOpacity: PropTypes.bool | ||
beat: PropTypes__default["default"].bool, | ||
border: PropTypes__default["default"].bool, | ||
className: PropTypes__default["default"].string, | ||
fade: PropTypes__default["default"].bool, | ||
flash: PropTypes__default["default"].bool, | ||
mask: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array, PropTypes__default["default"].string]), | ||
fixedWidth: PropTypes__default["default"].bool, | ||
inverse: PropTypes__default["default"].bool, | ||
flip: PropTypes__default["default"].oneOf(['horizontal', 'vertical', 'both']), | ||
icon: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].array, PropTypes__default["default"].string]), | ||
listItem: PropTypes__default["default"].bool, | ||
pull: PropTypes__default["default"].oneOf(['right', 'left']), | ||
pulse: PropTypes__default["default"].bool, | ||
rotation: PropTypes__default["default"].oneOf([0, 90, 180, 270]), | ||
size: PropTypes__default["default"].oneOf(['2xs', 'xs', 'sm', 'lg', 'xl', '2xl', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']), | ||
spin: PropTypes__default["default"].bool, | ||
spinPulse: PropTypes__default["default"].bool, | ||
spinReverse: PropTypes__default["default"].bool, | ||
symbol: PropTypes__default["default"].oneOfType([PropTypes__default["default"].bool, PropTypes__default["default"].string]), | ||
title: PropTypes__default["default"].string, | ||
transform: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].object]), | ||
swapOpacity: PropTypes__default["default"].bool | ||
}; | ||
@@ -402,3 +423,3 @@ FontAwesomeIcon.defaultProps = { | ||
}; | ||
var convertCurry = convert.bind(null, React.createElement); | ||
var convertCurry = convert.bind(null, React__default["default"].createElement); | ||
@@ -409,2 +430,2 @@ exports.FontAwesomeIcon = FontAwesomeIcon; | ||
}))); | ||
})); |
{ | ||
"name": "@fortawesome/react-fontawesome", | ||
"description": "Official React component for Font Awesome 5", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"main": "index.js", | ||
@@ -36,3 +36,2 @@ "module": "index.es.js", | ||
"prettier": "pretty-quick --pattern src/** --staged", | ||
"precommit": "npm run lint && npm run prettier && lint-staged", | ||
"prepack": "npm run dist", | ||
@@ -55,15 +54,18 @@ "test": "npm run test.latest && npm run test.next.proregistry", | ||
"devDependencies": { | ||
"@babel/core": "^7.7.5", | ||
"@babel/plugin-external-helpers": "^7.7.4", | ||
"@babel/preset-env": "^7.7.5", | ||
"@babel/preset-react": "^7.7.4", | ||
"@babel/preset-stage-3": "^7.0.0", | ||
"@babel/core": "^7.16.7", | ||
"@babel/plugin-external-helpers": "^7.16.7", | ||
"@babel/preset-env": "^7.16.8", | ||
"@babel/preset-react": "^7.16.7", | ||
"@babel/preset-stage-3": "^7.8.3", | ||
"@fortawesome/fontawesome-svg-core": "^1.2.32", | ||
"@fortawesome/free-solid-svg-icons": "^5.15.1", | ||
"@types/react": "^16.9.15", | ||
"@fortawesome/free-solid-svg-icons": "^5.15.4", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^21.0.1", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"@types/react": "^17.0.38", | ||
"babel-eslint": "^10.0.3", | ||
"babel-jest": "^24.9.0", | ||
"browserslist": "^4.8.2", | ||
"caniuse-lite": "^1.0.30001015", | ||
"cross-env": "^6.0.3", | ||
"babel-jest": "^27.4.6", | ||
"browserslist": "^4.19.1", | ||
"caniuse-lite": "^1.0.30001299", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^6.7.2", | ||
@@ -78,18 +80,15 @@ "eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"husky": "^3.1.0", | ||
"jest": "^24.9.0", | ||
"lint-staged": "^9.5.0", | ||
"husky": "^7.0.4", | ||
"jest": "^27.4.7", | ||
"lint-staged": "^12.1.7", | ||
"markdown-toc": "^1.2.0", | ||
"prettier": "^1.19.1", | ||
"pretty-quick": "^2.0.1", | ||
"react": "^16.4.2", | ||
"react-dom": "^16.12.0", | ||
"react-test-renderer": "^16.2.0", | ||
"rollup": "^1.27.8", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0" | ||
"prettier": "^2.5.1", | ||
"pretty-quick": "^3.1.3", | ||
"react": ">=17.x", | ||
"react-dom": "^17.0.2", | ||
"react-test-renderer": "^17.0.2", | ||
"rollup": "^2.64.0" | ||
}, | ||
"dependencies": { | ||
"prop-types": "^15.7.2" | ||
"prop-types": "^15.8.1" | ||
}, | ||
@@ -110,3 +109,8 @@ "files": [ | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run lint && npm run prettier && lint-staged" | ||
} | ||
} | ||
} |
@@ -67,3 +67,2 @@ <a href="https://fontawesome.com"> | ||
| <img src="https://github.com/talbs.png?size=72" /> | Brian Talbot | [@talbs](https://github.com/talbs) | | ||
| <img src="https://github.com/talbs.png?size=72" /> | Brian Talbot | [@talbs](https://github.com/talbs) | | ||
| <img src="https://github.com/jasonlundien.png?size=72" /> | Jason Lundien | [@jasonlundien](https://github.com/jasonlundien) | | ||
@@ -70,0 +69,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
726
37334
6
72
Updatedprop-types@^15.8.1