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

@devcycle/nodejs-server-sdk

Package Overview
Dependencies
Maintainers
6
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devcycle/nodejs-server-sdk - npm Package Compare versions

Comparing version 1.33.0 to 1.33.1

4

package.json
{
"name": "@devcycle/nodejs-server-sdk",
"version": "1.33.0",
"version": "1.33.1",
"description": "The DevCycle NodeJS Server SDK used for feature management.",

@@ -24,3 +24,3 @@ "license": "MIT",

"@devcycle/bucketing-assembly-script": "^1.25.0",
"@devcycle/js-cloud-server-sdk": "^1.15.0",
"@devcycle/js-cloud-server-sdk": "^1.15.1",
"@devcycle/types": "^1.16.0",

@@ -27,0 +27,0 @@ "cross-fetch": "^4.0.0",

@@ -1,2 +0,2 @@

import { BucketedUserConfig, DevCycleServerSDKOptions, VariableTypeAlias } from '@devcycle/types';
import { BucketedUserConfig, DevCycleServerSDKOptions, VariableTypeAlias, type VariableValue } from '@devcycle/types';
import { DevCycleUser, DVCVariable, DVCVariableValue, DVCVariableSet, DVCFeatureSet, DevCycleEvent } from '@devcycle/js-cloud-server-sdk';

@@ -6,3 +6,6 @@ import { DevCycleOptionsLocalEnabled } from './index';

type DevCycleProvider = InstanceType<DevCycleProviderConstructor>;
export declare class DevCycleClient {
export interface VariableDefinitions {
[key: string]: VariableValue;
}
export declare class DevCycleClient<Variables extends VariableDefinitions = VariableDefinitions> {
private clientUUID;

@@ -33,5 +36,5 @@ private hostname;

*/
onClientInitialized(onInitialized?: (err?: Error) => void): Promise<DevCycleClient>;
variable<T extends DVCVariableValue>(user: DevCycleUser, key: string, defaultValue: T): DVCVariable<T>;
variableValue<T extends DVCVariableValue>(user: DevCycleUser, key: string, defaultValue: T): VariableTypeAlias<T>;
onClientInitialized(onInitialized?: (err?: Error) => void): Promise<DevCycleClient<Variables>>;
variable<K extends string & keyof Variables, T extends DVCVariableValue & Variables[K]>(user: DevCycleUser, key: K, defaultValue: T): DVCVariable<T>;
variableValue<K extends string & keyof Variables, T extends DVCVariableValue & Variables[K]>(user: DevCycleUser, key: K, defaultValue: T): VariableTypeAlias<T>;
allVariables(user: DevCycleUser): DVCVariableSet;

@@ -38,0 +41,0 @@ allFeatures(user: DevCycleUser): DVCFeatureSet;

import { DevCycleClient } from './client';
import { DevCycleUser, DevCycleCloudClient as InternalDevCycleCloudClient, dvcDefaultLogger, DevCycleEvent, DVCVariableValue, JSON, DVCJSON, DVCCustomDataJSON, DVCVariable, DVCVariableSet, DVCVariableInterface, DVCFeature, DVCFeatureSet, DevCyclePlatformDetails } from '@devcycle/js-cloud-server-sdk';
import { VariableDefinitions } from '@devcycle/js-client-sdk';
import { DevCycleServerSDKOptions } from '@devcycle/types';
type DevCycleProviderConstructor = typeof import('./open-feature/DevCycleProvider').DevCycleProvider;
type DevCycleProvider = InstanceType<DevCycleProviderConstructor>;
declare class DevCycleCloudClient extends InternalDevCycleCloudClient {
declare class DevCycleCloudClient<Variables extends VariableDefinitions = VariableDefinitions> extends InternalDevCycleCloudClient {
private openFeatureProvider;

@@ -46,5 +47,5 @@ constructor(sdkKey: string, options: DevCycleServerSDKOptions, platformDetails: DevCyclePlatformDetails);

};
export declare function initializeDevCycle(sdkKey: string, options?: DevCycleOptionsLocalEnabled): DevCycleClient;
export declare function initializeDevCycle(sdkKey: string, options: DevCycleOptionsCloudEnabled): DevCycleCloudClient;
export declare function initializeDevCycle(sdkKey: string, options?: DevCycleServerSDKOptions): DevCycleClient | DevCycleCloudClient;
export declare function initializeDevCycle<Variables extends VariableDefinitions = VariableDefinitions>(sdkKey: string, options?: DevCycleOptionsLocalEnabled): DevCycleClient<Variables>;
export declare function initializeDevCycle<Variables extends VariableDefinitions = VariableDefinitions>(sdkKey: string, options: DevCycleOptionsCloudEnabled): DevCycleCloudClient<Variables>;
export declare function initializeDevCycle<Variables extends VariableDefinitions = VariableDefinitions>(sdkKey: string, options?: DevCycleServerSDKOptions): DevCycleClient<Variables> | DevCycleCloudClient<Variables>;
/**

@@ -51,0 +52,0 @@ * @deprecated Use initializeDevCycle instead

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