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.11.0 to 2.13.1

2

build/dayjs-utils.d.ts

@@ -27,3 +27,3 @@ import defaultDayjs from "dayjs";

isValid: (value: any) => boolean;
isNull: (date: Dayjs) => boolean;
isNull: (date: Dayjs | null) => boolean;
getDiff: (date: TDate, comparing: TDate, units?: Unit) => number;

@@ -30,0 +30,0 @@ isAfter: (date: TDate, value: TDate) => boolean;

@@ -297,2 +297,2 @@ import defaultDayjs from 'dayjs';

export default DayjsUtils;
export { DayjsUtils as default };

@@ -15,5 +15,5 @@ 'use strict';

defaultDayjs__default['default'].extend(customParseFormatPlugin__default['default']);
defaultDayjs__default['default'].extend(localizedFormatPlugin__default['default']);
defaultDayjs__default['default'].extend(isBetweenPlugin__default['default']);
defaultDayjs__default["default"].extend(customParseFormatPlugin__default["default"]);
defaultDayjs__default["default"].extend(localizedFormatPlugin__default["default"]);
defaultDayjs__default["default"].extend(isBetweenPlugin__default["default"]);
var withLocale = function (dayjs, locale) { return (!locale ? dayjs : function () {

@@ -299,3 +299,3 @@ var args = [];

};
this.rawDayJsInstance = instance || defaultDayjs__default['default'];
this.rawDayJsInstance = instance || defaultDayjs__default["default"];
this.dayjs = withLocale(this.rawDayJsInstance, locale);

@@ -302,0 +302,0 @@ this.locale = locale;

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

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

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

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

"license": "MIT",
"gitHead": "383185d28e3e2636b2796bb198de50ea8891a2b9"
"gitHead": "687eba751bd706e7d704a39a7caa3e0afbfa40aa"
}

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

public isNull = (date: Dayjs) => {
public isNull = (date: Dayjs | null) => {
return date === null;

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