zen-flow 1.7.2 → 1.8.0
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/README.md +1 -0
- package/dist/zenflow.cjs +1 -1
- package/dist/zenflow.d.ts +2 -2
- package/dist/zenflow.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -111,6 +111,7 @@ Array.from({ length: 11 })
|
|
|
111
111
|
- `replace` - Replaced crafting recipe
|
|
112
112
|
- Shaped recipe: `object`
|
|
113
113
|
- Shapeless recipe: `Array`
|
|
114
|
+
- `replaceAll` - Replace all recipes
|
|
114
115
|
- `replaceMany` - Remove all recipes and add multiple recipes
|
|
115
116
|
- `addFurnace` - Adds furnace recipe
|
|
116
117
|
- `removeFurnace` - Removes furnace recipe
|
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
|
|
122
|
+
return format(texts);
|
|
123
123
|
if (isTextFormat(texts))
|
|
124
124
|
return format(...texts);
|
|
125
125
|
return texts.map(formatTooltip).join(" + ");
|
package/dist/zenflow.d.ts
CHANGED
|
@@ -214,7 +214,7 @@ declare const removeFurnace$1: (ingredient: string) => string;
|
|
|
214
214
|
* - Rich phyto-gro: `9600RF`
|
|
215
215
|
*/
|
|
216
216
|
declare const addInsolator: (recipe: RecipeInsolator) => string;
|
|
217
|
-
declare const removeInsolator: (left:
|
|
217
|
+
declare const removeInsolator: (left: Item, right: Item) => string;
|
|
218
218
|
/**
|
|
219
219
|
* Common values:
|
|
220
220
|
* - Plants: `1600RF`
|
|
@@ -236,7 +236,7 @@ declare const removeSawmill: (ingredient: string) => string;
|
|
|
236
236
|
* - Slag: `7200RF`
|
|
237
237
|
*/
|
|
238
238
|
declare const addSmelter: (recipe: RecipeSmelter) => string;
|
|
239
|
-
declare const removeSmelter: (left:
|
|
239
|
+
declare const removeSmelter: (left: Item, right: Item) => string;
|
|
240
240
|
/**
|
|
241
241
|
* Common values
|
|
242
242
|
* - Duct: `800RF, 200mB`
|
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
|
|
118
|
+
return format(texts);
|
|
119
119
|
if (isTextFormat(texts))
|
|
120
120
|
return format(...texts);
|
|
121
121
|
return texts.map(formatTooltip).join(" + ");
|