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

@date-io/dayjs

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/dayjs - npm Package Compare versions

Comparing version 2.10.11 to 2.11.0

4

build/dayjs-utils.d.ts

@@ -21,3 +21,5 @@ import defaultDayjs from "dayjs";

getFormatHelperText: (format: string) => string;
parse: (value: any, format: any) => TDate;
parseISO: (isoString: string) => TDate;
toISO: (value: Dayjs) => string;
parse: (value: any, format: string) => TDate;
date: (value?: any) => TDate;

@@ -24,0 +26,0 @@ toJsDate: (value: Dayjs) => Date;

@@ -76,2 +76,8 @@ import defaultDayjs from 'dayjs';

};
this.parseISO = function (isoString) {
return _this.dayjs(isoString);
};
this.toISO = function (value) {
return value.toISOString();
};
this.parse = function (value, format) {

@@ -78,0 +84,0 @@ if (value === "") {

@@ -85,2 +85,8 @@ 'use strict';

};
this.parseISO = function (isoString) {
return _this.dayjs(isoString);
};
this.toISO = function (value) {
return value.toISOString();
};
this.parse = function (value, format) {

@@ -87,0 +93,0 @@ if (value === "") {

{
"name": "@date-io/dayjs",
"version": "2.10.11",
"version": "2.11.0",
"description": "Abstraction over common javascript date management libraries",

@@ -17,3 +17,3 @@ "main": "build/index.js",

"dependencies": {
"@date-io/core": "^2.10.11"
"@date-io/core": "^2.11.0"
},

@@ -50,3 +50,3 @@ "devDependencies": {

"license": "MIT",
"gitHead": "8e4af1bfc24249273484070d5dac479258ea2416"
"gitHead": "383185d28e3e2636b2796bb198de50ea8891a2b9"
}

@@ -100,3 +100,11 @@ import defaultDayjs, { QUnitType } from "dayjs";

public parse = (value: any, format: any) => {
public parseISO = (isoString: string) => {
return this.dayjs(isoString);
};
public toISO = (value: Dayjs) => {
return value.toISOString();
};
public parse = (value: any, format: string) => {
if (value === "") {

@@ -103,0 +111,0 @@ return null;

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