New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

us-holidays

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

us-holidays - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

1

index.d.ts

@@ -20,2 +20,3 @@ export declare class Holiday {

static all: Holiday[];
static getHoliday(name: string): Holiday | undefined;
}

@@ -16,2 +16,5 @@ "use strict";

}
Holidays.getHoliday = function (name) {
return Holidays.all.find(function (holiday) { return holiday.name === name; });
};
Holidays.newYearsDay = new Holiday("New Year's Day", function (year) { return new year_1.default(year).newYearsDay; });

@@ -18,0 +21,0 @@ Holidays.martinLutherKingJrDay = new Holiday('Martin Luther King Jr. Day', function (year) { return new year_1.default(year).martinLutherKingJrDay; });

2

package.json
{
"name": "us-holidays",
"version": "0.2.0",
"version": "0.2.1",
"license": "MIT",

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

@@ -50,2 +50,6 @@ import Year from './year';

];
public static getHoliday(name: string): Holiday | undefined {
return Holidays.all.find((holiday) => holiday.name === name);
}
}
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