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

moment-feiertage

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment-feiertage - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

18

moment-feiertage.js

@@ -10,5 +10,5 @@ (function (root, factory) {

}(this, function (moment) {
var hasModule;
'use strict';
hasModule = (typeof module !== "undefined" && module !== null) && (module.exports != null);
var hasModule = (typeof module !== "undefined" && module !== null) && (module.exports != null);

@@ -43,3 +43,3 @@ if (typeof moment === 'undefined') {

// loop tested states and validate holiday
for (i = 0; i < testStates.length; i++) {
for (var i = 0; i < testStates.length; i++) {
var holiday = isHoliday106(this, testStates[i]);

@@ -61,3 +61,3 @@ if (holiday) {

isHoliday106 = function (momentObj, state) {
var isHoliday106 = function (momentObj, state) {
// EXCEPTION: 2017 Reformationstag is holiday in all states

@@ -179,3 +179,3 @@ if (momentObj.isSame(moment('2017-10-31'), 'day')) {

calculateEasterDate = function (Y) {
var calculateEasterDate = function (Y) {
var C = Math.floor(Y / 100);

@@ -195,6 +195,6 @@ var N = Y - 19 * Math.floor(Y / 19);

}
padout = function (number) {
var padout = function (number) {
return (number < 10) ? '0' + number : number;
}
calculateBandBDate = function (Y) {
var calculateBandBDate = function (Y) {
moment(Y + '-11-23') //must be before 23. nov

@@ -208,6 +208,6 @@ for (var i = 1; i < 8; i++) {

}
prepareArray = function (array) {
var prepareArray = function (array) {
// sort out false values
var preparedArray = [];
for (i = 0; i < array.length; i++) {
for (var i = 0; i < array.length; i++) {
if (array[i] != null && array[i] !== '' && array[i].length === 2) {

@@ -214,0 +214,0 @@ preparedArray.push(array[i]);

{
"name": "moment-feiertage",
"version": "1.1.3",
"version": "1.1.4",
"description": "Moment.js Plugin for german holidays; check if a given Date is a german holiday",

@@ -5,0 +5,0 @@ "main": "moment-feiertage.js",

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