www/category-category-module-es5.js
/** Gets record(s) from the objectStore that match the given key. */
Gets record(s) from the objectStore that match the given key.
Gets record ( s ) from the objectStore that match the given key .
function dbGet(firebaseDependencies) {
      return Object(tslib__WEBPACK_IMPORTED_MODULE_3__["__awaiter"])(this, void 0, void 0, function () {
        var key, db, tokenDetails, oldTokenDetails;
        return Object(tslib__WEBPACK_IMPORTED_MODULE_3__["__generator"])(this, function (_a) {
          switch (_a.label) {
            case 0:
              key = getKey(firebaseDependencies);
              return [4
              , getDbPromise()];
            case 1:
              db = _a.sent();
              return [4
              , db.transaction(OBJECT_STORE_NAME).objectStore(OBJECT_STORE_NAME).get(key)];
            case 2:
              tokenDetails = _a.sent();
              if (!tokenDetails) return [3
              , 3];
              return [2
              , tokenDetails];
            case 3:
              return [4
              , migrateOldDatabase(firebaseDependencies.appConfig.senderId)];
            case 4:
              oldTokenDetails = _a.sent();
              if (!oldTokenDetails) return [3
              , 6];
              return [4
              , dbSet(firebaseDependencies, oldTokenDetails)];
            case 5:
              _a.sent();
              return [2
              , oldTokenDetails];
            case 6:
              return [2
              ];
          }
        });
      });
    }
function dbGet ( firebaseDependencies ) { return Object ( tslib__WEBPACK_IMPORTED_MODULE_3__ [ "__awaiter" ] ) ( this , void 0 , void 0 , function ( ) { var key , db , tokenDetails , oldTokenDetails ; return Object ( tslib__WEBPACK_IMPORTED_MODULE_3__ [ "__generator" ] ) ( this , function ( _a ) { switch ( _a . label ) { case 0 : key = getKey ( firebaseDependencies ) ; return [ 4 , getDbPromise ( ) ] ; case 1 : db = _a . sent ( ) ; return [ 4 , db . transaction ( OBJECT_STORE_NAME ) . objectStore ( OBJECT_STORE_NAME ) . get ( key ) ] ; case 2 : tokenDetails = _a . sent ( ) ; if ( ! tokenDetails ) return [ 3 , 3 ] ; return [ 2 , tokenDetails ] ; case 3 : return [ 4 , migrateOldDatabase ( firebaseDependencies . appConfig . senderId ) ] ; case 4 : oldTokenDetails = _a . sent ( ) ; if ( ! oldTokenDetails ) return [ 3 , 6 ] ; return [ 4 , dbSet ( firebaseDependencies , oldTokenDetails ) ] ; case 5 : _a . sent ( ) ; return [ 2 , oldTokenDetails ] ; case 6 : return [ 2 ] ; } } ) ; } ) ; }
Gets record(s) from the objectStore that match the given key.
Gets record ( s ) from the objectStore that match the given key .
/*yield*/ /*yield*/ /*break*/ /*return*/ /*yield*/ /*break*/ /*yield*/ /*return*/ /*return*/