zen-flow 1.4.0 → 1.4.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/zenflow.cjs CHANGED
@@ -276,6 +276,10 @@ const replace = (item, recipe) => {
276
276
  add(item, recipe)
277
277
  ].join("\n");
278
278
  };
279
+ const replaceAll = (item, recipes) => [
280
+ remove(Array.isArray(item) ? item[0] : item),
281
+ recipes.map((recipe) => add(item, recipe))
282
+ ].join("\n");
279
283
 
280
284
  exports.add = add;
281
285
  exports.addComposter = addComposter;
@@ -322,6 +326,7 @@ exports.removeSmelter = removeSmelter;
322
326
  exports.removeTransposerExtract = removeTransposerExtract;
323
327
  exports.removeTransposerFill = removeTransposerFill;
324
328
  exports.replace = replace;
329
+ exports.replaceAll = replaceAll;
325
330
  exports.withEnchantments = withEnchantments;
326
331
  exports.withName = withName;
327
332
  exports.withTag = withTag;
package/dist/zenflow.d.ts CHANGED
@@ -264,6 +264,7 @@ declare const removeShaped: (ingredient: string) => string;
264
264
  declare const removeShapeless: (ingredient: string) => string;
265
265
  declare const addFurnace: (recipe: RecipeFurnace) => string;
266
266
  declare const removeFurnace: (ingredient: string) => string;
267
- declare const replace: (item: Item, recipe: Recipe) => string;
267
+ declare const replace: (item: Item, recipe: Recipe) => string;
268
+ declare const replaceAll: (item: Item, recipes: Recipe[]) => string;
268
269
 
269
- export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addExtreme, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addLaserPreferred, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeExtreme, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removeLaserPreferred, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
270
+ export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addExtreme, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addLaserPreferred, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeExtreme, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removeLaserPreferred, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
package/dist/zenflow.mjs CHANGED
@@ -272,5 +272,9 @@ const replace = (item, recipe) => {
272
272
  add(item, recipe)
273
273
  ].join("\n");
274
274
  };
275
+ const replaceAll = (item, recipes) => [
276
+ remove(Array.isArray(item) ? item[0] : item),
277
+ recipes.map((recipe) => add(item, recipe))
278
+ ].join("\n");
275
279
 
276
- export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addExtreme, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addLaserPreferred, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeExtreme, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removeLaserPreferred, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
280
+ export { add, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addExtreme, addFurnace, addFurnace$1 as addFurnaceThermal, addHammer, addInsolator, addLaser, addLaserPreferred, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addTransposerExtract, addTransposerFill, hide, remove, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeExtreme, removeFurnace, removeFurnace$1 as removeFurnaceThermal, removeHammer, removeInsolator, removeLaser, removeLaserPreferred, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeTransposerExtract, removeTransposerFill, replace, replaceAll, withEnchantments, withName, withTag, withTooltip, withTooltipShift };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",