Skip to content

Commit

Permalink
updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-jonathan committed Jul 22, 2024
1 parent 1088eb2 commit 04f8830
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 51 deletions.
84 changes: 34 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"test:coverage": "vitest run --coverage --config vite.config.test.ts --mode ${VITE_MODE:-test}"
},
"dependencies": {
"@cosmicmind/foundationjs": "^0.0.1-rc-072124-1",
"@cosmicmind/foundationjs": "^0.0.1-rc-072224-1",
"npm-run-all": "^4.1.5",
"terser": "^5.31.3",
"ts-node": "^10.9.2",
Expand Down
5 changes: 5 additions & 0 deletions src/behavioral/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export type Receivable<T extends Command> = {
export type HistoryStack = {
push(command: Command): void
pop(): Optional<Command>
clear(): void
}

export class CommandHistory implements HistoryStack {
Expand Down Expand Up @@ -87,4 +88,8 @@ export class CommandHistory implements HistoryStack {
pop(): Optional<Command> {
return this.commands.pop()
}

clear(): void {
this.commands = []
}
}

0 comments on commit 04f8830

Please sign in to comment.