@statsig/client-core
Advanced tools
Comparing version 0.0.1-beta.20 to 0.0.1-beta.21
{ | ||
"name": "@statsig/client-core", | ||
"version": "0.0.1-beta.20", | ||
"version": "0.0.1-beta.21", | ||
"dependencies": {}, | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
@@ -0,4 +1,5 @@ | ||
import { StatsigClientInterface } from "./ClientInterfaces"; | ||
export type StatsigGlobal = { | ||
[key: string]: unknown; | ||
instances?: Set<unknown>; | ||
instances?: Record<string, StatsigClientInterface>; | ||
}; | ||
@@ -5,0 +6,0 @@ declare global { |
"use strict"; | ||
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ | ||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */ | ||
var _a, _b, _c; | ||
@@ -3,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -24,4 +24,4 @@ "use strict"; | ||
__STATSIG__ = __STATSIG__ !== null && __STATSIG__ !== void 0 ? __STATSIG__ : {}; | ||
const instances = (_c = __STATSIG__.instances) !== null && _c !== void 0 ? _c : new Set(); | ||
instances.add(this); | ||
const instances = (_c = __STATSIG__.instances) !== null && _c !== void 0 ? _c : {}; | ||
instances[_sdkKey] = this; | ||
__STATSIG__.instances = instances; | ||
@@ -28,0 +28,0 @@ this.dataAdapter = adapter; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StatsigMetadataProvider = void 0; | ||
const SDK_VERSION = '0.0.1-beta.20'; | ||
const SDK_VERSION = '0.0.1-beta.21'; | ||
let metadata = { | ||
@@ -6,0 +6,0 @@ sdkVersion: SDK_VERSION, |
@@ -5,2 +5,6 @@ "use strict"; | ||
function getUUID() { | ||
if (typeof crypto !== 'undefined' && | ||
typeof crypto.randomUUID === 'function') { | ||
return crypto.randomUUID(); | ||
} | ||
let d = new Date().getTime(); | ||
@@ -7,0 +11,0 @@ let d2 = (typeof performance !== 'undefined' && |
90231
2164