From bc0bff5ef9eab68f352b4974ea9da15e701e13e5 Mon Sep 17 00:00:00 2001 From: Danju Visvanathan Date: Wed, 14 Jul 2021 12:13:25 +1000 Subject: [PATCH 1/2] make serialize method public --- examples/retry_command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/retry_command.ts b/examples/retry_command.ts index 7a27ed0..b1ebae5 100644 --- a/examples/retry_command.ts +++ b/examples/retry_command.ts @@ -6,7 +6,7 @@ class RetryCommand extends Command { super(command.toString(), command.timeout * (retries + 1)); } - protected serialize(): string { + public serialize(): string { return new Array(this.retries + 1).fill(this.command).join(' || '); } From 0ef45aeba62f2b556df3862e305fd0d063230aa7 Mon Sep 17 00:00:00 2001 From: Danju Visvanathan Date: Wed, 14 Jul 2021 12:31:01 +1000 Subject: [PATCH 2/2] change command class --- src/steps/command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/command.ts b/src/steps/command.ts index fb36008..8ebe930 100644 --- a/src/steps/command.ts +++ b/src/steps/command.ts @@ -50,7 +50,7 @@ export class Command { return this.command; } - protected serialize(): string { + public serialize(): string { return this.toString(); } }