react-flatpickr
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -95,3 +95,3 @@ 'use strict'; | ||
children | ||
) : _react2.default.createElement('input', _extends({}, props, { defaultValue: defaultValue || value, | ||
) : _react2.default.createElement('input', _extends({}, props, { defaultValue: defaultValue, | ||
ref: function ref(node) { | ||
@@ -110,3 +110,3 @@ _this2.node = node; | ||
onChange: _propTypes2.default.func, | ||
value: _propTypes2.default.string, | ||
value: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.array, _propTypes2.default.object]), | ||
children: _propTypes2.default.node | ||
@@ -113,0 +113,0 @@ }; |
@@ -11,3 +11,7 @@ | ||
onChange: PropTypes.func, | ||
value: PropTypes.string, | ||
value: PropTypes.oneOfType([ | ||
PropTypes.string, | ||
PropTypes.array, | ||
PropTypes.object | ||
]), | ||
children: PropTypes.node | ||
@@ -61,3 +65,3 @@ } | ||
: ( | ||
<input {...props} defaultValue={defaultValue || value} | ||
<input {...props} defaultValue={defaultValue} | ||
ref={node => { this.node = node }} /> | ||
@@ -64,0 +68,0 @@ ) |
{ | ||
"name": "react-flatpickr", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "flatpickr for React", | ||
@@ -25,3 +25,4 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"flatpickr": "^2.3.5" | ||
"flatpickr": "^2.3.5", | ||
"prop-types": "^15.5.7" | ||
}, | ||
@@ -39,3 +40,2 @@ "devDependencies": { | ||
"eslint-config-ok": "github:haoxins/eslint-config", | ||
"prop-types": "^15.5.7", | ||
"react": "^15.4.2", | ||
@@ -42,0 +42,0 @@ "react-dom": "^15.4.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
14
21686
1879120
2
406
2
+ Addedprop-types@^15.5.7
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact-is@16.13.1(transitive)