Socket
Socket
Sign inDemoInstall

configcat-js-ssr

Package Overview
Dependencies
10
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.1 to 7.0.0

CHANGELOG.md

12

lib/Cache.d.ts

@@ -1,10 +0,6 @@

import type { ICache } from "configcat-common";
import { ProjectConfig } from "configcat-common";
export declare class LocalStorageCache implements ICache {
cache: {
[key: string]: ProjectConfig;
};
set(key: string, config: ProjectConfig): void;
get(key: string): ProjectConfig | null;
import type { IConfigCatCache } from "configcat-common";
export declare class LocalStorageCache implements IConfigCatCache {
set(key: string, value: string): void;
get(key: string): string | undefined;
}
//# sourceMappingURL=Cache.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LocalStorageCache = void 0;
var configcat_common_1 = require("configcat-common");
var LocalStorageCache = /** @class */ (function () {
function LocalStorageCache() {
this.cache = {};
}
LocalStorageCache.prototype.set = function (key, config) {
this.cache[key] = config;
LocalStorageCache.prototype.set = function (key, value) {
try {
localStorage.setItem(key, btoa(JSON.stringify(config)));
localStorage.setItem(key, btoa(value));
}

@@ -19,17 +16,6 @@ catch (ex) {

LocalStorageCache.prototype.get = function (key) {
var config = this.cache[key];
if (config) {
return config;
}
try {
var configString = localStorage.getItem(key);
if (configString) {
var config_1 = JSON.parse(atob(configString));
// JSON.parse creates a plain object instance, so we need to manually restore the prototype
// (so we don't run into "... is not a function" errors).
(Object.setPrototypeOf || (function (o, proto) { return o["__proto__"] = proto; }))(config_1, configcat_common_1.ProjectConfig.prototype);
if (config_1) {
this.cache[key] = config_1;
return config_1;
}
return atob(configString);
}

@@ -40,3 +26,2 @@ }

}
return null;
};

@@ -43,0 +28,0 @@ return LocalStorageCache;

@@ -1,10 +0,7 @@

import { ProjectConfig } from "configcat-common";
var LocalStorageCache = /** @class */ (function () {
function LocalStorageCache() {
this.cache = {};
}
LocalStorageCache.prototype.set = function (key, config) {
this.cache[key] = config;
LocalStorageCache.prototype.set = function (key, value) {
try {
localStorage.setItem(key, btoa(JSON.stringify(config)));
localStorage.setItem(key, btoa(value));
}

@@ -16,17 +13,6 @@ catch (ex) {

LocalStorageCache.prototype.get = function (key) {
var config = this.cache[key];
if (config) {
return config;
}
try {
var configString = localStorage.getItem(key);
if (configString) {
var config_1 = JSON.parse(atob(configString));
// JSON.parse creates a plain object instance, so we need to manually restore the prototype
// (so we don't run into "... is not a function" errors).
(Object.setPrototypeOf || (function (o, proto) { return o["__proto__"] = proto; }))(config_1, ProjectConfig.prototype);
if (config_1) {
this.cache[key] = config_1;
return config_1;
}
return atob(configString);
}

@@ -37,3 +23,2 @@ }

}
return null;
};

@@ -40,0 +25,0 @@ return LocalStorageCache;

@@ -0,3 +1,3 @@

import { ExternalConfigCache, FlagOverrides, MapOverrideDataSource, PollingMode } from "configcat-common";
import * as configcatcommon from "configcat-common";
import { FlagOverrides, MapOverrideDataSource, PollingMode } from "configcat-common";
import { LocalStorageCache } from "./Cache";

@@ -7,10 +7,10 @@ import { HttpConfigFetcher } from "./ConfigFetcher";

/**
* Returns an instance of ConfigCatClient for the specified SDK Key.
* Returns an instance of `ConfigCatClient` for the specified SDK Key.
* @remarks This method returns a single, shared instance per each distinct SDK Key.
* That is, a new client object is created only when there is none available for the specified SDK Key.
* Otherwise, the already created instance is returned (in which case the 'pollingMode' and 'options' arguments are ignored).
* Otherwise, the already created instance is returned (in which case the `pollingMode` and `options` arguments are ignored).
* So, please keep in mind that when you make multiple calls to this method using the same SDK Key, you may end up with multiple references to the same client object.
* @param sdkKey SDK Key to access configuration
* @param pollingMode The polling mode to use
* @param options Options for the specified polling mode
* @param sdkKey SDK Key to access the ConfigCat config.
* @param pollingMode The polling mode to use.
* @param options Options for the specified polling mode.
*/

@@ -20,9 +20,9 @@ export function getClient(sdkKey, pollingMode, options) {

configFetcher: new HttpConfigFetcher(),
cache: new LocalStorageCache(),
sdkType: "ConfigCat-JS-SSR",
sdkVersion: CONFIGCAT_SDK_VERSION
sdkVersion: CONFIGCAT_SDK_VERSION,
defaultCacheFactory: function (options) { return new ExternalConfigCache(new LocalStorageCache(), options.logger); }
});
}
/**
* Disposes all existing ConfigCatClient instances.
* Disposes all existing `ConfigCatClient` instances.
*/

@@ -33,55 +33,16 @@ export function disposeAllClients() {

/**
* Create an instance of ConfigCatClient and setup Auto polling with default options.
* @param {string} sdkkey - SDK Key to access your configuration.
* @param options - Options for Auto polling
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with auto polling for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.AutoPoll, options, ...)' format.
* Creates an instance of `ConfigCatConsoleLogger`.
* @param logLevel Log level (the minimum level to use for filtering log events).
*/
export function createClient(sdkkey, options) {
return createClientWithAutoPoll(sdkkey, options);
export function createConsoleLogger(logLevel) {
return configcatcommon.createConsoleLogger(logLevel);
}
/**
* Create an instance of ConfigCatClient and setup Auto polling.
* @param {string} sdkkey - SDK Key to access your configuration.
* @param options - Options for Auto polling
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with auto polling for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.AutoPoll, options, ...)' format.
* Creates an instance of `FlagOverrides` that uses a map data source.
* @param map The map that contains the overrides.
* @param behaviour The override behaviour.
* Specifies whether the local values should override the remote values
* or local values should only be used when a remote value doesn't exist
* or the local values should be used only.
*/
export function createClientWithAutoPoll(sdkKey, options) {
return configcatcommon.createClientWithAutoPoll(sdkKey, {
configFetcher: new HttpConfigFetcher(),
cache: new LocalStorageCache(),
sdkType: "ConfigCat-JS-SSR",
sdkVersion: CONFIGCAT_SDK_VERSION
}, options);
}
/**
* Create an instance of ConfigCatClient and setup Manual polling.
* @param {string} sdkKey - SDK Key to access your configuration.
* @param options - Options for Manual polling
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with manual polling for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.ManualPoll, options, ...)' format.
*/
export function createClientWithManualPoll(sdkKey, options) {
return configcatcommon.createClientWithManualPoll(sdkKey, {
configFetcher: new HttpConfigFetcher(),
cache: new LocalStorageCache(),
sdkType: "ConfigCat-JS-SSR",
sdkVersion: CONFIGCAT_SDK_VERSION
}, options);
}
/**
* Create an instance of ConfigCatClient and setup Lazy loading.
* @param {string} sdkKey - SDK Key to access your configuration.
* @param options - Options for Lazy loading
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with lazy loading for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.LazyLoad, options, ...)' format.
*/
export function createClientWithLazyLoad(sdkKey, options) {
return configcatcommon.createClientWithLazyLoad(sdkKey, {
configFetcher: new HttpConfigFetcher(),
cache: new LocalStorageCache(),
sdkType: "ConfigCat-JS-SSR",
sdkVersion: CONFIGCAT_SDK_VERSION
}, options);
}
export function createConsoleLogger(logLevel) {
return configcatcommon.createConsoleLogger(logLevel);
}
export function createFlagOverridesFromMap(map, behaviour) {

@@ -95,6 +56,7 @@ return new FlagOverrides(new MapOverrideDataSource(map), behaviour);

export { LogLevel } from "configcat-common";
export { ProjectConfig, RolloutRule, RolloutPercentageItem, Setting } from "configcat-common";
export { FormattableLogMessage } from "configcat-common";
export { SettingType, Comparator } from "configcat-common";
export { SettingKeyValue } from "configcat-common";
export { User } from "configcat-common";
export { FlagOverrides, MapOverrideDataSource, OverrideBehaviour } from "configcat-common";
export { OverrideBehaviour } from "configcat-common";
export { RefreshResult } from "configcat-common";

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

export default "6.0.1";
export default "7.0.0";

@@ -1,54 +0,41 @@

import type { IAutoPollOptions, IConfigCatClient, IConfigCatLogger, ILazyLoadingOptions, IManualPollOptions, LogLevel } from "configcat-common";
import type { IAutoPollOptions, IConfigCatClient, IConfigCatLogger, ILazyLoadingOptions, IManualPollOptions, LogLevel, OverrideBehaviour, SettingValue } from "configcat-common";
import { FlagOverrides, PollingMode } from "configcat-common";
/**
* Returns an instance of ConfigCatClient for the specified SDK Key.
* Returns an instance of `ConfigCatClient` for the specified SDK Key.
* @remarks This method returns a single, shared instance per each distinct SDK Key.
* That is, a new client object is created only when there is none available for the specified SDK Key.
* Otherwise, the already created instance is returned (in which case the 'pollingMode' and 'options' arguments are ignored).
* Otherwise, the already created instance is returned (in which case the `pollingMode` and `options` arguments are ignored).
* So, please keep in mind that when you make multiple calls to this method using the same SDK Key, you may end up with multiple references to the same client object.
* @param sdkKey SDK Key to access configuration
* @param pollingMode The polling mode to use
* @param options Options for the specified polling mode
* @param sdkKey SDK Key to access the ConfigCat config.
* @param pollingMode The polling mode to use.
* @param options Options for the specified polling mode.
*/
export declare function getClient<TMode extends PollingMode | undefined>(sdkKey: string, pollingMode?: TMode, options?: OptionsForPollingMode<TMode>): IConfigCatClient;
/**
* Disposes all existing ConfigCatClient instances.
* Disposes all existing `ConfigCatClient` instances.
*/
export declare function disposeAllClients(): void;
/**
* Create an instance of ConfigCatClient and setup Auto polling with default options.
* @param {string} sdkkey - SDK Key to access your configuration.
* @param options - Options for Auto polling
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with auto polling for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.AutoPoll, options, ...)' format.
* Creates an instance of `ConfigCatConsoleLogger`.
* @param logLevel Log level (the minimum level to use for filtering log events).
*/
export declare function createClient(sdkkey: string, options?: IJSAutoPollOptions): IConfigCatClient;
export declare function createConsoleLogger(logLevel: LogLevel): IConfigCatLogger;
/**
* Create an instance of ConfigCatClient and setup Auto polling.
* @param {string} sdkkey - SDK Key to access your configuration.
* @param options - Options for Auto polling
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with auto polling for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.AutoPoll, options, ...)' format.
* Creates an instance of `FlagOverrides` that uses a map data source.
* @param map The map that contains the overrides.
* @param behaviour The override behaviour.
* Specifies whether the local values should override the remote values
* or local values should only be used when a remote value doesn't exist
* or the local values should be used only.
*/
export declare function createClientWithAutoPoll(sdkKey: string, options?: IJSAutoPollOptions): IConfigCatClient;
/**
* Create an instance of ConfigCatClient and setup Manual polling.
* @param {string} sdkKey - SDK Key to access your configuration.
* @param options - Options for Manual polling
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with manual polling for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.ManualPoll, options, ...)' format.
*/
export declare function createClientWithManualPoll(sdkKey: string, options?: IJSManualPollOptions): IConfigCatClient;
/**
* Create an instance of ConfigCatClient and setup Lazy loading.
* @param {string} sdkKey - SDK Key to access your configuration.
* @param options - Options for Lazy loading
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with lazy loading for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.LazyLoad, options, ...)' format.
*/
export declare function createClientWithLazyLoad(sdkKey: string, options?: IJSLazyLoadingOptions): IConfigCatClient;
export declare function createConsoleLogger(logLevel: LogLevel): IConfigCatLogger;
export declare function createFlagOverridesFromMap(map: {
[name: string]: any;
}, behaviour: number): FlagOverrides;
[name: string]: NonNullable<SettingValue>;
}, behaviour: OverrideBehaviour): FlagOverrides;
/** Options used to configure the ConfigCat SDK in the case of Auto Polling mode. */
export interface IJSAutoPollOptions extends IAutoPollOptions {
}
/** Options used to configure the ConfigCat SDK in the case of Lazy Loading mode. */
export interface IJSLazyLoadingOptions extends ILazyLoadingOptions {
}
/** Options used to configure the ConfigCat SDK in the case of Manual Polling mode. */
export interface IJSManualPollOptions extends IManualPollOptions {

@@ -62,13 +49,16 @@ }

export type { IConfigCatLogger } from "configcat-common";
export type { LogEventId, LogMessage } from "configcat-common";
export { LogLevel } from "configcat-common";
export type { ICache } from "configcat-common";
export { ProjectConfig, RolloutRule, RolloutPercentageItem, Setting } from "configcat-common";
export { FormattableLogMessage } from "configcat-common";
export type { IConfigCatCache } from "configcat-common";
export type { IConfig, ISetting, ITargetingRule, IPercentageOption, SettingValue, VariationIdValue } from "configcat-common";
export { SettingType, Comparator } from "configcat-common";
export type { IConfigCatClient } from "configcat-common";
export { SettingKeyValue } from "configcat-common";
export type { IEvaluationDetails, SettingTypeOf, SettingValue, VariationIdTypeOf, VariationIdValue } from "configcat-common";
export type { IEvaluationDetails, SettingTypeOf } from "configcat-common";
export { User } from "configcat-common";
export type { IOverrideDataSource } from "configcat-common";
export { FlagOverrides, MapOverrideDataSource, OverrideBehaviour } from "configcat-common";
export type { FlagOverrides } from "configcat-common";
export { OverrideBehaviour } from "configcat-common";
export { RefreshResult } from "configcat-common";
export type { IProvidesHooks, HookEvents } from "configcat-common";
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RefreshResult = exports.OverrideBehaviour = exports.MapOverrideDataSource = exports.FlagOverrides = exports.User = exports.SettingKeyValue = exports.Setting = exports.RolloutPercentageItem = exports.RolloutRule = exports.ProjectConfig = exports.LogLevel = exports.DataGovernance = exports.PollingMode = exports.createFlagOverridesFromMap = exports.createConsoleLogger = exports.createClientWithLazyLoad = exports.createClientWithManualPoll = exports.createClientWithAutoPoll = exports.createClient = exports.disposeAllClients = exports.getClient = void 0;
exports.RefreshResult = exports.OverrideBehaviour = exports.User = exports.SettingKeyValue = exports.Comparator = exports.SettingType = exports.FormattableLogMessage = exports.LogLevel = exports.DataGovernance = exports.PollingMode = exports.createFlagOverridesFromMap = exports.createConsoleLogger = exports.disposeAllClients = exports.getClient = void 0;
var configcat_common_1 = require("configcat-common");
var configcatcommon = require("configcat-common");
var configcat_common_1 = require("configcat-common");
var Cache_1 = require("./Cache");

@@ -10,10 +10,10 @@ var ConfigFetcher_1 = require("./ConfigFetcher");

/**
* Returns an instance of ConfigCatClient for the specified SDK Key.
* Returns an instance of `ConfigCatClient` for the specified SDK Key.
* @remarks This method returns a single, shared instance per each distinct SDK Key.
* That is, a new client object is created only when there is none available for the specified SDK Key.
* Otherwise, the already created instance is returned (in which case the 'pollingMode' and 'options' arguments are ignored).
* Otherwise, the already created instance is returned (in which case the `pollingMode` and `options` arguments are ignored).
* So, please keep in mind that when you make multiple calls to this method using the same SDK Key, you may end up with multiple references to the same client object.
* @param sdkKey SDK Key to access configuration
* @param pollingMode The polling mode to use
* @param options Options for the specified polling mode
* @param sdkKey SDK Key to access the ConfigCat config.
* @param pollingMode The polling mode to use.
* @param options Options for the specified polling mode.
*/

@@ -23,5 +23,5 @@ function getClient(sdkKey, pollingMode, options) {

configFetcher: new ConfigFetcher_1.HttpConfigFetcher(),
cache: new Cache_1.LocalStorageCache(),
sdkType: "ConfigCat-JS-SSR",
sdkVersion: Version_1.default
sdkVersion: Version_1.default,
defaultCacheFactory: function (options) { return new configcat_common_1.ExternalConfigCache(new Cache_1.LocalStorageCache(), options.logger); }
});

@@ -31,3 +31,3 @@ }

/**
* Disposes all existing ConfigCatClient instances.
* Disposes all existing `ConfigCatClient` instances.
*/

@@ -39,56 +39,5 @@ function disposeAllClients() {

/**
* Create an instance of ConfigCatClient and setup Auto polling with default options.
* @param {string} sdkkey - SDK Key to access your configuration.
* @param options - Options for Auto polling
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with auto polling for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.AutoPoll, options, ...)' format.
* Creates an instance of `ConfigCatConsoleLogger`.
* @param logLevel Log level (the minimum level to use for filtering log events).
*/
function createClient(sdkkey, options) {
return createClientWithAutoPoll(sdkkey, options);
}
exports.createClient = createClient;
/**
* Create an instance of ConfigCatClient and setup Auto polling.
* @param {string} sdkkey - SDK Key to access your configuration.
* @param options - Options for Auto polling
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with auto polling for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.AutoPoll, options, ...)' format.
*/
function createClientWithAutoPoll(sdkKey, options) {
return configcatcommon.createClientWithAutoPoll(sdkKey, {
configFetcher: new ConfigFetcher_1.HttpConfigFetcher(),
cache: new Cache_1.LocalStorageCache(),
sdkType: "ConfigCat-JS-SSR",
sdkVersion: Version_1.default
}, options);
}
exports.createClientWithAutoPoll = createClientWithAutoPoll;
/**
* Create an instance of ConfigCatClient and setup Manual polling.
* @param {string} sdkKey - SDK Key to access your configuration.
* @param options - Options for Manual polling
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with manual polling for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.ManualPoll, options, ...)' format.
*/
function createClientWithManualPoll(sdkKey, options) {
return configcatcommon.createClientWithManualPoll(sdkKey, {
configFetcher: new ConfigFetcher_1.HttpConfigFetcher(),
cache: new Cache_1.LocalStorageCache(),
sdkType: "ConfigCat-JS-SSR",
sdkVersion: Version_1.default
}, options);
}
exports.createClientWithManualPoll = createClientWithManualPoll;
/**
* Create an instance of ConfigCatClient and setup Lazy loading.
* @param {string} sdkKey - SDK Key to access your configuration.
* @param options - Options for Lazy loading
* @deprecated This function is obsolete and will be removed from the public API in a future major version. To obtain a ConfigCatClient instance with lazy loading for a specific SDK Key, please use the 'getClient(sdkKey, PollingMode.LazyLoad, options, ...)' format.
*/
function createClientWithLazyLoad(sdkKey, options) {
return configcatcommon.createClientWithLazyLoad(sdkKey, {
configFetcher: new ConfigFetcher_1.HttpConfigFetcher(),
cache: new Cache_1.LocalStorageCache(),
sdkType: "ConfigCat-JS-SSR",
sdkVersion: Version_1.default
}, options);
}
exports.createClientWithLazyLoad = createClientWithLazyLoad;
function createConsoleLogger(logLevel) {

@@ -98,2 +47,10 @@ return configcatcommon.createConsoleLogger(logLevel);

exports.createConsoleLogger = createConsoleLogger;
/**
* Creates an instance of `FlagOverrides` that uses a map data source.
* @param map The map that contains the overrides.
* @param behaviour The override behaviour.
* Specifies whether the local values should override the remote values
* or local values should only be used when a remote value doesn't exist
* or the local values should be used only.
*/
function createFlagOverridesFromMap(map, behaviour) {

@@ -112,15 +69,13 @@ return new configcat_common_1.FlagOverrides(new configcat_common_1.MapOverrideDataSource(map), behaviour);

var configcat_common_5 = require("configcat-common");
Object.defineProperty(exports, "ProjectConfig", { enumerable: true, get: function () { return configcat_common_5.ProjectConfig; } });
Object.defineProperty(exports, "RolloutRule", { enumerable: true, get: function () { return configcat_common_5.RolloutRule; } });
Object.defineProperty(exports, "RolloutPercentageItem", { enumerable: true, get: function () { return configcat_common_5.RolloutPercentageItem; } });
Object.defineProperty(exports, "Setting", { enumerable: true, get: function () { return configcat_common_5.Setting; } });
Object.defineProperty(exports, "FormattableLogMessage", { enumerable: true, get: function () { return configcat_common_5.FormattableLogMessage; } });
var configcat_common_6 = require("configcat-common");
Object.defineProperty(exports, "SettingKeyValue", { enumerable: true, get: function () { return configcat_common_6.SettingKeyValue; } });
Object.defineProperty(exports, "SettingType", { enumerable: true, get: function () { return configcat_common_6.SettingType; } });
Object.defineProperty(exports, "Comparator", { enumerable: true, get: function () { return configcat_common_6.Comparator; } });
var configcat_common_7 = require("configcat-common");
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return configcat_common_7.User; } });
Object.defineProperty(exports, "SettingKeyValue", { enumerable: true, get: function () { return configcat_common_7.SettingKeyValue; } });
var configcat_common_8 = require("configcat-common");
Object.defineProperty(exports, "FlagOverrides", { enumerable: true, get: function () { return configcat_common_8.FlagOverrides; } });
Object.defineProperty(exports, "MapOverrideDataSource", { enumerable: true, get: function () { return configcat_common_8.MapOverrideDataSource; } });
Object.defineProperty(exports, "OverrideBehaviour", { enumerable: true, get: function () { return configcat_common_8.OverrideBehaviour; } });
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return configcat_common_8.User; } });
var configcat_common_9 = require("configcat-common");
Object.defineProperty(exports, "RefreshResult", { enumerable: true, get: function () { return configcat_common_9.RefreshResult; } });
Object.defineProperty(exports, "OverrideBehaviour", { enumerable: true, get: function () { return configcat_common_9.OverrideBehaviour; } });
var configcat_common_10 = require("configcat-common");
Object.defineProperty(exports, "RefreshResult", { enumerable: true, get: function () { return configcat_common_10.RefreshResult; } });
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = "6.0.1";
exports.default = "7.0.0";
{
"name": "configcat-js-ssr",
"version": "6.0.1",
"version": "7.0.0",
"description": "ConfigCat Feature Flags for Server Side Rendered apps like NuxtJS. Official ConfigCat SDK for Server Side Rendered to easily access feature flags.",

@@ -49,3 +49,3 @@ "main": "lib/index.js",

"axios": "^0.27.2",
"configcat-common": "^7.0.1",
"configcat-common": "^8.0.0",
"tslib": "^2.4.1"

@@ -52,0 +52,0 @@ },

@@ -36,4 +36,6 @@ # ConfigCat SDK for JavaScript Server Side Rendered applications

```
> We strongly recommend using the *ConfigCat Client* as a Singleton object in your application.
> You can acquire singleton client instances for your SDK keys using the `getClient("<sdkKey>")` factory function.
(However, please keep in mind that subsequent calls to `getClient()` with the *same SDK Key* return a *shared* client instance, which was set up by the first call.)
### 4. Get your setting value:

@@ -40,0 +42,0 @@ The async/await way:

Sorry, the diff of this file is too big to display

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc