build: update idb to 6

This commit is contained in:
Johannes Millan 2021-04-22 21:17:52 +02:00
parent 0bd4a11c4b
commit dc10de5559
3 changed files with 8 additions and 8 deletions

View File

@ -156,7 +156,7 @@
"helpful-decorators": "^2.1.0",
"husky": "^4.2.5",
"ical.js": "^1.4.0",
"idb": "^5.0.6",
"idb": "^6.0.0",
"jasmine-core": "^3.7.1",
"jasmine-marbles": "^0.8.1",
"jasmine-spec-reporter": "~5.0.0",

View File

@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
import { DBSchema, IDBPTransaction, openDB } from 'idb';
import { DBSchema, openDB } from 'idb';
import { IDBPDatabase } from 'idb/build/esm/entry';
import { BehaviorSubject, Observable } from 'rxjs';
import { filter, shareReplay, take } from 'rxjs/operators';
@ -87,8 +87,8 @@ export class DatabaseService {
private async _init(): Promise<IDBPDatabase<MyDb>> {
try {
this.db = await openDB<MyDb>(DB_NAME, VERSION, {
upgrade(db: IDBPDatabase<MyDb>, oldVersion: number, newVersion: number | null, transaction: IDBPTransaction<MyDb>) {
// …
// upgrade(db: IDBPDatabase<MyDb>, oldVersion: number, newVersion: number | null, transaction: IDBPTransaction<MyDb>) {
upgrade(db: IDBPDatabase<MyDb>, oldVersion: number, newVersion: number | null) {
console.log('IDB UPGRADE', oldVersion, newVersion);
db.createObjectStore(DB_MAIN_NAME);
},

View File

@ -6945,10 +6945,10 @@ icss-utils@^5.0.0:
resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae"
integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==
idb@^5.0.6:
version "5.0.8"
resolved "https://registry.yarnpkg.com/idb/-/idb-5.0.8.tgz#5f2b72a69267960d222a5f104053625f203fdbb2"
integrity sha512-K9xInRkVbT3ZsYimD2KVj6B4E93IBvOjEQTryu99WuuN7G+7x3SzA79+yubbX0QRN9V64Gi+L+ulG5QYTVydOg==
idb@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/idb/-/idb-6.0.0.tgz#00d6092b948138cf9bebc9dcddc4df8bf60bf0ac"
integrity sha512-+M367poGtpzAylX4pwcrZIa7cFQLfNkAOlMMLN2kw/2jGfJP6h+TB/unQNSVYwNtP8XqkLYrfuiVnxLQNP1tjA==
ieee754@^1.1.13, ieee754@^1.1.4:
version "1.2.1"