Skip to content

Commit

Permalink
feat: add secrets to context
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhtuan0409 committed Nov 20, 2023
1 parent 1ab42b4 commit 5d0ec4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions js/src/context.ts
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 5d0ec4c

Please sign in to comment.