zen-flow 1.7.2 → 1.7.3

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/zenflow.cjs CHANGED
@@ -119,7 +119,7 @@ const formatName = (texts) => {
119
119
  const formatTooltip = (texts) => {
120
120
  const format = (text, options) => TOOLTIP_COLOUR[options?.colour ?? "gray"](options?.format ? TOOLTIP_FORMAT[options.format](`"${text}"`) : `"${text}"`);
121
121
  if (!Array.isArray(texts))
122
- return `"${texts}"`;
122
+ return format(texts);
123
123
  if (isTextFormat(texts))
124
124
  return format(...texts);
125
125
  return texts.map(formatTooltip).join(" + ");
package/dist/zenflow.mjs CHANGED
@@ -115,7 +115,7 @@ const formatName = (texts) => {
115
115
  const formatTooltip = (texts) => {
116
116
  const format = (text, options) => TOOLTIP_COLOUR[options?.colour ?? "gray"](options?.format ? TOOLTIP_FORMAT[options.format](`"${text}"`) : `"${text}"`);
117
117
  if (!Array.isArray(texts))
118
- return `"${texts}"`;
118
+ return format(texts);
119
119
  if (isTextFormat(texts))
120
120
  return format(...texts);
121
121
  return texts.map(formatTooltip).join(" + ");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",