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

date-holidays

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-holidays - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

3

CHANGELOG.md
# CHANGELOG
v1.1.1
- Adding ES Andalucía, Andalucía
v1.1.0

@@ -4,0 +7,0 @@ - fix DK: Danish lang code

12

package.json
{
"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

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