()
| 195 | return list[index + 1]; |
| 196 | }, |
| 197 | async previous() { |
| 198 | const version = await settings.getVersion(); |
| 199 | if (!version) return; |
| 200 | |
| 201 | const list = getSchemasOfVariant(parse(version)!.prerelease); |
| 202 | const index = list.findIndex((schema) => schema.version === version); |
| 203 | return list[index - 1]; |
| 204 | }, |
| 205 | async up(options = {}) { |
| 206 | const next = await this.next(); |
| 207 | if (!next) throw new Error("Already up to date."); |
nothing calls this directly
no test coverage detected