diff --git a/js/debug.ts b/js/debug.ts index e5aea9f..fae1134 100644 --- a/js/debug.ts +++ b/js/debug.ts @@ -119,7 +119,7 @@ const graph = ModuleGraph.resolve(...modules); graph.show(); console.log(""); -const planner = new Planner(Context.Empty); +const planner = new Planner(new Context()); const plan = planner.planFromGraph(graph); Planner.show(plan); console.log(""); diff --git a/js/package.json b/js/package.json index 9bdd661..5c20120 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "@anduintransaction/rivendell", - "version": "0.2.5", + "version": "0.2.6", "repository": { "type": "git", "url": "git+https://github.com/anduintransaction/rivendell.git" diff --git a/js/src/context.ts b/js/src/context.ts index c1e00aa..2d9ecd3 100644 --- a/js/src/context.ts +++ b/js/src/context.ts @@ -1,9 +1,9 @@ export class Context { configs: any; + secrets: any; - static Empty = new Context({}); - - constructor(configs: any) { + constructor(configs: any = {}, secrets: any = {}) { this.configs = configs; + this.secrets = secrets; } }