@diagonal-hq/cli 0.32.0 → 0.32.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/cli.mjs +3 -2
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -319880,17 +319880,18 @@ function hasResolver(value) {
319880
319880
  }
319881
319881
  return isResolver(value) || Object.values(value).some(hasResolver);
319882
319882
  }
319883
- function tipTapText(content, oneLine) {
319883
+ function tipTapText(content, oneLine, inlineSeparator = null) {
319884
319884
  if (typeof content === "string") {
319885
319885
  return content;
319886
319886
  }
319887
319887
  const separator = oneLine ? "" : "\n\n";
319888
+ const inline = inlineSeparator ?? separator;
319888
319889
  const render = (node) => {
319889
319890
  if (!isPlainObject2(node)) {
319890
319891
  return "";
319891
319892
  }
319892
319893
  if (node.content !== void 0 && node.content !== null) {
319893
- return Array.isArray(node.content) ? node.content.map(render).join(separator) : "";
319894
+ return Array.isArray(node.content) ? node.content.map(render).join(inline) : "";
319894
319895
  }
319895
319896
  return typeof node.text === "string" ? node.text : "";
319896
319897
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {