From 60dbcdc413e52a6a114e01ef08fcd8b9b8066b62 Mon Sep 17 00:00:00 2001 From: "Michael J. Radwin" Date: Thu, 17 Aug 2023 14:17:25 -0700 Subject: [PATCH] Only 3 aliyot on Erev Simchat Torah --- package-lock.json | 8 ++++---- package.json | 4 ++-- src/csv.spec.js | 20 +++++++++++++++++++- src/holiday-readings.json | 4 +--- 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 03e5c84..71a51e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-commonjs": "^25.0.4", "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-node-resolve": "^15.1.0", + "@rollup/plugin-node-resolve": "^15.2.0", "@rollup/plugin-terser": "^0.4.3", "ava": "^5.3.1", "core-js": "^3.32.0", @@ -2018,9 +2018,9 @@ } }, "node_modules/@rollup/plugin-node-resolve": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.1.0.tgz", - "integrity": "sha512-xeZHCgsiZ9pzYVgAo9580eCGqwh/XCEUM9q6iQfGNocjgkufHAqC3exA+45URvhiYV8sBF9RlBai650eNs7AsA==", + "version": "15.2.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.0.tgz", + "integrity": "sha512-mKur03xNGT8O9ODO6FtT43ITGqHWZbKPdVJHZb+iV9QYcdlhUUB0wgknvA4KCUmC5oHJF6O2W1EgmyOQyVUI4Q==", "dev": true, "dependencies": { "@rollup/pluginutils": "^5.0.1", diff --git a/package.json b/package.json index deb5428..c3c4c3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hebcal/leyning", - "version": "7.4.1", + "version": "7.4.2", "author": "Michael J. Radwin (https://github.com/mjradwin)", "keywords": [ "hebcal", @@ -55,7 +55,7 @@ "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-commonjs": "^25.0.4", "@rollup/plugin-json": "^6.0.0", - "@rollup/plugin-node-resolve": "^15.1.0", + "@rollup/plugin-node-resolve": "^15.2.0", "@rollup/plugin-terser": "^0.4.3", "ava": "^5.3.1", "core-js": "^3.32.0", diff --git a/src/csv.spec.js b/src/csv.spec.js index 8dcfcd5..6973838 100644 --- a/src/csv.spec.js +++ b/src/csv.spec.js @@ -1,7 +1,8 @@ /* eslint-disable require-jsdoc */ import test from 'ava'; import {Writable} from 'stream'; -import {HDate, HolidayEvent, RoshChodeshEvent, ParshaEvent, months, flags} from '@hebcal/core'; +import {HDate, HolidayEvent, RoshChodeshEvent, ParshaEvent, + HebrewCalendar, months, flags} from '@hebcal/core'; import {writeFullKriyahEvent} from './csv'; class StringWritable extends Writable { @@ -99,3 +100,20 @@ test('writeFullKriyahEvent-9av', (t) => { '', '']; t.deepEqual(lines, expected); }); + +test.skip('writeFullKriyahEvent-SimchatTorah', (t) => { + const events = HebrewCalendar.calendar({ + start: new HDate(22, months.TISHREI, 5784), + end: new HDate(23, months.TISHREI, 5784), + il: false, + }); + t.is(events.length, 2); + const stream = new StringWritable(); + events.forEach((ev) => writeFullKriyahEvent(stream, ev, false)); + const lines = stream.toString().split('\r\n'); + console.log(lines); + // Erev Simchat Torah + const expected = [ + '', '']; + t.deepEqual(lines, expected); +}); diff --git a/src/holiday-readings.json b/src/holiday-readings.json index 0436ec3..3979f19 100644 --- a/src/holiday-readings.json +++ b/src/holiday-readings.json @@ -360,9 +360,7 @@ "fullkriyah": {"1":{"p":54,"k":5,"b":"33:1","e":"33:7"}, "2":{"p":54,"k":5,"b":"33:8","e":"33:12"}, - "3":{"p":54,"k":5,"b":"33:13","e":"33:17"}, - "4":{"p":54,"k":5,"b":"33:18","e":"33:21"}, - "5":{"p":54,"k":5,"b":"33:22","e":"33:26"}}}, + "3":{"p":54,"k":5,"b":"33:13","e":"33:17"}}}, "Simchat Torah":{ "haft":{"k":"Joshua","b":"1:1","e":"1:18"}, "fullkriyah":