@segmentstream/ontology 0.97.0 → 0.98.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.
package/dist/slack.js CHANGED
@@ -17,5 +17,7 @@ export function escapeSlackMarkdown(text) {
17
17
  * Markdown.
18
18
  */
19
19
  export function renderSlack(markdown, attribution, separator = "\n\n") {
20
- return `${markdown}${escapeSlackMarkdown(separator)}_${escapeSlackMarkdown(attribution)}_`;
20
+ return attribution === ""
21
+ ? markdown
22
+ : `${markdown}${escapeSlackMarkdown(separator)}_${escapeSlackMarkdown(attribution)}_`;
21
23
  }
package/dist/whatsapp.js CHANGED
@@ -25,5 +25,7 @@ export function literalWhatsAppText(text) {
25
25
  * attribution in italics. Neither can open or close the member's formatting.
26
26
  */
27
27
  export function renderWhatsApp(text, attribution, separator = "\n\n") {
28
- return `${text}${literalWhatsAppText(separator)}_${literalWhatsAppText(attribution)}_`;
28
+ return attribution === ""
29
+ ? text
30
+ : `${text}${literalWhatsAppText(separator)}_${literalWhatsAppText(attribution)}_`;
29
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@segmentstream/ontology",
3
- "version": "0.97.0",
3
+ "version": "0.98.1",
4
4
  "description": "Define a SegmentStream workspace app's ontology: entities, relationships, roles and actions, written with Effect.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "SegmentStream",