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

getfeiertage.js

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getfeiertage.js - npm Package Compare versions

Comparing version 1.2.7 to 2.0.5

.babelrc

2

index.js

@@ -1,3 +0,3 @@

const Feiertage = require('./src/feiertage.js');
import Feiertage from './src/feiertage';
exports.Feiertage = Feiertage;

@@ -20,3 +20,3 @@ {

"name": "getfeiertage.js",
"version": "1.2.7",
"version": "2.0.5",
"main": "index.js",

@@ -31,2 +31,7 @@ "repository": {

"homepage": "https://github.com/MariusLang/getfeiertage.js#readme",
"jest": {
"transform": {
"\\.[jt]sx?$": "babel-jest"
}
},
"scripts": {

@@ -37,2 +42,4 @@ "test": "jest",

"devDependencies": {
"@babel/preset-env": "^7.14.7",
"babel-jest": "^27.0.6",
"eslint": "^7.19.0",

@@ -39,0 +46,0 @@ "eslint-config-airbnb-base": "^14.2.1",

@@ -32,125 +32,126 @@ # getfeiertage.js

const format = Feiertage.formatDateObj; // read table above
// const format = Feiertage.formatDE;
// get New Year
var neujahr = Feiertage.getNeujahr(format, year);
let neujahr = Feiertage.getNeujahr(format, year);
// get Berchtoldstag
var berchtoldstag = Feiertage.getBerchtoldstag(format, year);
let berchtoldstag = Feiertage.getBerchtoldstag(format, year);
// get Epiphany
var epiphany = Feiertage.getHeiligeDreiKoenige(format, year);
let epiphany = Feiertage.getHeiligeDreiKoenige(format, year);
// get Weiberfastnacht
var weiberfastnacht = Feiertage.getWeiberfastnacht(format, year);
let weiberfastnacht = Feiertage.getWeiberfastnacht(format, year);
// get Valentinstag
var valentinstag = Feiertage.getValentinstag(format, year);
let valentinstag = Feiertage.getValentinstag(format, year);
// get Rosenmontag
var valentinstag = Feiertage.getValentinstag(format, year);
let valentinstag = Feiertage.getValentinstag(format, year);
// get Fastnachtsdienstag
var fastnachtsdienstag = Feiertage.getFastnachtsdienstag(format, year);
let fastnachtsdienstag = Feiertage.getFastnachtsdienstag(format, year);
// get Aschermittwoch
var aschermittwoch = Feiertage.getAschermittwoch(fomrat, year);
let aschermittwoch = Feiertage.getAschermittwoch(fomrat, year);
// get St. Josef
var stJosef = Feiertage.getStJosef(format, year);
let stJosef = Feiertage.getStJosef(format, year);
// get Gründonnerstag
var gruendonnerstag = Feiertage.getGruendonnerstag(format, year);
let gruendonnerstag = Feiertage.getGruendonnerstag(format, year);
// get Karfreitag
var karfreitag = Feiertag.getKarfreitag(format, year);
let karfreitag = Feiertag.getKarfreitag(format, year);
// get Easter Sunday
var easterSunday = Feiertage.getOstersonntag(format, year);
let easterSunday = Feiertage.getOstersonntag(format, year);
// get Easter Monday
var easterMonday = Feiertage.getOstermontag(format, year);
let easterMonday = Feiertage.getOstermontag(format, year);
// get First May
var firstMay = Feiertage.getFirstMay(format, year);
let firstMay = Feiertage.getFirstMay(format, year);
// get St. Florian
var stFlorian = Feiertage.getStFlorian(format, year);
let stFlorian = Feiertage.getStFlorian(format, year);
// get Christi Himmelfahrt
var christiHimmelfahrt = Feiertage.getChristiHimmelfahrt(format, year);
let christiHimmelfahrt = Feiertage.getChristiHimmelfahrt(format, year);
// get Pfingstsonntag
var pfingstsonntag = Feiertage.getPfingstsonntag(format, year);
let pfingstsonntag = Feiertage.getPfingstsonntag(format, year);
// get Pfingstmontag
var pfingstmontag = Feiertage.getPfingstmontag(format, year);
let pfingstmontag = Feiertage.getPfingstmontag(format, year);
// get Fronleichnam
var fronleichnam = Feiertage.getFronleichnam(format, year);
let fronleichnam = Feiertage.getFronleichnam(format, year);
// get Peter und Paul
var peterUndPaul = Feiertage.getPeterUndPaul(format, year);
let peterUndPaul = Feiertage.getPeterUndPaul(format, year);
// get Bundesfeier CH
var bundesfeier = Feiertage.getBundesfeierCH(fomrat, year);
let bundesfeier = Feiertage.getBundesfeierCH(fomrat, year);
// get Maria Himmelfahrt
var mariaHimmelfahrt = Feiertage.getMariaHimmelfahrt(format, year);
let mariaHimmelfahrt = Feiertage.getMariaHimmelfahrt(format, year);
// get St. Rupert
var stRupert = Feiertage.getStRupert(format, year);
let stRupert = Feiertage.getStRupert(format, year);
// get Tag der Deutschen Einheit
var tagDerDeutschenEinheit = Feiertage.getTagDerDeutschenEinheit(format, year);
let tagDerDeutschenEinheit = Feiertage.getTagDerDeutschenEinheit(format, year);
// get Tag der Volksabstimmung AT
var tagDerVolksabstimmung = Feiertage.getTagDerVolksabstimmung(format, year);
let tagDerVolksabstimmung = Feiertage.getTagDerVolksabstimmung(format, year);
// get Nationalfeiertag AT
var nationalfeiertag = Feiertage.getNationalfeiertagAT(format, year);
let nationalfeiertag = Feiertage.getNationalfeiertagAT(format, year);
// get Halloween
var halloween = Feiertage.getHalloween(format, year);
let halloween = Feiertage.getHalloween(format, year);
// get Allerheiligen
var allerheiligen = Feiertage.getAllerheiligen(format, year);
let allerheiligen = Feiertage.getAllerheiligen(format, year);
// get St. Martin
var stMartin = Feiertage.getStMartin(format, year);
let stMartin = Feiertage.getStMartin(format, year);
// get St. Leopold
var stLeopold = Feiertage.getStLeopold(format, year);
let stLeopold = Feiertage.getStLeopold(format, year);
// get Buß und Bettag
var bussUndBettag = Feiertage.getBussUndBettag(format, year);
let bussUndBettag = Feiertage.getBussUndBettag(format, year);
// get Santa Day
var santa = Feiertage.getNikolaus(format, year);
let santa = Feiertage.getNikolaus(format, year);
// get Mariä Empfängnis
var mariaeEmpfaengnis = Feiertage.getMariaeEmpfaengnis(format, year);
let mariaeEmpfaengnis = Feiertage.getMariaeEmpfaengnis(format, year);
// get 1. Advent
var advent1 = Feiertage.getAdvent1(format, year);
let advent1 = Feiertage.getAdvent1(format, year);
// get 2. Advent
var advent2 = Feiertage.getAdvent2(format, year);
let advent2 = Feiertage.getAdvent2(format, year);
// get 3. Advent
var advent3 = Feiertage.getAdvent3(format, year);
let advent3 = Feiertage.getAdvent3(format, year);
// get 4. Advent
var advent4 = Feiertage.getAdvent4(format, year);
let advent4 = Feiertage.getAdvent4(format, year);
// get Christmas Eve
var christmasEve = Feiertage.getHeiligabend(format, year);
let christmasEve = Feiertage.getHeiligabend(format, year);
// get First day of Christmas
var firstDayOfChristmas = Feiertage.getWeihnachtsfeiertag1(format, year);
let firstDayOfChristmas = Feiertage.getWeihnachtsfeiertag1(format, year);
// get Second day of Christmas
var secondDayOfChristmas = Feiertage.getWeihnachtsfeiertag2(format, year);
let secondDayOfChristmas = Feiertage.getWeihnachtsfeiertag2(format, year);
// get New Years Eve
var newYearsEve = Feiertage.getSilvester(format, year);
let newYearsEve = Feiertage.getSilvester(format, year);
```

@@ -0,1 +1,3 @@

import GenerateDate from './generate-dateObj';
const Advent = {};

@@ -6,3 +8,2 @@

// eslint-disable-next-line consistent-return
Advent.calcAdvent4 = (format, day, year) => {

@@ -15,10 +16,15 @@ const checkDate = new Date(`${year}-12-${day}`);

if (format === formatDE) {
return `${day}.${checkMonth}.${year}`;
return GenerateDate.generateDateStringDE(
year, checkMonth, day,
);
} if (format === formatDateObj) {
return `${year}-${checkMonth}-${day}`;
return GenerateDate.generateDateObject(
year, checkMonth, day,
);
}
} else {
} /* else {
return Advent.calcAdvent4(format, day - 1, year);
}
} */
return Advent.calcAdvent4(format, day - 1, year);
};
module.exports = Advent;

@@ -0,1 +1,3 @@

import GenerateDate from './generate-dateObj';
const Easter = {};

@@ -6,3 +8,2 @@

// eslint-disable-next-line consistent-return
Easter.calcEasterSunday = (format, year) => {

@@ -24,7 +25,14 @@ const a = year % 19; // currentYear mod 19

if (format === formatDE) {
return `${easterDay}.${easterMonth}.${year}`;
return GenerateDate.generateDateStringDE(
year, easterMonth, easterDay,
);
} if (format === formatDateObj) {
return `${year}-${easterMonth}-${easterDay}`;
return GenerateDate.generateDateObject(
year, easterMonth, easterDay,
);
}
return GenerateDate.generateDateObject(
year, easterMonth, easterDay,
);
};
module.exports = Easter;

@@ -0,1 +1,5 @@

import GenerateDate from './generate-dateObj';
import Easter from './easter';
import Advent from './advent';
/* eslint-disable consistent-return */

@@ -7,4 +11,4 @@ const Feiertage = {};

const Easter = require('./easter.js');
const Advent = require('./advent.js');
// const Easter = require('./easter.js');
// const Advent = require('./advent.js');

@@ -16,5 +20,5 @@ const formatDateObj = 'dateObj';

if (format === formatDE) {
return `1.1.${year}`;
return GenerateDate.generateDateStringDE(year, 1, 1);
} if (format === formatDateObj) {
return `${year}-1-1`;
return GenerateDate.generateDateObject(year, 1, 1);
}

@@ -25,5 +29,5 @@ };

if (format === formatDE) {
return `2.1.${year}`;
return GenerateDate.generateDateStringDE(year, 1, 2);
} if (format === formatDateObj) {
return `${year}-1-2`;
return GenerateDate.generateDateObject(year, 1, 2);
}

@@ -34,5 +38,5 @@ };

if (format === formatDE) {
return `6.1.${year}`;
return GenerateDate.generateDateStringDE(year, 1, 6);
} if (format === formatDateObj) {
return `${year}-1-6`;
return GenerateDate.generateDateObject(year, 1, 6);
}

@@ -46,5 +50,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -55,5 +63,5 @@ };

if (format === formatDE) {
return `14.2.${year}`;
return GenerateDate.generateDateStringDE(year, 2, 14);
} if (format === formatDateObj) {
return `${year}-2-14`;
return GenerateDate.generateDateObject(year, 2, 14);
}

@@ -67,5 +75,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -79,5 +91,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -91,5 +107,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -100,5 +120,5 @@ };

if (format === formatDE) {
return `19.3.${year}`;
return GenerateDate.generateDateStringDE(year, 3, 19);
} if (format === formatDateObj) {
return `${year}-3-19`;
return GenerateDate.generateDateObject(year, 3, 19);
}

@@ -112,5 +132,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -124,5 +148,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -138,5 +166,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -147,5 +179,5 @@ };

if (format === formatDE) {
return `1.5.${year}`;
return GenerateDate.generateDateStringDE(year, 5, 1);
} if (format === formatDateObj) {
return `${year}-5-1`;
return GenerateDate.generateDateObject(year, 5, 1);
}

@@ -156,5 +188,5 @@ };

if (format === formatDE) {
return `4.5.${year}`;
return GenerateDate.generateDateStringDE(year, 5, 4);
} if (format === formatDateObj) {
return `${year}-5-4`;
return GenerateDate.generateDateObject(year, 5, 4);
}

@@ -168,5 +200,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -180,5 +216,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -192,5 +232,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -204,5 +248,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -213,5 +261,5 @@ };

if (format === formatDE) {
return `29.7.${year}`;
return GenerateDate.generateDateStringDE(year, 7, 29);
} if (format === formatDateObj) {
return `${year}-7-29`;
return GenerateDate.generateDateObject(year, 7, 29);
}

@@ -222,5 +270,5 @@ };

if (format === formatDE) {
return `1.8.${year}`;
return GenerateDate.generateDateStringDE(year, 8, 1);
} if (format === formatDateObj) {
return `${year}-8-1`;
return GenerateDate.generateDateObject(year, 8, 1);
}

@@ -231,5 +279,5 @@ };

if (format === formatDE) {
return `15.8.${year}`;
return GenerateDate.generateDateStringDE(year, 8, 15);
} if (format === formatDateObj) {
return `${year}-8-15`;
return GenerateDate.generateDateObject(year, 8, 15);
}

@@ -240,5 +288,5 @@ };

if (format === formatDE) {
return `24.9.${year}`;
return GenerateDate.generateDateStringDE(year, 9, 24);
} if (format === formatDateObj) {
return `${year}-9-24`;
return GenerateDate.generateDateObject(year, 9, 24);
}

@@ -249,5 +297,5 @@ };

if (format === formatDE) {
return `3.10.${year}`;
return GenerateDate.generateDateStringDE(year, 10, 3);
} if (format === formatDateObj) {
return `${year}-10-3`;
return GenerateDate.generateDateObject(year, 10, 3);
}

@@ -258,5 +306,5 @@ };

if (format === formatDE) {
return `10.10.${year}`;
return GenerateDate.generateDateStringDE(year, 10, 10);
} if (format === formatDateObj) {
return `${year}-10-10`;
return GenerateDate.generateDateObject(year, 10, 10);
}

@@ -267,5 +315,5 @@ };

if (format === formatDE) {
return `26.10.${year}`;
return GenerateDate.generateDateStringDE(year, 10, 26);
} if (format === formatDateObj) {
return `${year}-10-26`;
return GenerateDate.generateDateObject(year, 10, 26);
}

@@ -276,5 +324,5 @@ };

if (format === formatDE) {
return `31.10.${year}`;
return GenerateDate.generateDateStringDE(year, 10, 31);
} if (format === formatDateObj) {
return `${year}-10-31`;
return GenerateDate.generateDateObject(year, 10, 31);
}

@@ -285,5 +333,5 @@ };

if (format === formatDE) {
return `1.11.${year}`;
return GenerateDate.generateDateStringDE(year, 11, 1);
} if (format === formatDateObj) {
return `${year}-11-1`;
return GenerateDate.generateDateObject(year, 11, 1);
}

@@ -294,5 +342,5 @@ };

if (format === formatDE) {
return `11.11.${year}`;
return GenerateDate.generateDateStringDE(year, 11, 11);
} if (format === formatDateObj) {
return `${year}-11-11`;
return GenerateDate.generateDateObject(year, 11, 11);
}

@@ -303,5 +351,5 @@ };

if (format === formatDE) {
return `15.11.${year}`;
return GenerateDate.generateDateStringDE(year, 11, 15);
} if (format === formatDateObj) {
return `${year}-11-15`;
return GenerateDate.generateDateObject(year, 11, 15);
}

@@ -315,5 +363,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -324,5 +376,5 @@ };

if (format === formatDE) {
return `6.12.${year}`;
return GenerateDate.generateDateStringDE(year, 12, 6);
} if (format === formatDateObj) {
return `${year}-12-6`;
return GenerateDate.generateDateObject(year, 12, 6);
}

@@ -333,5 +385,5 @@ };

if (format === formatDE) {
return `8.12.${year}`;
return GenerateDate.generateDateStringDE(year, 12, 8);
} if (format === formatDateObj) {
return `${year}-12-8`;
return GenerateDate.generateDateObject(year, 12, 8);
}

@@ -345,5 +397,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -357,5 +413,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -369,5 +429,9 @@ };

if (format === formatDE) {
return `${referenceDate.getDate()}.${referenceDate.getMonth() + 1}.${year}`;
return GenerateDate.generateDateStringDE(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
} if (format === formatDateObj) {
return `${year}-${referenceDate.getMonth() + 1}-${referenceDate.getDate()}`;
return GenerateDate.generateDateObject(
year, referenceDate.getMonth() + 1, referenceDate.getDate(),
);
}

@@ -378,7 +442,7 @@ };

Feiertage.getHeiligabend = (foramt, year) => {
if (foramt === formatDE) {
return `24.12.${year}`;
} if (foramt === formatDateObj) {
return `${year}-12-24`;
Feiertage.getHeiligabend = (format, year) => {
if (format === formatDE) {
return GenerateDate.generateDateStringDE(year, 12, 24);
} if (format === formatDateObj) {
return GenerateDate.generateDateObject(year, 12, 24);
}

@@ -389,5 +453,5 @@ };

if (format === formatDE) {
return `25.12.${year}`;
return GenerateDate.generateDateStringDE(year, 12, 25);
} if (format === formatDateObj) {
return `${year}-12-25`;
return GenerateDate.generateDateObject(year, 12, 25);
}

@@ -398,5 +462,5 @@ };

if (format === formatDE) {
return `26.12.${year}`;
return GenerateDate.generateDateStringDE(year, 12, 26);
} if (format === formatDateObj) {
return `${year}-12-26`;
return GenerateDate.generateDateObject(year, 12, 26);
}

@@ -407,5 +471,5 @@ };

if (format === formatDE) {
return `31.12.${year}`;
return GenerateDate.generateDateStringDE(year, 12, 31);
} if (format === formatDateObj) {
return `${year}-12-31`;
return GenerateDate.generateDateObject(year, 12, 31);
}

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