Skip to content

Commit

Permalink
fix: simplify context
Browse files Browse the repository at this point in the history
  • Loading branch information
vanhtuan0409 committed Nov 16, 2023
1 parent 9dd53c0 commit 852fe5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
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.0",
"version": "0.2.1",
"repository": {
"type": "git",
"url": "git+https://github.com/anduintransaction/rivendell.git"
Expand Down
8 changes: 2 additions & 6 deletions js/src/context.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
export class Context {
configs: Record<string, any>;
configs: any;

static Empty = new Context({});

constructor(configs: Record<string, any>) {
constructor(configs: any) {
this.configs = configs;
}

merge(that: Context): Context {
return new Context(Object.assign({}, this.configs, that.configs));
}
}

0 comments on commit 852fe5e

Please sign in to comment.