zen-flow 2.8.0 → 2.8.2

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
@@ -176,7 +176,11 @@ const addInscriber = (recipe) => {
176
176
  };
177
177
  const removeInscriber = (id) => `mods.appeng.Inscriber.removeRecipe(${id});`;
178
178
 
179
- const addCompressor = (recipe) => `mods.avaritia.Compressor.add(${formatArgs(recipe.out, recipe.in.n, recipe.in.id)});`;
179
+ const addCompressor = (recipe) => {
180
+ const input = isObject(recipe.in) ? recipe.in : { id: recipe.in, n: 1 };
181
+ const out = formatArgs(recipe.out, input.n, input.id);
182
+ return `mods.avaritia.Compressor.add(${out});`;
183
+ };
180
184
  const removeCompressor = (id) => `mods.avaritia.Compressor.remove(${id});`;
181
185
  const addExtreme = (ingredient, recipe) => {
182
186
  const out = formatArgs(formatIngredient(ingredient), recipe.map((row) => formatList(row.map(formatId))));
@@ -381,6 +385,8 @@ const replaceMany = (ingredient, recipes) => [
381
385
  ...recipes.map((recipe) => add(ingredient, recipe))
382
386
  ].join("\n");
383
387
 
388
+ exports.ENCHANTMENTS = ENCHANTMENTS;
389
+ exports.MFR_FOCI = MFR_FOCI;
384
390
  exports.add = add;
385
391
  exports.addCarpenter = addCarpenter;
386
392
  exports.addCentrifuge = addCentrifuge;
package/dist/zenflow.d.ts CHANGED
@@ -109,7 +109,7 @@ declare const addInscriber: (recipe: RecipeInscriber) => string;
109
109
  declare const removeInscriber: (id: string) => string;
110
110
 
111
111
  declare type RecipeCompressor = {
112
- in: Stack;
112
+ in: Ingredient;
113
113
  out: string;
114
114
  };
115
115
  declare type RecipeExtreme = [
@@ -507,4 +507,4 @@ declare const replace: (ingredient: Ingredient, recipe: Recipe) => string;
507
507
  declare const replaceAll: (ingredient: Ingredient, recipe: Recipe) => string;
508
508
  declare const replaceMany: (ingredient: Ingredient, recipes: Recipe[]) => string;
509
509
 
510
- export { Enchantment, Ingredient, Recipe, RecipeShaped, RecipeShapeless, Stack, Text, TextRich, add, addCarpenter, addCentrifuge, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFabricator, addFabricatorFuel, addFermenter, addFermenterFuel, addFoci, addFurnace, addFurnaceFuel, addFurnace$1 as addFurnaceThermal, addGrinder, addHammer, addInscriber, addInsolator, addLaser, addMirror, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addSqueezer, addStill, addTransposerExtract, addTransposerFill, hide, remove, removeCarpenter, removeCentrifuge, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeDict, removeExtreme, removeFabricator, removeFabricatorFuel, removeFermenter, removeFermenterFuel, removeFoci, removeFurnace, removeFurnaceFuel, removeFurnace$1 as removeFurnaceThermal, removeGrinder, removeHammer, removeInscriber, removeInsolator, removeLaser, removeMoistener, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeSqueezer, removeStill, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
510
+ export { ENCHANTMENTS, Enchantment, Ingredient, MFR_FOCI, Recipe, RecipeShaped, RecipeShapeless, Stack, Text, TextRich, add, addCarpenter, addCentrifuge, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFabricator, addFabricatorFuel, addFermenter, addFermenterFuel, addFoci, addFurnace, addFurnaceFuel, addFurnace$1 as addFurnaceThermal, addGrinder, addHammer, addInscriber, addInsolator, addLaser, addMirror, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addSqueezer, addStill, addTransposerExtract, addTransposerFill, hide, remove, removeCarpenter, removeCentrifuge, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeDict, removeExtreme, removeFabricator, removeFabricatorFuel, removeFermenter, removeFermenterFuel, removeFoci, removeFurnace, removeFurnaceFuel, removeFurnace$1 as removeFurnaceThermal, removeGrinder, removeHammer, removeInscriber, removeInsolator, removeLaser, removeMoistener, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeSqueezer, removeStill, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
package/dist/zenflow.mjs CHANGED
@@ -172,7 +172,11 @@ const addInscriber = (recipe) => {
172
172
  };
173
173
  const removeInscriber = (id) => `mods.appeng.Inscriber.removeRecipe(${id});`;
174
174
 
175
- const addCompressor = (recipe) => `mods.avaritia.Compressor.add(${formatArgs(recipe.out, recipe.in.n, recipe.in.id)});`;
175
+ const addCompressor = (recipe) => {
176
+ const input = isObject(recipe.in) ? recipe.in : { id: recipe.in, n: 1 };
177
+ const out = formatArgs(recipe.out, input.n, input.id);
178
+ return `mods.avaritia.Compressor.add(${out});`;
179
+ };
176
180
  const removeCompressor = (id) => `mods.avaritia.Compressor.remove(${id});`;
177
181
  const addExtreme = (ingredient, recipe) => {
178
182
  const out = formatArgs(formatIngredient(ingredient), recipe.map((row) => formatList(row.map(formatId))));
@@ -377,4 +381,4 @@ const replaceMany = (ingredient, recipes) => [
377
381
  ...recipes.map((recipe) => add(ingredient, recipe))
378
382
  ].join("\n");
379
383
 
380
- export { add, addCarpenter, addCentrifuge, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFabricator, addFabricatorFuel, addFermenter, addFermenterFuel, addFoci, addFurnace, addFurnaceFuel, addFurnace$1 as addFurnaceThermal, addGrinder, addHammer, addInscriber, addInsolator, addLaser, addMirror, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addSqueezer, addStill, addTransposerExtract, addTransposerFill, hide, remove, removeCarpenter, removeCentrifuge, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeDict, removeExtreme, removeFabricator, removeFabricatorFuel, removeFermenter, removeFermenterFuel, removeFoci, removeFurnace, removeFurnaceFuel, removeFurnace$1 as removeFurnaceThermal, removeGrinder, removeHammer, removeInscriber, removeInsolator, removeLaser, removeMoistener, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeSqueezer, removeStill, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
384
+ export { ENCHANTMENTS, MFR_FOCI, add, addCarpenter, addCentrifuge, addComposter, addCompressor, addCrucible$1 as addCrucibleNihilo, addCrucibleSource, addCrucible as addCrucibleThermal, addDict, addExtreme, addFabricator, addFabricatorFuel, addFermenter, addFermenterFuel, addFoci, addFurnace, addFurnaceFuel, addFurnace$1 as addFurnaceThermal, addGrinder, addHammer, addInscriber, addInsolator, addLaser, addMirror, addNEI, addPulverizer, addQED, addSawmill, addSieve, addSmelter, addSqueezer, addStill, addTransposerExtract, addTransposerFill, hide, remove, removeCarpenter, removeCentrifuge, removeComposter, removeCompressor, removeCrucible$1 as removeCrucibleNihilo, removeCrucibleSource, removeCrucible as removeCrucibleThermal, removeDict, removeExtreme, removeFabricator, removeFabricatorFuel, removeFermenter, removeFermenterFuel, removeFoci, removeFurnace, removeFurnaceFuel, removeFurnace$1 as removeFurnaceThermal, removeGrinder, removeHammer, removeInscriber, removeInsolator, removeLaser, removeMoistener, removePulverizer, removeQED, removeSawmill, removeShaped, removeShapeless, removeSieve, removeSmelter, removeSqueezer, removeStill, removeTransposerExtract, removeTransposerFill, replace, replaceAll, replaceMany, replaceQED, withEnchantment, withName, withTag, withTooltip, withTooltipShift };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zen-flow",
3
- "version": "2.8.0",
3
+ "version": "2.8.2",
4
4
  "description": "MineTweaker ZenScript made easy.",
5
5
  "main": "dist/zenflow.cjs",
6
6
  "module": "dist/zenflow.mjs",