New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@openfeature/flagd-web-provider

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfeature/flagd-web-provider - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

5

index.js
import { createConnectTransport, createPromiseClient, createCallbackClient } from '@bufbuild/connect-web';
import { proto3, Struct, MethodKind } from '@bufbuild/protobuf';
import { FlagNotFoundError, TypeMismatchError, StandardResolutionReasons, OpenFeature, ProviderEvents } from '@openfeature/web-sdk';
import { EventEmitter } from 'events';
import { OpenFeatureEventEmitter, FlagNotFoundError, TypeMismatchError, StandardResolutionReasons, OpenFeature, ProviderEvents } from '@openfeature/web-sdk';

@@ -332,3 +331,3 @@ /******************************************************************************

this._flags = {};
this.events = new EventEmitter();
this.events = new OpenFeatureEventEmitter();
const { host, port, tls, maxRetries, maxDelay, pathPrefix } = getOptions(options);

@@ -335,0 +334,0 @@ const transport = createConnectTransport({

{
"name": "@openfeature/flagd-web-provider",
"version": "0.3.2",
"version": "0.3.3",
"type": "module",

@@ -24,5 +24,4 @@ "scripts": {

"@bufbuild/connect-web": "0.8.4",
"@bufbuild/protobuf": "1.1.1",
"events": "3.3.0"
"@bufbuild/protobuf": "1.2.0"
}
}
import { CallbackClient, PromiseClient } from '@bufbuild/connect-web';
import { EvaluationContext, JsonValue, Logger, Provider, ResolutionDetails } from '@openfeature/web-sdk';
import { EventEmitter } from 'events';
import { EvaluationContext, JsonValue, Logger, OpenFeatureEventEmitter, Provider, ResolutionDetails } from '@openfeature/web-sdk';
import { Service } from '../proto/ts/schema/v1/schema_connectweb';

@@ -21,3 +20,3 @@ import { FlagdProviderOptions } from './options';

constructor(options: FlagdProviderOptions, logger?: Logger, promiseClient?: PromiseClient<typeof Service>, callbackClient?: CallbackClient<typeof Service>);
events: EventEmitter;
events: OpenFeatureEventEmitter;
onContextChange(oldContext: EvaluationContext, newContext: EvaluationContext): Promise<void>;

@@ -24,0 +23,0 @@ initialize(context: EvaluationContext): Promise<void>;

index.cjs

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