Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-datetime-picker

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-datetime-picker - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

2

dist/DateTimeInput.js

@@ -553,3 +553,3 @@ 'use strict';

// Save a reference to each input field
_this4[(name || ref.name) + 'Input'] = ref;
_this4[name + 'Input'] = ref;
}

@@ -556,0 +556,0 @@ };

{
"name": "react-datetime-picker",
"version": "1.4.0",
"version": "1.4.1",
"description": "A date range picker for your React app.",

@@ -49,5 +49,5 @@ "main": "dist/entry.js",

"react-clock": "^2.2.1",
"react-date-picker": "^6.11.0",
"react-date-picker": "^6.11.2",
"react-lifecycles-compat": "^3.0.4",
"react-time-picker": "2.5.0"
"react-time-picker": "2.5.1"
},

@@ -54,0 +54,0 @@ "devDependencies": {

@@ -25,2 +25,14 @@ import React from 'react';

describe('DateTimePicker', () => {
it('passes name to DateTimeInput', () => {
const name = 'testName';
const component = mount(
<DateTimePicker name={name} />
);
const dateTimeInput = component.find('DateTimeInput');
expect(dateTimeInput.prop('name')).toBe(name);
});
it('applies className to its wrapper when given a string', () => {

@@ -27,0 +39,0 @@ const className = 'testClassName';

@@ -203,3 +203,3 @@ import React, { PureComponent } from 'react';

// Save a reference to each input field
this[`${name || ref.name}Input`] = ref;
this[`${name}Input`] = ref;
},

@@ -206,0 +206,0 @@ };

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