zen-flow 2.0.2 → 2.0.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
@@ -213,8 +213,8 @@ const replaceQED = (ingredient, recipe) => [
213
213
  const addDict = (dict, ids) => ids.map((id) => `${dict}.add(${id});`).join("\n");
214
214
  const removeDict = (dict, ids) => ids.map((id) => `${dict}.remove(${id});`).join("\n");
215
215
  const withName = (id, name) => `${id}.displayName = ${formatName(name)};`;
216
- const withTooltip = (id, tooltips) => toArray(tooltips).map((tooltip) => `${id}.addTooltip(${formatTooltip(tooltip)});`).join("\n");
217
- const withTooltipShift = (id, tooltips) => toArray(tooltips).map((tooltip) => `${id}.addShiftTooltip(${formatTooltip(tooltip)});`).join("\n");
216
+ const withTooltip = (id, tooltip) => `${id}.addTooltip(${formatTooltip(tooltip)});`;
217
+ const withTooltipShift = (id, tooltip) => `${id}.addShiftTooltip(${formatTooltip(tooltip)});`;
218
218
  const withTag = (tag) => (id) => `${id}.withTag(${tag})`;
219
219
  const withEnchantment = (enchantments) => withTag(`{ ench: ${formatList(toArray(enchantments).map(formatEnchantment))} }`);
220
220
 
package/dist/zenflow.d.ts CHANGED
@@ -157,8 +157,8 @@ declare const addDict: (dict: string, ids: string[]) => string;
157
157
  */
158
158
  declare const removeDict: (dict: string, ids: string[]) => string;
159
159
  declare const withName: (id: string, name: Text) => string;
160
- declare const withTooltip: (id: string, tooltips: Text | Text[]) => string;
161
- declare const withTooltipShift: (id: string, tooltips: Text | Text[]) => string;
160
+ declare const withTooltip: (id: string, tooltip: Text | Text[]) => string;
161
+ declare const withTooltipShift: (id: string, tooltip: Text | Text[]) => string;
162
162
  declare const withTag: (tag: string) => (id: string) => string;
163
163
  declare const withEnchantment: (enchantments: Enchantment | Enchantment[]) => (id: string) => string;
164
164
 
package/dist/zenflow.mjs CHANGED
@@ -209,8 +209,8 @@ const replaceQED = (ingredient, recipe) => [
209
209
  const addDict = (dict, ids) => ids.map((id) => `${dict}.add(${id});`).join("\n");
210
210
  const removeDict = (dict, ids) => ids.map((id) => `${dict}.remove(${id});`).join("\n");
211
211
  const withName = (id, name) => `${id}.displayName = ${formatName(name)};`;
212
- const withTooltip = (id, tooltips) => toArray(tooltips).map((tooltip) => `${id}.addTooltip(${formatTooltip(tooltip)});`).join("\n");
213
- const withTooltipShift = (id, tooltips) => toArray(tooltips).map((tooltip) => `${id}.addShiftTooltip(${formatTooltip(tooltip)});`).join("\n");
212
+ const withTooltip = (id, tooltip) => `${id}.addTooltip(${formatTooltip(tooltip)});`;
213
+ const withTooltipShift = (id, tooltip) => `${id}.addShiftTooltip(${formatTooltip(tooltip)});`;
214
214
  const withTag = (tag) => (id) => `${id}.withTag(${tag})`;
215
215
  const withEnchantment = (enchantments) => withTag(`{ ench: ${formatList(toArray(enchantments).map(formatEnchantment))} }`);
216
216
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",