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

react-timepicker

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-timepicker - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

package.json

@@ -7,3 +7,3 @@ {

"version": "1.2.0",
"version": "1.3.0",
"description": "React timepicker in Android KitKat style",

@@ -10,0 +10,0 @@

@@ -70,3 +70,3 @@ [![npm](https://nodei.co/npm/react-timepicker.png?downloads=true)](https://www.npmjs.com/package/react-timepicker)

Function formatting numbers **(default: left pad with 0)**
Function `(number, 'info' | 'clock') => string` formatting numbers **(default: left pad with 0)**

@@ -73,0 +73,0 @@ #### militaryTime

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

formatNumber: function (value) {
formatNumber: function (value/*, mode */) {
return value < 10 ? '0' + value : value;

@@ -141,3 +141,3 @@ }

},
formatNumber(hours)
formatNumber(hours, 'info')
),

@@ -152,3 +152,3 @@ ':',

},
formatNumber(minutes)
formatNumber(minutes, 'info')
)

@@ -359,3 +359,3 @@ );

{ x: x, y: y },
formatNumber(hour)
formatNumber(hour, 'clock')
)

@@ -404,3 +404,3 @@ ));

{ x: x, y: y },
formatNumber(minute)
formatNumber(minute, 'clock')
) : React.createElement('circle', { cx: x, cy: y, r: 10 })

@@ -407,0 +407,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