breviarium 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";var s=r=>{throw TypeError(r)};var o=(r,t,e)=>t.has(r)||s("Cannot "+e);var y=(r,t,e)=>(o(r,t,"read from private field"),e?e.call(r):t.get(r)),g=(r,t,e)=>t.has(r)?s("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),i=(r,t,e,u)=>(o(r,t,"write to private field"),u?u.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(r){return r.toISOString().split("T")[0]}var n;class d{constructor(t){g(this,n);t!=null?i(this,n,t):i(this,n,new Date)}setDate(t){i(this,n,t)}getCurrentDate(){return y(this,n)}getLaudes(t){return`Laudes prayer for ${a(t??this.getCurrentDate())}`}getVesperae(t){return`Vesperae prayer for ${a(t??this.getCurrentDate())}`}getOfficium(t){return`Officium prayer for ${a(t??this.getCurrentDate())}`}getTertia(t){return`Tertia prayer for ${a(t??this.getCurrentDate())}`}getSexta(t){return`Sexta prayer for ${a(t??this.getCurrentDate())}`}getNona(t){return`Nona prayer for ${a(t??this.getCurrentDate())}`}getCompletorium(t){return`Completorium prayer for ${a(t??this.getCurrentDate())}`}getMissaleLectiones(t){return`Lectiones prayer for ${a(t??this.getCurrentDate())}`}getEvangelium(t){return`Evangelium prayer for ${a(t??this.getCurrentDate())}`}}n=new WeakMap;exports.Breviarium=d;
|
|
2
|
-
//# sourceMappingURL=breviarium.cjs.
|
|
2
|
+
//# sourceMappingURL=breviarium.cjs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breviarium.cjs.cjs","sources":["../src/breviarium.ts"],"sourcesContent":["// src/breviarium.ts\nimport {BreviariumInterface} from \"./breviarium-interface.ts\";\n\nfunction formatDate(date: Date): string {\n return date.toISOString().split(\"T\")[0];\n}\n\nexport class Breviarium implements BreviariumInterface {\n\n #selectedDate: Date;\n\n constructor(selectedDate?: Date) {\n if (selectedDate !== undefined && selectedDate !== null)\n this.#selectedDate = selectedDate;\n else\n this.#selectedDate = new Date();\n }\n\n setDate(date: Date): void {\n this.#selectedDate = date;\n }\n\n getCurrentDate(): Date {\n return this.#selectedDate;\n }\n\n getLaudes(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Laudes prayer for ${day}`;\n }\n\n getVesperae(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Vesperae prayer for ${day}`;\n }\n\n getOfficium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Officium prayer for ${day}`;\n }\n\n getTertia(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Tertia prayer for ${day}`;\n }\n\n getSexta(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Sexta prayer for ${day}`;\n }\n\n getNona(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Nona prayer for ${day}`;\n }\n\n getCompletorium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Completorium prayer for ${day}`;\n }\n\n getMissaleLectiones(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Lectiones prayer for ${day}`;\n }\n\n getEvangelium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Evangelium prayer for ${day}`;\n }\n\n\n};\n"],"names":["formatDate","date","Breviarium","selectedDate","__privateAdd","_selectedDate","__privateSet","__privateGet"],"mappings":"2ZAGA,SAASA,EAAWC,EAAoB,CACpC,OAAOA,EAAK,YAAY,EAAE,MAAM,GAAG,EAAE,CAAC,CAC1C,OAEO,MAAMC,CAA0C,CAInD,YAAYC,EAAqB,CAFjCC,EAAA,KAAAC,GAGsCF,GAAiB,KAC/CG,EAAA,KAAKD,EAAgBF,GAEhBG,EAAA,KAAAD,MAAoB,KAAK,CAGtC,QAAQJ,EAAkB,CACtBK,EAAA,KAAKD,EAAgBJ,EAAA,CAGzB,gBAAuB,CACnB,OAAOM,EAAA,KAAKF,EAAA,CAGhB,UAAUJ,EAAqB,CAE3B,MAAO,qBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACrB,EAAA,CAGnC,YAAYA,EAAqB,CAE7B,MAAO,uBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACnB,EAAA,CAGrC,YAAYA,EAAqB,CAE7B,MAAO,uBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACnB,EAAA,CAGrC,UAAUA,EAAqB,CAE3B,MAAO,qBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACrB,EAAA,CAGnC,SAASA,EAAqB,CAE1B,MAAO,oBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACtB,EAAA,CAGlC,QAAQA,EAAqB,CAEzB,MAAO,mBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACvB,EAAA,CAGjC,gBAAgBA,EAAqB,CAEjC,MAAO,2BADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACf,EAAA,CAGzC,oBAAoBA,EAAqB,CAErC,MAAO,wBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CAClB,EAAA,CAGtC,cAAcA,EAAqB,CAE/B,MAAO,yBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACjB,EAAA,CAI3C,CA/DII,EAAA"}
|
package/package.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"breviarium.cjs.js","sources":["../src/breviarium.ts"],"sourcesContent":["// src/breviarium.ts\nimport {BreviariumInterface} from \"./breviarium-interface.ts\";\n\nfunction formatDate(date: Date): string {\n return date.toISOString().split(\"T\")[0];\n}\n\nexport class Breviarium implements BreviariumInterface {\n\n #selectedDate: Date;\n\n constructor(selectedDate?: Date) {\n if (selectedDate !== undefined && selectedDate !== null)\n this.#selectedDate = selectedDate;\n else\n this.#selectedDate = new Date();\n }\n\n setDate(date: Date): void {\n this.#selectedDate = date;\n }\n\n getCurrentDate(): Date {\n return this.#selectedDate;\n }\n\n getLaudes(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Laudes prayer for ${day}`;\n }\n\n getVesperae(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Vesperae prayer for ${day}`;\n }\n\n getOfficium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Officium prayer for ${day}`;\n }\n\n getTertia(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Tertia prayer for ${day}`;\n }\n\n getSexta(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Sexta prayer for ${day}`;\n }\n\n getNona(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Nona prayer for ${day}`;\n }\n\n getCompletorium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Completorium prayer for ${day}`;\n }\n\n getMissaleLectiones(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Lectiones prayer for ${day}`;\n }\n\n getEvangelium(date?: Date): string {\n const day = formatDate(date ?? this.getCurrentDate());\n return `Evangelium prayer for ${day}`;\n }\n\n\n};\n"],"names":["formatDate","date","Breviarium","selectedDate","__privateAdd","_selectedDate","__privateSet","__privateGet"],"mappings":"2ZAGA,SAASA,EAAWC,EAAoB,CACpC,OAAOA,EAAK,YAAY,EAAE,MAAM,GAAG,EAAE,CAAC,CAC1C,OAEO,MAAMC,CAA0C,CAInD,YAAYC,EAAqB,CAFjCC,EAAA,KAAAC,GAGsCF,GAAiB,KAC/CG,EAAA,KAAKD,EAAgBF,GAEhBG,EAAA,KAAAD,MAAoB,KAAK,CAGtC,QAAQJ,EAAkB,CACtBK,EAAA,KAAKD,EAAgBJ,EAAA,CAGzB,gBAAuB,CACnB,OAAOM,EAAA,KAAKF,EAAA,CAGhB,UAAUJ,EAAqB,CAE3B,MAAO,qBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACrB,EAAA,CAGnC,YAAYA,EAAqB,CAE7B,MAAO,uBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACnB,EAAA,CAGrC,YAAYA,EAAqB,CAE7B,MAAO,uBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACnB,EAAA,CAGrC,UAAUA,EAAqB,CAE3B,MAAO,qBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACrB,EAAA,CAGnC,SAASA,EAAqB,CAE1B,MAAO,oBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACtB,EAAA,CAGlC,QAAQA,EAAqB,CAEzB,MAAO,mBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACvB,EAAA,CAGjC,gBAAgBA,EAAqB,CAEjC,MAAO,2BADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACf,EAAA,CAGzC,oBAAoBA,EAAqB,CAErC,MAAO,wBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CAClB,EAAA,CAGtC,cAAcA,EAAqB,CAE/B,MAAO,yBADKD,EAAWC,GAAQ,KAAK,gBAAgB,CACjB,EAAA,CAI3C,CA/DII,EAAA"}
|