@hebcal/icalendar 4.15.4 → 4.16.0

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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @hebcal/icalendar v4.15.4 */
1
+ /*! @hebcal/icalendar v4.16.0 */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -8,7 +8,7 @@ var murmurhash3 = require('murmurhash3');
8
8
  var restApi = require('@hebcal/rest-api');
9
9
  var fs = require('fs');
10
10
 
11
- var version="4.15.4";
11
+ const version="4.16.0";
12
12
 
13
13
  const VTIMEZONE = {};
14
14
  const CATEGORY = {
@@ -377,6 +377,10 @@ function createMemo(e, options) {
377
377
  const desc = e.getDesc();
378
378
  const candles = desc === 'Havdalah' || desc === 'Candle lighting';
379
379
 
380
+ if (typeof e.memo === 'string' && e.memo.length && e.memo.indexOf('\n') !== -1) {
381
+ e.memo = e.memo.replace(/\n/g, '\\n');
382
+ }
383
+
380
384
  if (candles) {
381
385
  return e.memo || '';
382
386
  }
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
- /*! @hebcal/icalendar v4.15.4 */
1
+ /*! @hebcal/icalendar v4.16.0 */
2
2
  import { flags, Locale } from '@hebcal/core';
3
3
  import { murmur32HexSync } from 'murmurhash3';
4
4
  import { shouldRenderBrief, pad2, getEventCategories, makeAnchor, pad4, getHolidayDescription, getCalendarTitle, appendIsraelAndTracking, makeTorahMemoText } from '@hebcal/rest-api';
5
5
  import { promises } from 'fs';
6
6
 
7
- var version="4.15.4";
7
+ const version="4.16.0";
8
8
 
9
9
  const VTIMEZONE = {};
10
10
  const CATEGORY = {
@@ -373,6 +373,10 @@ function createMemo(e, options) {
373
373
  const desc = e.getDesc();
374
374
  const candles = desc === 'Havdalah' || desc === 'Candle lighting';
375
375
 
376
+ if (typeof e.memo === 'string' && e.memo.length && e.memo.indexOf('\n') !== -1) {
377
+ e.memo = e.memo.replace(/\n/g, '\\n');
378
+ }
379
+
376
380
  if (candles) {
377
381
  return e.memo || '';
378
382
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hebcal/icalendar",
3
- "version": "4.15.4",
3
+ "version": "4.16.0",
4
4
  "author": "Michael J. Radwin (https://github.com/mjradwin)",
5
5
  "keywords": [
6
6
  "ical",
@@ -24,7 +24,7 @@
24
24
  "url": "https://github.com/hebcal/hebcal-icalendar/issues"
25
25
  },
26
26
  "dependencies": {
27
- "@hebcal/core": "^3.33.3",
27
+ "@hebcal/core": "^3.35.0",
28
28
  "@hebcal/rest-api": "^3.13.0",
29
29
  "murmurhash3": "^0.5.0"
30
30
  },
@@ -48,18 +48,18 @@
48
48
  "verbose": true
49
49
  },
50
50
  "devDependencies": {
51
- "@babel/core": "^7.17.5",
51
+ "@babel/core": "^7.17.9",
52
52
  "@babel/preset-env": "^7.16.11",
53
- "@babel/register": "^7.17.0",
53
+ "@babel/register": "^7.17.7",
54
54
  "@rollup/plugin-babel": "^5.3.1",
55
- "@rollup/plugin-commonjs": "^21.0.2",
55
+ "@rollup/plugin-commonjs": "^22.0.0",
56
56
  "@rollup/plugin-json": "^4.1.0",
57
- "@rollup/plugin-node-resolve": "^13.1.3",
58
- "ava": "^4.1.0",
59
- "eslint": "^8.10.0",
57
+ "@rollup/plugin-node-resolve": "^13.2.1",
58
+ "ava": "^4.2.0",
59
+ "eslint": "^8.14.0",
60
60
  "eslint-config-google": "^0.14.0",
61
61
  "jsdoc": "^3.6.10",
62
62
  "jsdoc-to-markdown": "^7.1.1",
63
- "rollup": "^2.70.0"
63
+ "rollup": "^2.70.2"
64
64
  }
65
65
  }