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
134
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.3.9 to 2.3.10

4

dist/cjs/Date.d.ts

@@ -22,3 +22,5 @@ import { DateSpan } from "./DateSpan";

function lastOfWeek(date: Date): Date;
function getYear(date: Date): number;
function getYear(date: Date, options?: {
digits?: 2 | 4;
}): number;
function getMonth(date: Date): number;

@@ -25,0 +27,0 @@ function getWeek(date: Date): number;

@@ -138,4 +138,4 @@ "use strict";

Date.lastOfWeek = lastOfWeek;
function getYear(date) {
return Number.parseInt(date.substring(0, 4));
function getYear(date, options) {
return (options === null || options === void 0 ? void 0 : options.digits) != 2 ? Number.parseInt(date.substring(0, 4)) : +getYear(date).toString().slice(-2);
}

@@ -142,0 +142,0 @@ Date.getYear = getYear;

@@ -50,3 +50,5 @@ import { Date } from "./Date";

function getTime(time: DateTime): string;
function getYear(time: DateTime): number;
function getYear(time: DateTime, options?: {
digits?: 2 | 4;
}): number;
function getMonth(time: DateTime): number;

@@ -53,0 +55,0 @@ function getDay(time: DateTime): number;

@@ -376,4 +376,4 @@ "use strict";

DateTime.getTime = getTime;
function getYear(time) {
return Number.parseInt(time.substring(0, 4));
function getYear(time, options) {
return (options === null || options === void 0 ? void 0 : options.digits) != 2 ? Number.parseInt(time.substring(0, 4)) : +getYear(time).toString().slice(-2);
}

@@ -380,0 +380,0 @@ DateTime.getYear = getYear;

@@ -22,3 +22,5 @@ import { DateSpan } from "./DateSpan";

function lastOfWeek(date: Date): Date;
function getYear(date: Date): number;
function getYear(date: Date, options?: {
digits?: 2 | 4;
}): number;
function getMonth(date: Date): number;

@@ -25,0 +27,0 @@ function getWeek(date: Date): number;

@@ -135,4 +135,4 @@ export var Date;

Date.lastOfWeek = lastOfWeek;
function getYear(date) {
return Number.parseInt(date.substring(0, 4));
function getYear(date, options) {
return options?.digits != 2 ? Number.parseInt(date.substring(0, 4)) : +getYear(date).toString().slice(-2);
}

@@ -139,0 +139,0 @@ Date.getYear = getYear;

@@ -50,3 +50,5 @@ import { Date } from "./Date";

function getTime(time: DateTime): string;
function getYear(time: DateTime): number;
function getYear(time: DateTime, options?: {
digits?: 2 | 4;
}): number;
function getMonth(time: DateTime): number;

@@ -53,0 +55,0 @@ function getDay(time: DateTime): number;

@@ -373,4 +373,4 @@ import { Date } from "./Date";

DateTime.getTime = getTime;
function getYear(time) {
return Number.parseInt(time.substring(0, 4));
function getYear(time, options) {
return options?.digits != 2 ? Number.parseInt(time.substring(0, 4)) : +getYear(time).toString().slice(-2);
}

@@ -377,0 +377,0 @@ DateTime.getYear = getYear;

{
"name": "isoly",
"version": "2.3.9",
"version": "2.3.10",
"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

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