@chat-adapter/teams 4.16.0 → 4.16.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/index.js CHANGED
@@ -3820,7 +3820,6 @@ import {
3820
3820
  isEmphasisNode,
3821
3821
  isInlineCodeNode,
3822
3822
  isLinkNode,
3823
- isListItemNode,
3824
3823
  isListNode,
3825
3824
  isParagraphNode,
3826
3825
  isStrongNode,
@@ -3922,14 +3921,7 @@ ${node.value}
3922
3921
  return getNodeChildren(node).map((child) => `> ${this.nodeToTeams(child)}`).join("\n");
3923
3922
  }
3924
3923
  if (isListNode(node)) {
3925
- return getNodeChildren(node).map((item, i) => {
3926
- const prefix = node.ordered ? `${i + 1}.` : "-";
3927
- const content = getNodeChildren(item).map((child) => this.nodeToTeams(child)).join("");
3928
- return `${prefix} ${content}`;
3929
- }).join("\n");
3930
- }
3931
- if (isListItemNode(node)) {
3932
- return getNodeChildren(node).map((child) => this.nodeToTeams(child)).join("");
3924
+ return this.renderList(node, 0, (child) => this.nodeToTeams(child));
3933
3925
  }
3934
3926
  if (node.type === "break") {
3935
3927
  return "\n";