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

@date-io/date-fns

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@date-io/date-fns - npm Package Compare versions

Comparing version 2.10.0 to 2.10.2

4

build/date-fns-utils.d.ts

@@ -15,3 +15,7 @@ import { IUtils, DateIOFormats, Unit } from "@date-io/core/IUtils";

getCurrentLocaleCode(): string;
addSeconds(value: Date, count: number): Date;
addMinutes(value: Date, count: number): Date;
addHours(value: Date, count: number): Date;
addDays(value: Date, count: number): Date;
addWeeks(value: Date, count: number): Date;
addMonths(value: Date, count: number): Date;

@@ -18,0 +22,0 @@ isValid(value: any): boolean;

import addDays from 'date-fns/addDays';
import addSeconds from 'date-fns/addSeconds';
import addMinutes from 'date-fns/addMinutes';
import addHours from 'date-fns/addHours';
import addWeeks from 'date-fns/addWeeks';
import addMonths from 'date-fns/addMonths';

@@ -112,5 +116,17 @@ import addYears from 'date-fns/addYears';

};
DateFnsUtils.prototype.addSeconds = function (value, count) {
return addSeconds(value, count);
};
DateFnsUtils.prototype.addMinutes = function (value, count) {
return addMinutes(value, count);
};
DateFnsUtils.prototype.addHours = function (value, count) {
return addHours(value, count);
};
DateFnsUtils.prototype.addDays = function (value, count) {
return addDays(value, count);
};
DateFnsUtils.prototype.addWeeks = function (value, count) {
return addWeeks(value, count);
};
DateFnsUtils.prototype.addMonths = function (value, count) {

@@ -117,0 +133,0 @@ return addMonths(value, count);

'use strict';
var addDays = require('date-fns/addDays');
var addSeconds = require('date-fns/addSeconds');
var addMinutes = require('date-fns/addMinutes');
var addHours = require('date-fns/addHours');
var addWeeks = require('date-fns/addWeeks');
var addMonths = require('date-fns/addMonths');

@@ -50,2 +54,6 @@ var addYears = require('date-fns/addYears');

var addDays__default = /*#__PURE__*/_interopDefaultLegacy(addDays);
var addSeconds__default = /*#__PURE__*/_interopDefaultLegacy(addSeconds);
var addMinutes__default = /*#__PURE__*/_interopDefaultLegacy(addMinutes);
var addHours__default = /*#__PURE__*/_interopDefaultLegacy(addHours);
var addWeeks__default = /*#__PURE__*/_interopDefaultLegacy(addWeeks);
var addMonths__default = /*#__PURE__*/_interopDefaultLegacy(addMonths);

@@ -161,5 +169,17 @@ var addYears__default = /*#__PURE__*/_interopDefaultLegacy(addYears);

};
DateFnsUtils.prototype.addSeconds = function (value, count) {
return addSeconds__default['default'](value, count);
};
DateFnsUtils.prototype.addMinutes = function (value, count) {
return addMinutes__default['default'](value, count);
};
DateFnsUtils.prototype.addHours = function (value, count) {
return addHours__default['default'](value, count);
};
DateFnsUtils.prototype.addDays = function (value, count) {
return addDays__default['default'](value, count);
};
DateFnsUtils.prototype.addWeeks = function (value, count) {
return addWeeks__default['default'](value, count);
};
DateFnsUtils.prototype.addMonths = function (value, count) {

@@ -166,0 +186,0 @@ return addMonths__default['default'](value, count);

6

package.json
{
"name": "@date-io/date-fns",
"version": "2.10.0",
"version": "2.10.2",
"description": "Abstraction over common javascript date management libraries",

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

"dependencies": {
"@date-io/core": "^2.10.0"
"@date-io/core": "^2.10.2"
},

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

},
"gitHead": "3b596e88e257510621c56883233ebc7676161e9f"
"gitHead": "3f828a7b5dfea73f3ab990954cb0f03c9c56dfc4"
}
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