Skip to content

Commit

Permalink
Use 'hy' and 'hm' for Hebrew Year, Month for consistency with other APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Feb 14, 2023
1 parent 74fa09a commit 1fd5a19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hebcal/rest-api",
"version": "4.4.0",
"version": "4.4.1",
"author": "Michael J. Radwin (https://github.com/mjradwin)",
"keywords": [
"hebcal"
Expand Down
4 changes: 2 additions & 2 deletions src/classic-rest-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ export function eventToClassicApiObject(ev, options, leyning=true) {
if (mask & flags.MOLAD) {
const m = ev.molad;
result.molad = {
year: m.year,
month: HDate.getMonthName(m.month, m.year),
hy: m.year,
hm: HDate.getMonthName(m.month, m.year),
dow: m.dow,
hour: m.hour,
minutes: m.minutes,
Expand Down
12 changes: 6 additions & 6 deletions src/classic-rest-api.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,8 @@ test('molad', (t) => {
category: 'molad',
title_orig: 'Molad Adar II 5782',
molad: {
year: 5782,
month: 'Adar II',
hy: 5782,
hm: 'Adar II',
dow: 4,
hour: 3,
minutes: 51,
Expand All @@ -588,8 +588,8 @@ test('molad', (t) => {
category: 'molad',
title_orig: 'Molad Nisan 5782',
molad: {
year: 5782,
month: 'Nisan',
hy: 5782,
hm: 'Nisan',
dow: 5,
hour: 16,
minutes: 36,
Expand All @@ -602,8 +602,8 @@ test('molad', (t) => {
category: 'molad',
title_orig: 'Molad Iyyar 5782',
molad: {
year: 5782,
month: 'Iyyar',
hy: 5782,
hm: 'Iyyar',
dow: 0,
hour: 5,
minutes: 20,
Expand Down

0 comments on commit 1fd5a19

Please sign in to comment.