New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-pikaday

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-pikaday - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

4

CHANGELOG.md
## Changelog
### master
* Allow user to specify arbitrary props that will be passed on to the underlying <input> node (eg props: name, placeholder, data-*, ...)
### v0.4.1 (Apr 8 2016)

@@ -4,0 +8,0 @@

@@ -60,2 +60,13 @@ 'use strict';

// user props to pass down to the underlying DOM node
getDomProps: function getDomProps() {
var restProps = {};
for (var propKey in this.props) {
if (this.props.hasOwnProperty(propKey) && !ReactPikaday.propTypes[propKey]) {
restProps[propKey] = this.props[propKey];
}
}
return restProps;
},
componentDidMount: function componentDidMount() {

@@ -80,4 +91,3 @@ var el = this.refs.pikaday;

render: function render() {
return _react2.default.createElement('input', { type: 'text', ref: 'pikaday', className: this.props.className,
placeholder: this.props.placeholder, disabled: this.props.disabled });
return _react2.default.createElement('input', _extends({ type: 'text', ref: 'pikaday' }, this.getDomProps()));
}

@@ -84,0 +94,0 @@ });

2

package.json
{
"name": "react-pikaday",
"version": "0.5.0",
"version": "0.5.1",
"description": "A React component wrapper around Pikaday.",

@@ -5,0 +5,0 @@ "main": "lib/Pikaday.js",

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