Socket
Socket
Sign inDemoInstall

@quartz/holidays

Package Overview
Dependencies
1
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

12

index.js

@@ -16,3 +16,3 @@ const { allForYear } = require( '@18f/us-federal-holidays' );

// Add Christmas Eve, New Year's Eve, and the day after Thanksgiving.
// Add the day after Thanksgiving.
const thanksgiving = fedHolidays.find( ( { name } ) => name.toLowerCase().includes( 'thanksgiving' ) );

@@ -29,12 +29,2 @@ const blackFriday = new Date( new Date( thanksgiving.date ).getTime() + 60 * 60 * 24 * 1000 );

},
{
name: 'Christmas Eve',
date: new Date( `${year}-12-24` ),
dateString: `${year}-12-24`,
},
{
name: 'New Year\'s Eve',
date: new Date( `${year}-12-31` ),
dateString: `${year}-12-31`,
},
].sort( ( a, b ) => a.date < b.date ? -1 : 1 );

@@ -41,0 +31,0 @@ }

2

package.json
{
"name": "@quartz/holidays",
"version": "1.0.0",
"version": "1.1.0",
"description": "Quartz holidays",

@@ -5,0 +5,0 @@ "main": "index.js",

# Quartz holidays
[![npm version](https://badge.fury.io/js/%40quartz%2Fholidays.png)](https://badge.fury.io/js/%40quartz%2Fholidays)
Determine if a day is a Quartz holiday.
```
```js
const { isHoliday } = require( '@quartz/holidays' );

@@ -22,3 +24,3 @@

```
```js
const { getHolidays } = require( '@quartz/holidays' );

@@ -25,0 +27,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc