Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@openfeature/core

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfeature/core - npm Package Compare versions

Comparing version 0.0.27 to 0.0.28

6

dist/cjs/index.js

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

7

dist/types.d.ts

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

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