@flatfile/listener
Advanced tools
Comparing version 0.3.0 to 0.3.1
# @flatfile/listener | ||
## 0.3.1 | ||
### Patch Changes | ||
- 9ca9443: Event Cache Cleanup | ||
## 0.3.0 | ||
@@ -4,0 +10,0 @@ |
@@ -168,6 +168,4 @@ "use strict"; | ||
if (this.eventCache.get(key)) { | ||
console.log(`Cache hit for ${key}`); | ||
return this.eventCache.get(key); | ||
} else { | ||
console.log(`no cache hit for ${key}`); | ||
const result = await callback(); | ||
@@ -180,3 +178,2 @@ this.eventCache.set(key, result); | ||
if (this.eventCache.get(key)) { | ||
console.log(`cache set for ${key}`); | ||
const result = await callback(); | ||
@@ -183,0 +180,0 @@ this.eventCache.set(key, result); |
{ | ||
"name": "@flatfile/listener", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A PubSub Listener for configuring and using Flatfile", | ||
@@ -35,5 +35,5 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"@flatfile/api": "^1.4.5", | ||
"@flatfile/api": "^1.4.9", | ||
"axios": "^1.4.0" | ||
} | ||
} |
@@ -6,6 +6,4 @@ export class EventCache { | ||
if (this.eventCache.get(key)) { | ||
console.log(`Cache hit for ${key}`) | ||
return this.eventCache.get(key) | ||
} else { | ||
console.log(`no cache hit for ${key}`) | ||
const result = await callback() | ||
@@ -19,3 +17,2 @@ this.eventCache.set(key, result) | ||
if (this.eventCache.get(key)) { | ||
console.log(`cache set for ${key}`) | ||
const result = await callback() | ||
@@ -22,0 +19,0 @@ this.eventCache.set(key, result) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77646
2487