@mikitasazan/notify 1.6.0 → 1.6.1

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.
Files changed (2) hide show
  1. package/dist/render.js +11 -2
  2. package/package.json +1 -1
package/dist/render.js CHANGED
@@ -199,7 +199,14 @@ const note = (text) => {
199
199
  * стоит отдельной строкой, потому что сам текст в поле не помещается: поле
200
200
  * держит одну строку и обрезает.
201
201
  */
202
- const quoted = (label, text) => text ? `<b>${esc(cap(label))}</b>\n${note(text)}` : null;
202
+ /**
203
+ * A quote that needs saying what it is. The heading is a GROUP heading — the
204
+ * same italic-underline every other card uses over a block — not a bold field
205
+ * label: a bold label means `label: value` on one line, and using it here made
206
+ * the session card the only one whose block was titled a third way. The owner
207
+ * read the card and asked where its group was.
208
+ */
209
+ const quoted = (label, text) => text ? `${group(label)}\n${note(text)}` : null;
203
210
  /**
204
211
  * Склейка карточки. Пустая строка здесь — знак смены блока, а не отступ:
205
212
  * две подряд означают пустой блок, ведущая — блок, которого нет. Обе
@@ -525,7 +532,9 @@ const renderIncident = (e) => join([
525
532
  // one place it is of any use.
526
533
  const renderSession = (e) => join([
527
534
  typeLine(iconFor(e), 'Session', e.action),
528
- '',
535
+ // No blank line under the type line: a blank means a new block, and here it
536
+ // opened a block that had no heading. Facts about the session touch the
537
+ // line that names it, the way they do on every job card.
529
538
  field('Project', e.workdir),
530
539
  field('Reason', e.reason),
531
540
  e.opened ? '' : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikitasazan/notify",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Единая типизированная отправка Telegram-уведомлений (форум-темы, маршрутизация, ретраи) для всех проектов",
5
5
  "type": "module",
6
6
  "license": "MIT",