Numeric ids of the Sprite's non-auto `vN` checkpoints.
(
name: string,
signal?: AbortSignal,
)
| 368 | |
| 369 | /** Numeric ids of the Sprite's non-auto `vN` checkpoints. */ |
| 370 | private async checkpointVersions( |
| 371 | name: string, |
| 372 | signal?: AbortSignal, |
| 373 | ): Promise<Array<number>> { |
| 374 | return (await this.listCheckpoints(name, signal)) |
| 375 | .filter((c) => !c.isAuto) |
| 376 | .map((c) => /^v(\d+)$/.exec(c.id)) |
| 377 | .filter((m): m is RegExpExecArray => m !== null) |
| 378 | .map((m) => Number(m[1])) |
| 379 | } |
| 380 | |
| 381 | /** |
| 382 | * Restore a checkpoint in place. The Sprite's writable overlay is replaced and |
no test coverage detected