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

@statsig/client-core

Package Overview
Dependencies
Maintainers
4
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@statsig/client-core - npm Package Compare versions

Comparing version 2.2.0-beta.1 to 2.2.0-beta.2

2

package.json
{
"name": "@statsig/client-core",
"version": "2.2.0-beta.1",
"version": "2.2.0-beta.2",
"dependencies": {},

@@ -5,0 +5,0 @@ "type": "commonjs",

@@ -31,2 +31,3 @@ "use strict";

SessionID_1.StatsigSession.overrideInitialSessionID(options.initialSessionID, sdkKey);
(options === null || options === void 0 ? void 0 : options.storageProvider) && StorageProvider_1.Storage._setProvider(options.storageProvider);
this._sdkKey = sdkKey;

@@ -33,0 +34,0 @@ this._options = options !== null && options !== void 0 ? options : {};

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

export declare const SDK_VERSION = "2.2.0-beta.1";
export declare const SDK_VERSION = "2.2.0-beta.2";
export type StatsigMetadata = {

@@ -3,0 +3,0 @@ readonly [key: string]: string | undefined;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StatsigMetadataProvider = exports.SDK_VERSION = void 0;
exports.SDK_VERSION = '2.2.0-beta.1';
exports.SDK_VERSION = '2.2.0-beta.2';
let metadata = {

@@ -6,0 +6,0 @@ sdkVersion: exports.SDK_VERSION,

export type StorageProvider = {
_isProviderReady?: Promise<void>;
_isProviderReady: () => Promise<void> | null;
_getProviderName: () => string;

@@ -4,0 +4,0 @@ _getItem: (key: string) => string | null;

@@ -8,2 +8,3 @@ "use strict";

const _inMemoryProvider = {
_isProviderReady: () => null,
_getProviderName: () => 'InMemory',

@@ -26,2 +27,3 @@ _getItem: (key) => inMemoryStore[key] ? inMemoryStore[key] : null,

_localStorageProvider = {
_isProviderReady: () => null,
_getProviderName: () => 'LocalStorage',

@@ -53,2 +55,3 @@ _getItem: (key) => win.localStorage.getItem(key),

exports.Storage = {
_isProviderReady: () => { var _a, _b; return (_b = (_a = _current._isProviderReady) === null || _a === void 0 ? void 0 : _a.call(_current)) !== null && _b !== void 0 ? _b : null; },
_getProviderName: () => _current._getProviderName(),

@@ -55,0 +58,0 @@ _getItem: (key) => _inMemoryBreaker(() => _current._getItem(key)),

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