Socket
Socket
Sign inDemoInstall

react-calendar

Package Overview
Dependencies
Maintainers
3
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-calendar - npm Package Compare versions

Comparing version 2.13.0 to 2.13.1

4

dist/Calendar.js

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

if (Number.isNaN(valueFromDate.getTime())) {
if (isNaN(valueFromDate.getTime())) {
throw new Error('Invalid date: ' + value);

@@ -112,3 +112,3 @@ }

if (Number.isNaN(valueToDate.getTime())) {
if (isNaN(valueToDate.getTime())) {
throw new Error('Invalid date: ' + value);

@@ -115,0 +115,0 @@ }

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

if (typeof date === 'string' && !Number.isNaN(year)) {
if (typeof date === 'string' && !isNaN(year)) {
return year;

@@ -532,3 +532,3 @@ }

if (Number.isNaN(date.getTime())) {
if (isNaN(date.getTime())) {
throw new Error('Invalid date: ' + value);

@@ -553,3 +553,3 @@ }

if (Number.isNaN(date.getTime())) {
if (isNaN(date.getTime())) {
throw new Error('Invalid date: ' + value);

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

{
"name": "react-calendar",
"version": "2.13.0",
"version": "2.13.1",
"description": "Ultimate calendar for your React app.",

@@ -64,2 +64,3 @@ "main": "dist/entry.js",

"babel-eslint": "^8.2.1",
"babel-jest": "^22.1.0",
"babel-plugin-transform-class-properties": "^6.24.1",

@@ -66,0 +67,0 @@ "babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",

@@ -33,15 +33,4 @@ ![downloads](https://img.shields.io/npm/dt/react-calendar.svg) ![build](https://img.shields.io/travis/wojtekmaj/react-calendar.svg) ![dependencies](https://img.shields.io/david/wojtekmaj/react-calendar.svg

React-Calendar uses modern web technologies. That's why it's so fast, lightweight and easy to style. This, however, comes at a cost of supporting only modern browsers.
React-Calendar uses modern web technologies. That's why it's so fast, lightweight and easy to style. This, however, comes at a cost of [supporting only modern browsers](https://caniuse.com/#feat=internationalization).
|Browser|Minimum supported version|
|----|----|
|Google Chrome|24|
|Mozilla Firefox|29|
|Microsoft Edge|12|
|Apple Safari|10|
|Apple Safari (iOS)|10.2|
|Opera|15|
|Internet Explorer|11|
|Samsung Internet|4|
#### Legacy browsers

@@ -48,0 +37,0 @@

@@ -64,3 +64,3 @@ import React, { Component } from 'react';

if (Number.isNaN(valueFromDate.getTime())) {
if (isNaN(valueFromDate.getTime())) {
throw new Error(`Invalid date: ${value}`);

@@ -83,3 +83,3 @@ }

if (Number.isNaN(valueToDate.getTime())) {
if (isNaN(valueToDate.getTime())) {
throw new Error(`Invalid date: ${value}`);

@@ -86,0 +86,0 @@ }

@@ -14,3 +14,3 @@ /* Simple getters - getting a property of a given point in time */

if (typeof date === 'string' && !Number.isNaN(year)) {
if (typeof date === 'string' && !isNaN(year)) {
return year;

@@ -490,3 +490,3 @@ }

if (Number.isNaN(date.getTime())) {
if (isNaN(date.getTime())) {
throw new Error(`Invalid date: ${value}`);

@@ -511,3 +511,3 @@ }

if (Number.isNaN(date.getTime())) {
if (isNaN(date.getTime())) {
throw new Error(`Invalid date: ${value}`);

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