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

@date-io/core

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@date-io/core - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

9

IUtils.d.ts

@@ -5,2 +5,5 @@ export interface IUtils<TDate> {

yearFormat: string;
yearMonthFormat: string;
dateTime12hFormat: string;

@@ -20,3 +23,3 @@ dateTime24hFormat: string;

isValid(value: any): boolean;
getDiff(value: TDate, comparing: TDate): number;
getDiff(value: TDate, comparing: TDate | string): number;
isEqual(value: any, comparing: any): boolean;

@@ -54,5 +57,8 @@ isSameDay(value: TDate, comparing: TDate): boolean;

getMonth(value: TDate): number;
setMonth(value: TDate, count: number): TDate;
getNextMonth(value: TDate): TDate;
getPreviousMonth(value: TDate): TDate;
getMonthArray(value: TDate): TDate[];
getYear(value: TDate): number;

@@ -72,2 +78,3 @@ setYear(value: TDate, count: number): TDate;

getDateTimePickerHeaderText(date: TDate): string;
getMonthText(date: TDate): string;
getDayText(date: TDate): string;

@@ -74,0 +81,0 @@ getHourText(date: TDate, ampm: boolean): string;

7

package.json
{
"name": "@date-io/core",
"version": "1.0.1",
"version": "1.0.2",
"description": "Abstraction over common javascript date management libraries",

@@ -33,5 +33,6 @@ "scripts": {

"date-fns": "^1.29.0",
"rollup": "^0.66.6"
"rollup": "^0.66.6",
"typescript": "^3.2.4"
},
"gitHead": "85bac554cf41ec50e135e2123f1d1c6691bcaa7f"
"gitHead": "db6ddb0b74fefc66aa681335c5880cdc656412b7"
}
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