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

moment-feiertage

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment-feiertage - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

6

build/index.js

@@ -51,3 +51,4 @@ "use strict";

var holidays = allHolidays[_moment.year().toString()];
for (var h in holidays) {
for (var _i = 0, _a = Object.keys(holidays); _i < _a.length; _i++) {
var h = _a[_i];
if (_moment.isSame(holidays[h].date, 'day')) {

@@ -81,4 +82,3 @@ if (holidays[h].state.length === 0) {

else {
var validStateCodes = validateStateCodes(_states);
result.testedStates = validStateCodes;
result.testedStates = validateStateCodes(_states);
}

@@ -85,0 +85,0 @@ for (var _i = 0, _a = result.testedStates; _i < _a.length; _i++) {

{
"name": "moment-feiertage",
"version": "2.0.3",
"version": "2.0.4",
"description": "Moment.js Plugin for german holidays; check if a given Date is a german holiday",

@@ -47,9 +47,9 @@ "main": "build/index.js",

"devDependencies": {
"@typescript-eslint/eslint-plugin": "^3.7.0",
"@typescript-eslint/parser": "^3.7.0",
"eslint": "^7.5.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"jest": "^26.1.0",
"moment": "^2.27.0",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"eslint": "^7.15.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.3.0",
"jest": "^26.6.3",
"moment": "^2.29.1",
"prettier": "2.0.5",

@@ -56,0 +56,0 @@ "typescript": "^3.9.7"

@@ -6,3 +6,3 @@ # moment-feiertage

1. Add moment-feiertage to your package.json by running `npm install moment-feiertage --save`. Moment.js is a peer dependency, so don't forget to install it, if you haven't already.
2. Import `moment` form moment-feiertage like you would from the original Moment.js package. moment-feiertage exports the original moment object with extended functionality.
2. Import `moment` from moment-feiertage like you would from the original Moment.js package. moment-feiertage exports the original moment object with extended functionality.
```javascript

@@ -145,2 +145,2 @@ // Typescript

4. `npm run build`: linting, formating, building, testing
5. PR
5. PR
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