@flatfile/listener
Advanced tools
Comparing version 0.3.8 to 0.3.9
@@ -51,2 +51,3 @@ import { Event, RecordsWithLinks } from '@flatfile/api/api'; | ||
readonly cache: EventCache; | ||
readonly namespace: string[]; | ||
constructor(src: Event, accessToken?: string, apiUrl?: string); | ||
@@ -240,3 +241,3 @@ /** | ||
*/ | ||
namespace(namespace: string | string[], cb?: SubFn<this>): this; | ||
namespace(namespaces: string | string[], cb?: SubFn<this>): this; | ||
/** | ||
@@ -243,0 +244,0 @@ * Filter by namespace |
@@ -254,2 +254,3 @@ "use strict"; | ||
this.action = src.context?.actionName || ""; | ||
this.namespace = src.namespaces || []; | ||
} | ||
@@ -588,4 +589,4 @@ /** | ||
*/ | ||
namespace(namespace, cb) { | ||
return this.filter({ namespace }, cb); | ||
namespace(namespaces, cb) { | ||
return this.filter({ namespaces }, cb); | ||
} | ||
@@ -592,0 +593,0 @@ /** |
{ | ||
"name": "@flatfile/listener", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"description": "A PubSub Listener for configuring and using Flatfile", | ||
@@ -38,5 +38,5 @@ "main": "dist/index.js", | ||
"peerDependencies": { | ||
"@flatfile/api": "^1.4.9", | ||
"@flatfile/api": "^1.5.10", | ||
"axios": "^1.4.0" | ||
} | ||
} |
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
48499
1597