(version: string)
| 186 | |
| 187 | /** Correct schema version to be semver compliant */ |
| 188 | export function patchVersion(version: string): string { |
| 189 | expect(version).to.be.a('string'); |
| 190 | const [major, minor, patch] = version.split('.'); |
| 191 | return `${major}.${minor ?? 0}.${patch ?? 0}`; |
| 192 | } |
| 193 | |
| 194 | export function patchDbOptions(options: CollectionOrDatabaseOptions = {}): DbOptions { |
| 195 | // TODO |
no outgoing calls
no test coverage detected