New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-native-flagsmith

Package Overview
Dependencies
Maintainers
1
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-flagsmith - npm Package Compare versions

Comparing version
9.2.0
to
9.2.1
+1
-1
package.json
{
"name": "react-native-flagsmith",
"version": "9.2.0",
"version": "9.2.1",
"description": "Feature flagging to support continuous development",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -52,3 +52,3 @@ import { EvaluationContext, IdentityEvaluationContext, TraitEvaluationContext } from "./evaluation-context";

api: string;
flags?: IFlags<F>;
flags?: IFlags<FKey<F>>;
evaluationContext?: EvaluationContext;

@@ -93,3 +93,3 @@ evaluationEvent?: Record<string, Record<string, number>> | null;

export type OnChange<F extends string = string> = (previousFlags: IFlags<F> | null, params: IRetrieveInfo, loadingState:LoadingState) => void
export type OnChange<F extends string = string> = (previousFlags: IFlags<FKey<F>> | null, params: IRetrieveInfo, loadingState:LoadingState) => void

@@ -101,3 +101,3 @@ export type ApplicationMetadata = {

export interface IInitConfig<F extends string = string, T extends string = string> {
export interface IInitConfig<F extends string | Record<string, any> = string, T extends string = string> {
AsyncStorage?: any;

@@ -109,3 +109,3 @@ api?: string;

datadogRum?: IDatadogRum;
defaultFlags?: IFlags<F>;
defaultFlags?: IFlags<FKey<F>>;
fetch?: any;

@@ -122,3 +122,3 @@ realtime?: boolean;

traits?: ITraits<T>;
onChange?: OnChange<F>;
onChange?: OnChange<FKey<F>>;
onError?: (err: Error) => void;

@@ -152,5 +152,6 @@ preventFetch?: boolean;

type FKey<F> = F extends string ? F : keyof F;
type FValue<F, K extends FKey<F>> = F extends string
? IFlagsmithValue
: F[K] | null;
type FValue<F, K extends FKey<F>> = F extends Record<string, any>
? F[K] | null
: IFlagsmithValue;
/**

@@ -177,3 +178,3 @@ * Example usage:

*/
init: (config: IInitConfig<F, T>) => Promise<void>;
init: (config: IInitConfig<FKey<F>, T>) => Promise<void>;
/**

@@ -199,3 +200,3 @@ * Set evaluation context. Refresh the flags.

*/
getAllFlags: () => IFlags<F>;
getAllFlags: () => IFlags<FKey<F>>;
/**

@@ -202,0 +203,0 @@ * Identify user, triggers a call to get flags if `flagsmith.init` has been called

@@ -52,3 +52,3 @@ import { EvaluationContext, IdentityEvaluationContext, TraitEvaluationContext } from "./evaluation-context";

api: string;
flags?: IFlags<F>;
flags?: IFlags<FKey<F>>;
evaluationContext?: EvaluationContext;

@@ -93,3 +93,3 @@ evaluationEvent?: Record<string, Record<string, number>> | null;

export type OnChange<F extends string = string> = (previousFlags: IFlags<F> | null, params: IRetrieveInfo, loadingState:LoadingState) => void
export type OnChange<F extends string = string> = (previousFlags: IFlags<FKey<F>> | null, params: IRetrieveInfo, loadingState:LoadingState) => void

@@ -101,3 +101,3 @@ export type ApplicationMetadata = {

export interface IInitConfig<F extends string = string, T extends string = string> {
export interface IInitConfig<F extends string | Record<string, any> = string, T extends string = string> {
AsyncStorage?: any;

@@ -109,3 +109,3 @@ api?: string;

datadogRum?: IDatadogRum;
defaultFlags?: IFlags<F>;
defaultFlags?: IFlags<FKey<F>>;
fetch?: any;

@@ -122,3 +122,3 @@ realtime?: boolean;

traits?: ITraits<T>;
onChange?: OnChange<F>;
onChange?: OnChange<FKey<F>>;
onError?: (err: Error) => void;

@@ -152,5 +152,6 @@ preventFetch?: boolean;

type FKey<F> = F extends string ? F : keyof F;
type FValue<F, K extends FKey<F>> = F extends string
? IFlagsmithValue
: F[K] | null;
type FValue<F, K extends FKey<F>> = F extends Record<string, any>
? F[K] | null
: IFlagsmithValue;
/**

@@ -177,3 +178,3 @@ * Example usage:

*/
init: (config: IInitConfig<F, T>) => Promise<void>;
init: (config: IInitConfig<FKey<F>, T>) => Promise<void>;
/**

@@ -199,3 +200,3 @@ * Set evaluation context. Refresh the flags.

*/
getAllFlags: () => IFlags<F>;
getAllFlags: () => IFlags<FKey<F>>;
/**

@@ -202,0 +203,0 @@ * Identify user, triggers a call to get flags if `flagsmith.init` has been called