react-live-clock
Advanced tools
Comparing version 5.0.0-beta2 to 5.0.0-beta3
@@ -23,2 +23,4 @@ 'use strict'; | ||
require('moment-timezone'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -101,4 +103,3 @@ | ||
format: formatToUse, | ||
tz: timezone | ||
}, | ||
tz: timezone }, | ||
currentTime | ||
@@ -105,0 +106,0 @@ ); |
{ | ||
"name": "react-live-clock", | ||
"version": "5.0.0-beta2", | ||
"version": "5.0.0-beta3", | ||
"description": "React Live Clock", | ||
@@ -37,11 +37,15 @@ "main": "lib/index.js", | ||
"peerDependencies": { | ||
"moment-timezone": "0.5.31", | ||
"react": "^16.8", | ||
"moment-timezone": "0.5.31", | ||
"react-moment": "0.9.7" | ||
"react-moment": "0.9.7", | ||
"moment": "2.24.0" | ||
}, | ||
"devDependencies": { | ||
"cf-react-component-template": "0.1.8", | ||
"eslint": "7.5.0", | ||
"eslint-plugin-react": "7.20.4", | ||
"moment-timezone": "0.5.31", | ||
"prop-types": "15.7.2", | ||
"react": "16.13.1", | ||
"moment": "2.24.0", | ||
"react-component-template": "0.1.10", | ||
@@ -48,0 +52,0 @@ "react-dom": "16.12.0", |
import React, {useState, useEffect} from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Moment from 'react-moment'; | ||
import 'moment-timezone'; | ||
@@ -60,4 +61,3 @@ export default function ReactLiveClock(props) { | ||
format={formatToUse} | ||
tz={timezone} | ||
> | ||
tz={timezone}> | ||
{currentTime} | ||
@@ -64,0 +64,0 @@ </Moment> |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
8055923
81091
4
13
27
48