date-holidays
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -165,2 +165,18 @@ /** | ||
}) | ||
.map(function (a, i) { | ||
var b = arr[i + 1] | ||
if (b && (a.name === b.name) && (+a.start) === (+b.start)) { | ||
for (var type of TYPES) { | ||
if (type === a.type || type === b.type) { | ||
a.filter = true | ||
b.type = type | ||
break | ||
} | ||
} | ||
} | ||
return a | ||
}) | ||
.filter(function (a) { | ||
if (!a.filter) return a | ||
}) | ||
@@ -167,0 +183,0 @@ return arr |
{ | ||
"name": "date-holidays", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "worldwide holidays", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -66,2 +66,4 @@ #!/usr/bin/env node | ||
obj.version = new Date().toISOString().replace(/^(.*)T.*$/, '$1') | ||
this.holidays = obj | ||
@@ -98,5 +100,5 @@ return this | ||
'', | ||
'-p|--pick comma seperated list of countries to pick', | ||
'-p|--pick comma separated list of countries to pick', | ||
' from holidays.json file', | ||
'-o|--omit comma seperated list of countries to omit', | ||
'-o|--omit comma separated list of countries to omit', | ||
' from holidays.json file', | ||
@@ -103,0 +105,0 @@ '', |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
594766
106
14221