date-holidays
Advanced tools
Comparing version 1.1.0 to 1.1.1
# CHANGELOG | ||
v1.1.1 | ||
- Adding ES Andalucía, Andalucía | ||
v1.1.0 | ||
@@ -4,0 +7,0 @@ - fix DK: Danish lang code |
{ | ||
"name": "date-holidays", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "worldwide holidays", | ||
@@ -20,3 +20,4 @@ "keywords": [ | ||
"James Dixon <jim.w.dixon@gmail.com>", | ||
"Lukas Eipert <git@leipert.io>" | ||
"Lukas Eipert <git@leipert.io>", | ||
"David Álvarez Navarro <david16an@gmail.com>" | ||
], | ||
@@ -61,2 +62,3 @@ "main": "lib", | ||
"astronomia": "^1.3.5", | ||
"babelify": "^8.0.0", | ||
"caldate": "^1.0.0", | ||
@@ -76,7 +78,5 @@ "date-chinese": "^1.0.2", | ||
"babel-preset-es2015": "^6.22.0", | ||
"babel-preset-stage-2": "^6.22.0", | ||
"babel-register": "^6.23.0", | ||
"babelify": "^7.3.0", | ||
"core-js": "^2.5.0", | ||
"eslint": "^3.19.0", | ||
"eslint": "^4.10.0", | ||
"eslint-config-standard": "^10.2.1", | ||
@@ -89,3 +89,3 @@ "eslint-plugin-import": "^2.7.0", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^3.5.0", | ||
"mocha": "^4.0.1", | ||
"rimraf": "^2.5.4", | ||
@@ -92,0 +92,0 @@ "serialize-to-js": "^1.0.0", |
@@ -204,3 +204,5 @@ # date-holidays | ||
├── ES: España | ||
│ └── MD: Comunidad de Madrid | ||
│ ├── MD: Comunidad de Madrid | ||
│ ├── AN: Andalucía | ||
│ └── AR: Aragón | ||
├── ET: ኢትዮጵያ | ||
@@ -207,0 +209,0 @@ ├── FI: Suomi |
@@ -33,11 +33,11 @@ #!/usr/bin/env node | ||
list = list | ||
.map(function (file) { | ||
if (REGEX.test(file)) { | ||
return file.replace(REGEX, '$1') | ||
} | ||
}) | ||
.filter(function (file) { | ||
return file | ||
}) | ||
.sort() | ||
.map(function (file) { | ||
if (REGEX.test(file)) { | ||
return file.replace(REGEX, '$1') | ||
} | ||
}) | ||
.filter(function (file) { | ||
return file | ||
}) | ||
.sort() | ||
this.list = list | ||
@@ -44,0 +44,0 @@ return this |
@@ -34,5 +34,5 @@ 'use strict' | ||
calEvent = new CalEventFactory(rule) | ||
.inYear(year - 1) // run over neighboring dates to catch overlaps | ||
.inYear(year) | ||
.inYear(year + 1) | ||
.inYear(year - 1) // run over neighboring dates to catch overlaps | ||
.inYear(year) | ||
.inYear(year + 1) | ||
postProc.push(calEvent) | ||
@@ -39,0 +39,0 @@ ruleFn = new Rule(calEvent) |
@@ -51,4 +51,4 @@ 'use strict' | ||
date = moment(str).utcOffset(this._timezone) | ||
} else { // for 'Asia/Shanghai' formats | ||
date = moment(str).tz(this._timezone) // move to timezone | ||
} else { // for 'Asia/Shanghai' formats | ||
date = moment(str).tz(this._timezone) // move to timezone | ||
} | ||
@@ -55,0 +55,0 @@ |
@@ -188,18 +188,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 | ||
.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 | ||
}) | ||
return a | ||
}) | ||
.filter(function (a) { | ||
if (!a.filter) return a | ||
}) | ||
@@ -334,12 +334,12 @@ return arr | ||
this.__languages = [].concat( | ||
language, | ||
'en', | ||
(this.__conf ? this.__data.getLanguages() : []) | ||
).filter(function (l) { // filter out duplicates | ||
if (!l || tmp[l]) { | ||
return false | ||
} | ||
tmp[l] = 1 | ||
return true | ||
}) | ||
language, | ||
'en', | ||
(this.__conf ? this.__data.getLanguages() : []) | ||
).filter(function (l) { // filter out duplicates | ||
if (!l || tmp[l]) { | ||
return false | ||
} | ||
tmp[l] = 1 | ||
return true | ||
}) | ||
}, | ||
@@ -346,0 +346,0 @@ |
@@ -12,7 +12,7 @@ 'use strict' | ||
'sunday|monday|tuesday|wednesday|thursday|friday|saturday' | ||
.split('|') | ||
.forEach((name, idx) => { | ||
o[name] = idx | ||
o[idx] = name | ||
}) | ||
.split('|') | ||
.forEach((name, idx) => { | ||
o[name] = idx | ||
o[idx] = name | ||
}) | ||
return o | ||
@@ -19,0 +19,0 @@ })() |
@@ -70,39 +70,39 @@ /* eslint | ||
raw._days = replace(raw._days) | ||
(/_weekdays/, raw._weekdays) | ||
() | ||
(/_weekdays/, raw._weekdays) | ||
() | ||
raw.julian = replace(raw.julian, '') | ||
(/date/, raw.date) | ||
() | ||
(/date/, raw.date) | ||
() | ||
raw.easter = replace(raw.easter, '') | ||
(/_count_days/, raw._count_days) | ||
() | ||
(/_count_days/, raw._count_days) | ||
() | ||
raw.equinox = replace(raw.equinox, '') | ||
(/_count_days/g, raw._count_days) | ||
(/_direction/g, raw._direction) | ||
(/_timezone/g, raw._timezone) | ||
() | ||
(/_count_days/g, raw._count_days) | ||
(/_direction/g, raw._direction) | ||
(/_timezone/g, raw._timezone) | ||
() | ||
raw.hebrew = replace(raw.hebrew, '') | ||
(/_hebrewMonths/, raw._hebrewMonths) | ||
() | ||
(/_hebrewMonths/, raw._hebrewMonths) | ||
() | ||
raw.islamic = replace(raw.islamic, '') | ||
(/_islamicMonths/, raw._islamicMonths) | ||
() | ||
(/_islamicMonths/, raw._islamicMonths) | ||
() | ||
raw.dateMonth = replace(raw.dateMonth) | ||
(/_months/, raw._months) | ||
() | ||
(/_months/, raw._months) | ||
() | ||
raw.rule_date_if_then = replace(raw.rule_date_if_then, '') | ||
(/_direction/g, raw._direction) | ||
(/_weekdays/g, raw._weekdays) | ||
(/_days/g, raw._days) | ||
() | ||
(/_direction/g, raw._direction) | ||
(/_weekdays/g, raw._weekdays) | ||
(/_days/g, raw._days) | ||
() | ||
raw.rule_day_dir_date = replace(raw.rule_day_dir_date, '') | ||
(/_counts/, raw._counts) | ||
(/_days/g, raw._days) | ||
(/_direction/g, raw._direction) | ||
() | ||
(/_counts/, raw._counts) | ||
(/_days/g, raw._days) | ||
(/_direction/g, raw._direction) | ||
() | ||
raw.rule_type_if_then = replace(raw.rule_type_if_then, '') | ||
(/_direction/g, raw._direction) | ||
(/_days/g, raw._days) | ||
() | ||
(/_direction/g, raw._direction) | ||
(/_days/g, raw._days) | ||
() | ||
@@ -109,0 +109,0 @@ var i = 1 |
Sorry, the diff of this file is not supported yet
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
16
17509
592
927393
12
303
+ Addedbabelify@^8.0.0
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/compat-data@7.26.2(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/generator@7.26.2(transitive)
+ Added@babel/helper-compilation-targets@7.25.9(transitive)
+ Added@babel/helper-module-imports@7.25.9(transitive)
+ Added@babel/helper-module-transforms@7.26.0(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/helper-validator-option@7.25.9(transitive)
+ Added@babel/helpers@7.26.0(transitive)
+ Added@babel/parser@7.26.2(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.25.9(transitive)
+ Added@babel/types@7.26.0(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedbabel-core@7.0.0-bridge.0(transitive)
+ Addedbabelify@8.0.0(transitive)
+ Addedbrowserslist@4.24.2(transitive)
+ Addedcaniuse-lite@1.0.30001679(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedelectron-to-chromium@1.5.55(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@3.0.2(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-releases@2.0.18(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedupdate-browserslist-db@1.1.1(transitive)
+ Addedyallist@3.1.1(transitive)