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

@nesto-software/moment-holiday-germany

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nesto-software/moment-holiday-germany - npm Package Compare versions

Comparing version 0.0.2-alpha.409 to 0.0.2-alpha.420

dist.browser/locale/be.state-locale.d.ts

12

dist.browser/german-holiday-definition-factory.d.ts

@@ -8,8 +8,4 @@ import { AbstractHolidayDefinitionFactory, Country } from "@nesto-software/moment-holiday-core";

private static readonly COUNTRY_ABBREVIATION;
private static readonly COUNTRY_IDS;
/**
* Returns the country identifiers for the country which is used by this factory.
* It is the country whose holiday definitions are created by this factory.
*/
getCountryIdentifiers(): string[];
getCountryName(): string;
getCountryAbbreviation(): string;
createCountry(): Country;

@@ -19,3 +15,3 @@ }

export declare type GermanCountryAbbrevition = "DE";
export declare type GermanStateAbbreviation = "BW" | "BY";
export declare type GermanRegionAbbreviation = "AUG";
export declare type GermanStateAbbreviation = "BW" | "BY" | "ST" | "TH" | "NW" | "BE" | "HH" | "MV";
export declare type GermanRegionAbbreviation = "BY_AUG" | "BY_CATHOLIC";

@@ -18,5 +18,13 @@ "use strict";

var aug_region_locale_1 = require("./locale/aug.region-locale");
var be_state_locale_1 = require("./locale/be.state-locale");
var bw_state_locale_1 = require("./locale/bw.state-locale");
var by_catholic_region_locale_1 = require("./locale/by-catholic.region-locale");
var by_state_locale_1 = require("./locale/by.state-locale");
var country_locale_1 = require("./locale/country-locale");
var hh_state_locale_1 = require("./locale/hh.state-locale");
var mv_state_locale_1 = require("./locale/mv.state-locale");
var nw_state_locale_1 = require("./locale/nw.state-locale");
var st_state_locale_1 = require("./locale/st.state-locale");
var th_catholic_region_locale_1 = require("./locale/th-catholic.region-locale");
var th_state_locale_1 = require("./locale/th.state-locale");
/**

@@ -30,9 +38,8 @@ * Creates holiday definitions for germany.

}
/**
* Returns the country identifiers for the country which is used by this factory.
* It is the country whose holiday definitions are created by this factory.
*/
GermanHolidayDefinitionFactory.prototype.getCountryIdentifiers = function () {
return GermanHolidayDefinitionFactory.COUNTRY_IDS;
GermanHolidayDefinitionFactory.prototype.getCountryName = function () {
return GermanHolidayDefinitionFactory.COUNTRY_NAME;
};
GermanHolidayDefinitionFactory.prototype.getCountryAbbreviation = function () {
return GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION;
};
GermanHolidayDefinitionFactory.prototype.createCountry = function () {

@@ -42,4 +49,13 @@ return new moment_holiday_core_1.Country(GermanHolidayDefinitionFactory.COUNTRY_NAME, GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION, [

new moment_holiday_core_1.State("Bayern", "BY", new by_state_locale_1.BYStateLocale(), [
new moment_holiday_core_1.Region("Augsburg", "AUG", new aug_region_locale_1.AUGRegionLocale()),
new moment_holiday_core_1.Region("Augsburg", "BY_AUG", new aug_region_locale_1.AUGRegionLocale()),
new moment_holiday_core_1.Region("Überwiegend katholische Gemeinden", "BY_CATHOLIC", new by_catholic_region_locale_1.BYCatholicRegionLocale()),
]),
new moment_holiday_core_1.State("Sachsen-Anhalt", "ST", new st_state_locale_1.STStateLocale()),
new moment_holiday_core_1.State("Thüringen", "TH", new th_state_locale_1.THStateLocale(), [
new moment_holiday_core_1.Region("Überwiegend katholische Gemeinden", "TH_CATHOLIC", new th_catholic_region_locale_1.THCatholicRegionLocale()),
]),
new moment_holiday_core_1.State("Nordrhein-Westfalen", "NW", new nw_state_locale_1.NWStateLocale()),
new moment_holiday_core_1.State("Berlin", "BE", new be_state_locale_1.BEStateLocale()),
new moment_holiday_core_1.State("Hamburg", "HH", new hh_state_locale_1.HHStateLocale()),
new moment_holiday_core_1.State("Mecklenburg-Vorpommern", "MV", new mv_state_locale_1.MVStateLocale()),
], new country_locale_1.GermanCountryLocale());

@@ -49,4 +65,2 @@ };

GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION = "DE";
GermanHolidayDefinitionFactory.COUNTRY_IDS = [GermanHolidayDefinitionFactory.COUNTRY_NAME,
GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION];
return GermanHolidayDefinitionFactory;

@@ -53,0 +67,0 @@ }(moment_holiday_core_1.AbstractHolidayDefinitionFactory));

@@ -62,2 +62,10 @@ "use strict";

},
{
name: holiday_names_1.HolidayName.REFORMATIONSTAG,
date: moment_holiday_core_1.NonRecurringDate.forYears(31, 9, [2017]),
tags: new Map([
[moment_holiday_core_1.TypeTag.name, new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC)],
[moment_holiday_core_1.LegislationTag.name, new moment_holiday_core_1.LegislationTag(this.legislation)],
]),
},
]);

@@ -64,0 +72,0 @@ };

@@ -31,3 +31,3 @@ "use strict";

var _this = _super !== null && _super.apply(this, arguments) || this;
_this.legislation = new moment_holiday_core_1.Legislation("Feiertagsgesetz", url.parse("http://www.gesetze-bayern.de/Content/Document/BayFTG-1"), "Art. 1 I");
_this.legislation = new moment_holiday_core_1.Legislation("Feiertagsgesetz", url.parse("http://www.gesetze-bayern.de/Content/Document/BayFTG-1"), "Art. 1 I S.1");
return _this;

@@ -54,4 +54,4 @@ }

{
name: holiday_names_1.HolidayName.MARIA_HIMMELFAHRT,
date: new moment_holiday_core_1.RecurringDate(15, 7),
name: holiday_names_1.HolidayName.ALLERHEILIGEN,
date: new moment_holiday_core_1.RecurringDate(1, 10),
tags: new Map([

@@ -63,4 +63,4 @@ [moment_holiday_core_1.TypeTag.name, new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC)],

{
name: holiday_names_1.HolidayName.ALLERHEILIGEN,
date: new moment_holiday_core_1.RecurringDate(1, 10),
name: holiday_names_1.HolidayName.REFORMATIONSTAG,
date: moment_holiday_core_1.NonRecurringDate.forYears(31, 9, [2017]),
tags: new Map([

@@ -67,0 +67,0 @@ [moment_holiday_core_1.TypeTag.name, new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC)],

@@ -1,3 +0,2 @@

import { EasterDependentDate, Legislation, RecurringDate } from "@nesto-software/moment-holiday-core";
import { HolidayName } from "./holiday-names";
import { IHolidayDefinitionInternal, Legislation } from "@nesto-software/moment-holiday-core";
/**

@@ -8,10 +7,2 @@ * Returns holiday definitions which are usually common for all german states.

*/
export declare const COMMON_STATE_HOLIDAY_DEFINITIONS: (legislation: Legislation) => ({
name: HolidayName;
date: RecurringDate;
tags: Map<string, import("@nesto-software/moment-holiday-core/dist/tag/abstract-tag").AbstractTag>;
} | {
name: HolidayName;
date: EasterDependentDate;
tags: Map<string, import("@nesto-software/moment-holiday-core/dist/tag/abstract-tag").AbstractTag>;
})[];
export declare const COMMON_STATE_HOLIDAY_DEFINITIONS: (legislation: Legislation) => IHolidayDefinitionInternal[];

@@ -17,3 +17,4 @@ export declare enum HolidayName {

ALLERHEILIGEN = "Allerheiligen",
FRIEDENSFEST = "Friedensfest"
FRIEDENSFEST = "Friedensfest",
REFORMATIONSTAG = "Reformationstag"
}

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

HolidayName["FRIEDENSFEST"] = "Friedensfest";
HolidayName["REFORMATIONSTAG"] = "Reformationstag";
})(HolidayName = exports.HolidayName || (exports.HolidayName = {}));
//# sourceMappingURL=holiday-names.js.map

@@ -8,8 +8,4 @@ import { AbstractHolidayDefinitionFactory, Country } from "@nesto-software/moment-holiday-core";

private static readonly COUNTRY_ABBREVIATION;
private static readonly COUNTRY_IDS;
/**
* Returns the country identifiers for the country which is used by this factory.
* It is the country whose holiday definitions are created by this factory.
*/
getCountryIdentifiers(): string[];
getCountryName(): string;
getCountryAbbreviation(): string;
createCountry(): Country;

@@ -19,3 +15,3 @@ }

export declare type GermanCountryAbbrevition = "DE";
export declare type GermanStateAbbreviation = "BW" | "BY";
export declare type GermanRegionAbbreviation = "AUG";
export declare type GermanStateAbbreviation = "BW" | "BY" | "ST" | "TH" | "NW" | "BE" | "HH" | "MV";
export declare type GermanRegionAbbreviation = "BY_AUG" | "BY_CATHOLIC";

@@ -5,5 +5,13 @@ "use strict";

const aug_region_locale_1 = require("./locale/aug.region-locale");
const be_state_locale_1 = require("./locale/be.state-locale");
const bw_state_locale_1 = require("./locale/bw.state-locale");
const by_catholic_region_locale_1 = require("./locale/by-catholic.region-locale");
const by_state_locale_1 = require("./locale/by.state-locale");
const country_locale_1 = require("./locale/country-locale");
const hh_state_locale_1 = require("./locale/hh.state-locale");
const mv_state_locale_1 = require("./locale/mv.state-locale");
const nw_state_locale_1 = require("./locale/nw.state-locale");
const st_state_locale_1 = require("./locale/st.state-locale");
const th_catholic_region_locale_1 = require("./locale/th-catholic.region-locale");
const th_state_locale_1 = require("./locale/th.state-locale");
/**

@@ -13,9 +21,8 @@ * Creates holiday definitions for germany.

class GermanHolidayDefinitionFactory extends moment_holiday_core_1.AbstractHolidayDefinitionFactory {
/**
* Returns the country identifiers for the country which is used by this factory.
* It is the country whose holiday definitions are created by this factory.
*/
getCountryIdentifiers() {
return GermanHolidayDefinitionFactory.COUNTRY_IDS;
getCountryName() {
return GermanHolidayDefinitionFactory.COUNTRY_NAME;
}
getCountryAbbreviation() {
return GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION;
}
createCountry() {

@@ -25,4 +32,13 @@ return new moment_holiday_core_1.Country(GermanHolidayDefinitionFactory.COUNTRY_NAME, GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION, [

new moment_holiday_core_1.State("Bayern", "BY", new by_state_locale_1.BYStateLocale(), [
new moment_holiday_core_1.Region("Augsburg", "AUG", new aug_region_locale_1.AUGRegionLocale()),
new moment_holiday_core_1.Region("Augsburg", "BY_AUG", new aug_region_locale_1.AUGRegionLocale()),
new moment_holiday_core_1.Region("Überwiegend katholische Gemeinden", "BY_CATHOLIC", new by_catholic_region_locale_1.BYCatholicRegionLocale()),
]),
new moment_holiday_core_1.State("Sachsen-Anhalt", "ST", new st_state_locale_1.STStateLocale()),
new moment_holiday_core_1.State("Thüringen", "TH", new th_state_locale_1.THStateLocale(), [
new moment_holiday_core_1.Region("Überwiegend katholische Gemeinden", "TH_CATHOLIC", new th_catholic_region_locale_1.THCatholicRegionLocale()),
]),
new moment_holiday_core_1.State("Nordrhein-Westfalen", "NW", new nw_state_locale_1.NWStateLocale()),
new moment_holiday_core_1.State("Berlin", "BE", new be_state_locale_1.BEStateLocale()),
new moment_holiday_core_1.State("Hamburg", "HH", new hh_state_locale_1.HHStateLocale()),
new moment_holiday_core_1.State("Mecklenburg-Vorpommern", "MV", new mv_state_locale_1.MVStateLocale()),
], new country_locale_1.GermanCountryLocale());

@@ -33,5 +49,3 @@ }

GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION = "DE";
GermanHolidayDefinitionFactory.COUNTRY_IDS = [GermanHolidayDefinitionFactory.COUNTRY_NAME,
GermanHolidayDefinitionFactory.COUNTRY_ABBREVIATION];
exports.GermanHolidayDefinitionFactory = GermanHolidayDefinitionFactory;
//# sourceMappingURL=german-holiday-definition-factory.js.map

@@ -47,2 +47,10 @@ "use strict";

},
{
name: holiday_names_1.HolidayName.REFORMATIONSTAG,
date: moment_holiday_core_1.NonRecurringDate.forYears(31, 9, [2017]),
tags: new Map([
[moment_holiday_core_1.TypeTag.name, new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC)],
[moment_holiday_core_1.LegislationTag.name, new moment_holiday_core_1.LegislationTag(this.legislation)],
]),
},
]);

@@ -49,0 +57,0 @@ }

@@ -17,3 +17,3 @@ "use strict";

super(...arguments);
this.legislation = new moment_holiday_core_1.Legislation("Feiertagsgesetz", url.parse("http://www.gesetze-bayern.de/Content/Document/BayFTG-1"), "Art. 1 I");
this.legislation = new moment_holiday_core_1.Legislation("Feiertagsgesetz", url.parse("http://www.gesetze-bayern.de/Content/Document/BayFTG-1"), "Art. 1 I S.1");
}

@@ -39,4 +39,4 @@ getHolidayDefinitions() {

{
name: holiday_names_1.HolidayName.MARIA_HIMMELFAHRT,
date: new moment_holiday_core_1.RecurringDate(15, 7),
name: holiday_names_1.HolidayName.ALLERHEILIGEN,
date: new moment_holiday_core_1.RecurringDate(1, 10),
tags: new Map([

@@ -48,4 +48,4 @@ [moment_holiday_core_1.TypeTag.name, new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC)],

{
name: holiday_names_1.HolidayName.ALLERHEILIGEN,
date: new moment_holiday_core_1.RecurringDate(1, 10),
name: holiday_names_1.HolidayName.REFORMATIONSTAG,
date: moment_holiday_core_1.NonRecurringDate.forYears(31, 9, [2017]),
tags: new Map([

@@ -52,0 +52,0 @@ [moment_holiday_core_1.TypeTag.name, new moment_holiday_core_1.TypeTag(moment_holiday_core_1.TypeTagValue.PUBLIC)],

@@ -1,3 +0,2 @@

import { EasterDependentDate, Legislation, RecurringDate } from "@nesto-software/moment-holiday-core";
import { HolidayName } from "./holiday-names";
import { IHolidayDefinitionInternal, Legislation } from "@nesto-software/moment-holiday-core";
/**

@@ -8,10 +7,2 @@ * Returns holiday definitions which are usually common for all german states.

*/
export declare const COMMON_STATE_HOLIDAY_DEFINITIONS: (legislation: Legislation) => ({
name: HolidayName;
date: RecurringDate;
tags: Map<string, import("@nesto-software/moment-holiday-core/dist/tag/abstract-tag").AbstractTag>;
} | {
name: HolidayName;
date: EasterDependentDate;
tags: Map<string, import("@nesto-software/moment-holiday-core/dist/tag/abstract-tag").AbstractTag>;
})[];
export declare const COMMON_STATE_HOLIDAY_DEFINITIONS: (legislation: Legislation) => IHolidayDefinitionInternal[];

@@ -17,3 +17,4 @@ export declare enum HolidayName {

ALLERHEILIGEN = "Allerheiligen",
FRIEDENSFEST = "Friedensfest"
FRIEDENSFEST = "Friedensfest",
REFORMATIONSTAG = "Reformationstag"
}

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

HolidayName["FRIEDENSFEST"] = "Friedensfest";
HolidayName["REFORMATIONSTAG"] = "Reformationstag";
})(HolidayName = exports.HolidayName || (exports.HolidayName = {}));
//# sourceMappingURL=holiday-names.js.map
{
"name": "@nesto-software/moment-holiday-germany",
"version": "0.0.2-alpha.409+85cf942",
"version": "0.0.2-alpha.420+bdb3b59",
"description": "The german locale for moment-holiday.",

@@ -30,3 +30,3 @@ "keywords": [

"devDependencies": {
"@nesto-software/moment-holiday-core": "^0.0.2-alpha.409+85cf942",
"@nesto-software/moment-holiday-core": "^0.0.2-alpha.420+bdb3b59",
"@types/jest": "^23.3.1",

@@ -61,3 +61,3 @@ "@types/node": "10.9.4",

"repository": "https://gitlab.com/nesto-software/moment-holiday/tree/master/packages/locales/germany",
"gitHead": "85cf9427a64dfa1c0b3d5f852749c1c34ed9770f"
"gitHead": "bdb3b59fd216e8614bcc3b42d0bb2d8b48888fb3"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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