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

date-holidays-parser

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

date-holidays-parser - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

6

CHANGELOG.md
# CHANGELOG
v1.2.3
- fix: holidays types not correctly filtered (date-holidays#56)
v1.2.2
- refactor: keep bundle sizes small
v1.2.1

@@ -4,0 +10,0 @@ - remove es5 `module`, `jsnext:main` from package.json to ease integration with

18

lib/Holidays.js
/**
* @copyright 2016 (c) commenthol
* @copyright 2016- (c) commenthol
* @license ISC

@@ -452,13 +452,9 @@ */

_setTypes: function _setTypes(t) {
t = t || [];
var types = {};
TYPES.map(function (type) {
for (var i in t) {
if (type !== t[i]) {
return;
}
t = t || TYPES;
this.__types = TYPES.reduce(function (types, type) {
if (t.indexOf(type) !== -1) {
types[type] = 1;
}
types[type] = 1;
});
this.__types = types;
return types;
}, {});
},

@@ -465,0 +461,0 @@

{
"name": "date-holidays-parser",
"version": "1.2.2",
"version": "1.2.3",
"description": "parser for worldwide holidays",

@@ -14,2 +14,6 @@ "keywords": [

},
"repository": {
"type": "git",
"url": "git+https://github.com/commenthol/date-holidays-parser.git"
},
"license": "ISC",

@@ -24,6 +28,2 @@ "author": "commenthol <commenthol@gmail.com>",

},
"repository": {
"type": "git",
"url": "git+https://github.com/commenthol/date-holidays-parser.git"
},
"scripts": {

@@ -37,3 +37,3 @@ "all": "npm run clean && npm run lint && npm run build && npm test",

"doc": "jsdox -o docs src/Holidays.js",
"lint": "eslint '**/*.js'",
"lint": "eslint --fix '**/*.js'",
"prepublishOnly": "npm run all",

@@ -40,0 +40,0 @@ "test": "mocha",

/**
* @copyright 2016 (c) commenthol
* @copyright 2016- (c) commenthol
* @license ISC

@@ -408,13 +408,9 @@ */

_setTypes (t) {
t = t || []
const types = {}
TYPES.map(function (type) {
for (const i in t) {
if (type !== t[i]) {
return
}
t = t || TYPES
this.__types = TYPES.reduce((types, type) => {
if (t.indexOf(type) !== -1) {
types[type] = 1
}
types[type] = 1
})
this.__types = types
return types
}, {})
},

@@ -421,0 +417,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