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

react-live-clock

Package Overview
Dependencies
Maintainers
0
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 6.1.22 to 6.1.23-beta

2

package.json
{
"name": "react-live-clock",
"version": "6.1.22",
"version": "6.1.23-beta",
"description": "React Live Clock",

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

@@ -6,3 +6,3 @@ 'use client';

import Moment from 'react-moment';
import 'moment-timezone';
import momentTimezone from 'moment-timezone';

@@ -44,2 +44,6 @@ export default function ReactLiveClock(props) {

useEffect(() => {
momentTimezone.locale('locale');
}, [locale]);
useEffect(() => {
if (noSsr && document) {

@@ -46,0 +50,0 @@ setNoSsr(false);

@@ -236,2 +236,8 @@ import React from 'react';

<Panel
code="<Clock format={'ddd DD MMM HH:mm'} locale={'de'} />"
title="Set the display language and format">
<Clock format={'ddd DD MMM HH:mm'} locale={'de'} />
</Panel>
<Panel
code="<Clock style={{color: 'red'}} />"

@@ -238,0 +244,0 @@ title="custom style">

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