New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

isoly

Package Overview
Dependencies
Maintainers
2
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isoly - npm Package Compare versions

Comparing version 2.0.12 to 2.0.13

11

dist/Date.d.ts

@@ -20,8 +20,11 @@ import { DateSpan } from "./DateSpan";

function lastOfWeek(date: Date): Date;
function getYear(time: Date): number;
function getMonth(time: Date): number;
function getDay(time: Date): number;
function getWeekDay(time: Date): number;
function getYear(date: Date): number;
function getMonth(date: Date): number;
function getDay(date: Date): number;
function getWeekDay(date: Date): number;
function nextWeekday(date: Date, days?: number | DateSpan, holidays?: Date[]): Date;
function span(date: Date, relative: Date): DateSpan;
const epochStart: "0000-01-01";
const epochEnd: "9999-12-31";
function invert(date: Date): Date;
}

@@ -118,16 +118,16 @@ export var Date;

Date.lastOfWeek = lastOfWeek;
function getYear(time) {
return Number.parseInt(time.substring(0, 4));
function getYear(date) {
return Number.parseInt(date.substring(0, 4));
}
Date.getYear = getYear;
function getMonth(time) {
return Number.parseInt(time.substring(5, 7));
function getMonth(date) {
return Number.parseInt(date.substring(5, 7));
}
Date.getMonth = getMonth;
function getDay(time) {
return Number.parseInt(time.substring(8, 10));
function getDay(date) {
return Number.parseInt(date.substring(8, 10));
}
Date.getDay = getDay;
function getWeekDay(time) {
return new globalThis.Date(time).getDay();
function getWeekDay(date) {
return new globalThis.Date(date).getDay();
}

@@ -154,3 +154,11 @@ Date.getWeekDay = getWeekDay;

Date.span = span;
Date.epochStart = "0000-01-01";
Date.epochEnd = "9999-12-31";
function invert(date) {
return `${(9999 - getYear(date)).toFixed(0).padStart(4, "0")}-${(13 - getMonth(date))
.toFixed(0)
.padStart(2, "0")}-${(32 - getDay(date)).toFixed(0).padStart(2, "0")}`;
}
Date.invert = invert;
})(Date || (Date = {}));
//# sourceMappingURL=Date.js.map

@@ -47,2 +47,5 @@ import { Date } from "./Date";

function span(time: DateTime, relative: DateTime): TimeSpan;
const epochStart: "0000-01-01T00:00:00.000Z";
const epochEnd: "9999-12-31T23:59:59.999Z";
function invert(time: DateTime): DateTime;
}

@@ -334,3 +334,13 @@ import { Date } from "./Date";

DateTime.span = span;
DateTime.epochStart = "0000-01-01T00:00:00.000Z";
DateTime.epochEnd = "9999-12-31T23:59:59.999Z";
function invert(time) {
return `${Date.invert(getDate(time))}T${(24 - getHour(time)).toFixed(0).padStart(2, "0")}:${(60 - getMinute(time))
.toFixed(0)
.padStart(2, "0")}:${(60 - getSecond(time)).toFixed(0).padStart(2, "0")}.${(999 - getMillisecond(time))
.toFixed(0)
.padStart(3, "0")}Z`;
}
DateTime.invert = invert;
})(DateTime || (DateTime = {}));
//# sourceMappingURL=DateTime.js.map
{
"name": "isoly",
"version": "2.0.12",
"version": "2.0.13",
"description": "Datatypes and functions specified by ISO-standards.",

@@ -5,0 +5,0 @@ "author": "Utily Contributors",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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