Socket
Socket
Sign inDemoInstall

@flatfile/listener

Package Overview
Dependencies
Maintainers
26
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flatfile/listener - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

6

CHANGELOG.md
# @flatfile/listener
## 0.3.1
### Patch Changes
- 9ca9443: Event Cache Cleanup
## 0.3.0

@@ -4,0 +10,0 @@

3

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc