@adeficior/data-modifier-botania 2.0.1 → 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/module.js
CHANGED
package/dist/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,eAAe,YAAY,CAIxB;IACD,YAAY,EAAE,IAAI;IAClB,YAAY,EAAE;QACZ,kCAAkC,EAAE,UAAU;KAC/C;IACD,KAAK,EAAE;QACL,QAAQ,EAAE;YACR,wBAAwB,EAAE,qBAAqB;SAChD;QACD,UAAU,EAAE,CAAC,eAAe,CAAC;KAC9B;IACD,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,wBAAwB,EAAE,GAAG,EAAE,iBAAiB,EAAE,CAAC;IACxE,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE;QACd,IAAI,CAAC,IAAI,CAAC,6BAA6B,EAAE,mBAAmB,CAAC,CAAC;QAE9D,IAAI,CAAC,OAAO,CACV,wBAAwB,EACxB,CAAC,SAAS,EAAE,EAAE,CACZ,IAAI,uBAAuB,CACzB,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAChC,SAAS,CAAC,GAAG,CAAC,wBAAwB,CAAC,EACvC,SAAS,CAAC,GAAG,CAAC,oBAAoB,CAAC,CACpC,CACJ,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type { NormalizedId } from "@adeficior/data-modifier-core";
|
|
2
1
|
import type { Ingredient } from "@adeficior/data-modifier-ingredients";
|
|
3
2
|
import type { Recipe, RecipeDefinition, RecipeModifier } from "@adeficior/data-modifier-recipes";
|
|
4
3
|
import type { RecipeParseContext, SerializedRecipe } from "@adeficior/data-modifier-recipes/serializer";
|
|
5
4
|
import { RecipeTypeSerializer } from "@adeficior/data-modifier-recipes/serializer";
|
|
5
|
+
import type { BrewsId } from "@adeficior/data-modifier/generated";
|
|
6
6
|
export type BrewRecipeDefinition = RecipeDefinition & Readonly<{
|
|
7
7
|
ingredients: unknown[];
|
|
8
8
|
brew: string;
|
|
9
9
|
}>;
|
|
10
10
|
export declare class BrewRecipe implements Recipe {
|
|
11
|
-
readonly brew:
|
|
11
|
+
readonly brew: BrewsId;
|
|
12
12
|
readonly ingredients: Ingredient[];
|
|
13
|
-
constructor(brew:
|
|
13
|
+
constructor(brew: BrewsId, ingredients: Ingredient[]);
|
|
14
14
|
getIngredients(): Ingredient[];
|
|
15
15
|
getResults(): never[];
|
|
16
16
|
modify(modifier: RecipeModifier): BrewRecipe;
|
package/dist/serializer/brew.js
CHANGED
|
@@ -3,9 +3,7 @@ import { RecipeTypeSerializer } from "@adeficior/data-modifier-recipes/serialize
|
|
|
3
3
|
export class BrewRecipe {
|
|
4
4
|
brew;
|
|
5
5
|
ingredients;
|
|
6
|
-
constructor(
|
|
7
|
-
// TODO this is an ID?
|
|
8
|
-
brew, ingredients) {
|
|
6
|
+
constructor(brew, ingredients) {
|
|
9
7
|
this.brew = brew;
|
|
10
8
|
this.ingredients = ingredients;
|
|
11
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brew.js","sourceRoot":"","sources":["../../src/serializer/brew.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brew.js","sourceRoot":"","sources":["../../src/serializer/brew.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAWzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AASnF,MAAM,OAAO,UAAU;IAEV;IACA;IAFX,YACW,IAAa,EACb,WAAyB;QADzB,SAAI,GAAJ,IAAI,CAAS;QACb,gBAAW,GAAX,WAAW,CAAc;IACjC,CAAC;IAEJ,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED,UAAU;QACR,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,CAAC,QAAwB;QAC7B,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC;IAC9E,CAAC;CACF;AAED,MAAM,OAAO,oBAAqB,SAAQ,oBAGzC;IACC,WAAW,CACT,UAAgC,EAChC,OAA2B;QAE3B,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,eAAe,CACrD,UAAU,CAAC,WAAW,CACvB,CAAC;QACF,MAAM,IAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACvC,OAAO,IAAI,UAAU,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;IAC3C,CAAC;IAEQ,SAAS,CAChB,MAAkB,EAClB,OAA2B;QAE3B,OAAO;YACL,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,WAAW,CAAC;SACnE,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adeficior/data-modifier-botania",
|
|
3
3
|
"description": "data-modifier module adding compatibility for botania",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.3",
|
|
5
5
|
"exports": { ".": "./dist/index.js" },
|
|
6
6
|
"type": "module",
|
|
7
|
-
"devDependencies": { "@adeficior/data-modifier-recipes": "^2.0
|
|
7
|
+
"devDependencies": { "@adeficior/data-modifier-recipes": "^2.1.0" },
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"@adeficior/pack-resolver": "^2.0.1",
|
|
10
10
|
"typescript": "^5",
|
|
11
11
|
"zod": "^4.4.3",
|
|
12
|
-
"@adeficior/data-modifier-core": "^2.0
|
|
13
|
-
"@adeficior/data-modifier-recipes": "^2.0
|
|
14
|
-
"@adeficior/data-modifier-ingredients": "^2.0.
|
|
15
|
-
"@adeficior/data-modifier-tags": "^2.0.
|
|
12
|
+
"@adeficior/data-modifier-core": "^2.1.0",
|
|
13
|
+
"@adeficior/data-modifier-recipes": "^2.1.0",
|
|
14
|
+
"@adeficior/data-modifier-ingredients": "^2.0.3",
|
|
15
|
+
"@adeficior/data-modifier-tags": "^2.0.3"
|
|
16
16
|
},
|
|
17
17
|
"typesVersions": { "*": {} },
|
|
18
18
|
"types": "./dist/index.d.ts",
|