react-flatpickr
Advanced tools
Comparing version 3.6.4 to 3.7.0
@@ -34,2 +34,3 @@ 'use strict'; | ||
var hooks = ['onChange', 'onOpen', 'onClose', 'onMonthChange', 'onYearChange', 'onReady', 'onValueUpdate', 'onDayCreate']; | ||
var hookPropType = _propTypes2.default.oneOfType([_propTypes2.default.func, _propTypes2.default.arrayOf(_propTypes2.default.func)]); | ||
@@ -153,10 +154,10 @@ var DateTimePicker = function (_Component) { | ||
options: _propTypes2.default.object, | ||
onChange: _propTypes2.default.func, | ||
onOpen: _propTypes2.default.func, | ||
onClose: _propTypes2.default.func, | ||
onMonthChange: _propTypes2.default.func, | ||
onYearChange: _propTypes2.default.func, | ||
onReady: _propTypes2.default.func, | ||
onValueUpdate: _propTypes2.default.func, | ||
onDayCreate: _propTypes2.default.func, | ||
onChange: hookPropType, | ||
onOpen: hookPropType, | ||
onClose: hookPropType, | ||
onMonthChange: hookPropType, | ||
onYearChange: hookPropType, | ||
onReady: hookPropType, | ||
onValueUpdate: hookPropType, | ||
onDayCreate: hookPropType, | ||
value: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.object, _propTypes2.default.number]), | ||
@@ -163,0 +164,0 @@ children: _propTypes2.default.node |
@@ -16,2 +16,6 @@ | ||
] | ||
const hookPropType = PropTypes.oneOfType([ | ||
PropTypes.func, | ||
PropTypes.arrayOf(PropTypes.func) | ||
]) | ||
@@ -22,10 +26,10 @@ class DateTimePicker extends Component { | ||
options: PropTypes.object, | ||
onChange: PropTypes.func, | ||
onOpen: PropTypes.func, | ||
onClose: PropTypes.func, | ||
onMonthChange: PropTypes.func, | ||
onYearChange: PropTypes.func, | ||
onReady: PropTypes.func, | ||
onValueUpdate: PropTypes.func, | ||
onDayCreate: PropTypes.func, | ||
onChange: hookPropType, | ||
onOpen: hookPropType, | ||
onClose: hookPropType, | ||
onMonthChange: hookPropType, | ||
onYearChange: hookPropType, | ||
onReady: hookPropType, | ||
onValueUpdate: hookPropType, | ||
onDayCreate: hookPropType, | ||
value: PropTypes.oneOfType([ | ||
@@ -32,0 +36,0 @@ PropTypes.string, |
{ | ||
"name": "react-flatpickr", | ||
"version": "3.6.4", | ||
"version": "3.7.0", | ||
"description": "flatpickr for React", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -13,3 +13,3 @@ | ||
```jsx | ||
import 'flatpickr/dist/themes/material_green.min.css' | ||
import 'flatpickr/dist/themes/material_green.css' | ||
@@ -16,0 +16,0 @@ import Flatpickr from 'react-flatpickr' |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1
12979
4
240
1