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

@eppo/js-client-sdk-common

Package Overview
Dependencies
Maintainers
8
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eppo/js-client-sdk-common - npm Package Compare versions

Comparing version 1.8.1 to 2.0.0

4

dist/assignment-cache.d.ts

@@ -27,3 +27,3 @@ import { LRUCache } from 'lru-cache';

*/
export declare class NonExpiringAssignmentCache extends AssignmentCache<Map<string, string>> {
export declare class NonExpiringInMemoryAssignmentCache extends AssignmentCache<Map<string, string>> {
constructor();

@@ -40,5 +40,5 @@ }

*/
export declare class LRUAssignmentCache extends AssignmentCache<LRUCache<string, string>> {
export declare class LRUInMemoryAssignmentCache extends AssignmentCache<LRUCache<string, string>> {
constructor(maxSize: number);
}
//# sourceMappingURL=assignment-cache.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LRUAssignmentCache = exports.NonExpiringAssignmentCache = exports.AssignmentCache = void 0;
exports.LRUInMemoryAssignmentCache = exports.NonExpiringInMemoryAssignmentCache = exports.AssignmentCache = void 0;
const lru_cache_1 = require("lru-cache");

@@ -36,3 +36,3 @@ class AssignmentCache {

*/
class NonExpiringAssignmentCache extends AssignmentCache {
class NonExpiringInMemoryAssignmentCache extends AssignmentCache {
constructor() {

@@ -42,3 +42,3 @@ super(new Map());

}
exports.NonExpiringAssignmentCache = NonExpiringAssignmentCache;
exports.NonExpiringInMemoryAssignmentCache = NonExpiringInMemoryAssignmentCache;
/**

@@ -53,3 +53,3 @@ * A cache that uses the LRU algorithm to evict the least recently used items.

*/
class LRUAssignmentCache extends AssignmentCache {
class LRUInMemoryAssignmentCache extends AssignmentCache {
constructor(maxSize) {

@@ -59,3 +59,3 @@ super(new lru_cache_1.LRUCache({ max: maxSize }));

}
exports.LRUAssignmentCache = LRUAssignmentCache;
exports.LRUInMemoryAssignmentCache = LRUInMemoryAssignmentCache;
//# sourceMappingURL=assignment-cache.js.map

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

import { AssignmentCache, Cacheable } from '../assignment-cache';
import { IAssignmentHooks } from '../assignment-hooks';

@@ -59,4 +60,5 @@ import { IAssignmentLogger } from '../assignment-logger';

disableAssignmentCache(): void;
useNonExpiringAssignmentCache(): void;
useLRUAssignmentCache(maxSize: number): void;
useNonExpiringInMemoryAssignmentCache(): void;
useLRUInMemoryAssignmentCache(maxSize: number): void;
useCustomAssignmentCache(cache: AssignmentCache<Cacheable>): void;
setIsGracefulFailureMode(gracefulFailureMode: boolean): void;

@@ -63,0 +65,0 @@ private flushQueuedEvents;

@@ -180,8 +180,11 @@ "use strict";

}
useNonExpiringAssignmentCache() {
this.assignmentCache = new assignment_cache_1.NonExpiringAssignmentCache();
useNonExpiringInMemoryAssignmentCache() {
this.assignmentCache = new assignment_cache_1.NonExpiringInMemoryAssignmentCache();
}
useLRUAssignmentCache(maxSize) {
this.assignmentCache = new assignment_cache_1.LRUAssignmentCache(maxSize);
useLRUInMemoryAssignmentCache(maxSize) {
this.assignmentCache = new assignment_cache_1.LRUInMemoryAssignmentCache(maxSize);
}
useCustomAssignmentCache(cache) {
this.assignmentCache = cache;
}
setIsGracefulFailureMode(gracefulFailureMode) {

@@ -188,0 +191,0 @@ this.isGracefulFailureMode = gracefulFailureMode;

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

import { AssignmentCache } from './assignment-cache';
import { IAssignmentHooks } from './assignment-hooks';

@@ -9,3 +10,3 @@ import { IAssignmentLogger, IAssignmentEvent } from './assignment-logger';

import * as validation from './validation';
export { IAssignmentHooks, IAssignmentLogger, IAssignmentEvent, EppoClient, IEppoClient, constants, ExperimentConfigurationRequestor, HttpClient, validation, IConfigurationStore, };
export { IAssignmentHooks, IAssignmentLogger, IAssignmentEvent, EppoClient, IEppoClient, constants, ExperimentConfigurationRequestor, HttpClient, validation, IConfigurationStore, AssignmentCache, };
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validation = exports.HttpClient = exports.ExperimentConfigurationRequestor = exports.constants = exports.EppoClient = void 0;
exports.AssignmentCache = exports.validation = exports.HttpClient = exports.ExperimentConfigurationRequestor = exports.constants = exports.EppoClient = void 0;
const assignment_cache_1 = require("./assignment-cache");
Object.defineProperty(exports, "AssignmentCache", { enumerable: true, get: function () { return assignment_cache_1.AssignmentCache; } });
const eppo_client_1 = require("./client/eppo-client");

@@ -5,0 +7,0 @@ exports.EppoClient = eppo_client_1.default;

{
"name": "@eppo/js-client-sdk-common",
"version": "1.8.1",
"version": "2.0.0",
"description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc