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

react-live-clock

Package Overview
Dependencies
Maintainers
2
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-live-clock - npm Package Compare versions

Comparing version 5.0.13 to 5.0.14

8

lib/Component.js

@@ -36,3 +36,5 @@ 'use strict';

onChange = props.onChange,
blinking = props.blinking;
blinking = props.blinking,
className = props.className,
style = props.style;

@@ -101,4 +103,6 @@ var _useState = (0, _react.useState)(Date.now()),

{
className: className,
date: date,
format: formatToUse,
style: style,
tz: timezone },

@@ -110,5 +114,7 @@ currentTime

ReactLiveClock.propTypes = {
className: _propTypes2.default.string,
date: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]),
blinking: _propTypes2.default.bool,
format: _propTypes2.default.string,
style: _propTypes2.default.object,
interval: _propTypes2.default.number,

@@ -115,0 +121,0 @@ ticking: _propTypes2.default.bool,

8

package.json
{
"name": "react-live-clock",
"version": "5.0.13",
"version": "5.0.14",
"description": "React Live Clock",

@@ -44,4 +44,4 @@ "main": "lib/index.js",

"cf-react-component-template": "0.1.8",
"eslint": "7.14.0",
"eslint-plugin-react": "7.21.5",
"eslint": "7.18.0",
"eslint-plugin-react": "7.22.0",
"moment": "2.29.1",

@@ -55,5 +55,5 @@ "moment-timezone": "0.5.32",

"react-highlight.js": "1.0.7",
"react-moment": "1.0.0",
"react-moment": "1.1.1",
"react-router-dom": "5.2.0"
}
}

@@ -7,3 +7,3 @@ import React, {useState, useEffect} from 'react';

export default function ReactLiveClock(props) {
const {timezone, date, format, interval, ticking, onChange, blinking} = props;
const {timezone, date, format, interval, ticking, onChange, blinking, className, style} = props;
const [currentTime, setCurrentTime] = useState(Date.now());

@@ -60,4 +60,6 @@ const [formatToUse, setFormatToUse] = useState(format);

<Moment
className={className}
date={date}
format={formatToUse}
style={style}
tz={timezone}>

@@ -70,2 +72,3 @@ {currentTime}

ReactLiveClock.propTypes = {
className: PropTypes.string,
date: PropTypes.oneOfType([

@@ -77,2 +80,3 @@ PropTypes.number,

format: PropTypes.string,
style: PropTypes.object,
interval: PropTypes.number,

@@ -79,0 +83,0 @@ ticking: PropTypes.bool,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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