@openfeature/core
Advanced tools
Comparing version 0.0.27 to 0.0.28
@@ -324,3 +324,7 @@ "use strict"; | ||
const asyncHandler = async (details) => { | ||
await handler(details); | ||
try { | ||
await handler(details); | ||
} catch (err) { | ||
this._logger?.error("Error running event handler:", err); | ||
} | ||
}; | ||
@@ -327,0 +331,0 @@ const existingAsyncHandlers = this._handlers[eventType].get(handler); |
@@ -271,3 +271,7 @@ // src/errors/open-feature-error-abstract.ts | ||
const asyncHandler = async (details) => { | ||
await handler(details); | ||
try { | ||
await handler(details); | ||
} catch (err) { | ||
this._logger?.error("Error running event handler:", err); | ||
} | ||
}; | ||
@@ -274,0 +278,0 @@ const existingAsyncHandlers = this._handlers[eventType].get(handler); |
@@ -341,3 +341,3 @@ type FlagValueType = 'boolean' | 'string' | 'number' | 'object'; | ||
* In the server, node (or whatever server runtime) provides an implementation for this. | ||
* In the browser, we bundle in the popular 'events' package, which is a polyfill of NodeJS.EventEmitter. | ||
* In the browser, we bundle in the popular 'EventEmitter3' package, which is a polyfill of NodeJS.EventEmitter. | ||
*/ | ||
@@ -351,10 +351,5 @@ interface PlatformEventEmitter { | ||
removeAllListeners(event?: string | symbol): this; | ||
setMaxListeners(n: number): this; | ||
getMaxListeners(): number; | ||
listeners(eventName: string | symbol): Function[]; | ||
rawListeners(eventName: string | symbol): Function[]; | ||
emit(eventName: string | symbol, ...args: any[]): boolean; | ||
listenerCount(eventName: string | symbol, listener?: Function): number; | ||
prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this; | ||
prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this; | ||
eventNames(): Array<string | symbol>; | ||
@@ -361,0 +356,0 @@ } |
{ | ||
"name": "@openfeature/core", | ||
"version": "0.0.27", | ||
"version": "0.0.28", | ||
"description": "Shared OpenFeature JS components (server and web)", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
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
2027
199880