Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
WhidRubeld committed Feb 13, 2023
2 parents 0dee82e + 5593d39 commit 9ff9731
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "expo-cache-manager",
"version": "0.2.0",
"version": "0.2.1",
"description": "Library for handling data caching for React Native with expo-cache-manager",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
4 changes: 2 additions & 2 deletions src/CacheEntry.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class CacheEntry extends EventEmitter<'update'> {
entryExpiresIn !== undefined && entryExpiresIn >= 0 ? entryExpiresIn : -1

if (completed?.status) {
if (completed.expiresIn) {
if (completed.expiresIn && this._entryExpiresIn !== -1) {
this._expiresIn = completed.expiresIn
}
this._status = CacheEntryStatus.Complete
Expand Down Expand Up @@ -291,7 +291,7 @@ export class CacheEntry extends EventEmitter<'update'> {
}

public checkExpireStatus() {
if (!this._expiresIn) return
if (!this._expiresIn || this._entryExpiresIn === -1) return

const expiresIn = this._expiresIn.getTime()
const current = Utils.getUTCDate().getTime()
Expand Down

0 comments on commit 9ff9731

Please sign in to comment.