Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@statsig/client-core

Package Overview
Dependencies
Maintainers
12
Versions
193
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
3.33.0
to
3.33.1
+1
-1
package.json
{
"name": "@statsig/client-core",
"version": "3.33.0",
"version": "3.33.1",
"license": "ISC",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/statsig-io/js-client-monorepo",

@@ -77,3 +77,3 @@ "use strict";

}
this._currentFlushPromise = this._executeFlush(FlushTypes_1.FlushType.Manual).finally(() => {
this._currentFlushPromise = this._executeFlush(FlushTypes_1.FlushTypeValues.Manual).finally(() => {
this._currentFlushPromise = null;

@@ -92,3 +92,3 @@ this._scheduleNextFlush();

}
this._currentFlushPromise = this._executeFlush(FlushTypes_1.FlushType.Shutdown)
this._currentFlushPromise = this._executeFlush(FlushTypes_1.FlushTypeValues.Shutdown)
.catch((error) => {

@@ -150,6 +150,6 @@ Log_1.Log.error(`Error during shutdown flush: ${error}`);

if (shouldFlushBySize) {
flushType = FlushTypes_1.FlushType.ScheduledFullBatch;
flushType = FlushTypes_1.FlushTypeValues.ScheduledFullBatch;
}
else {
flushType = FlushTypes_1.FlushType.ScheduledMaxTime;
flushType = FlushTypes_1.FlushTypeValues.ScheduledMaxTime;
}

@@ -186,3 +186,3 @@ this._currentFlushPromise = this._processNextBatch(flushType)

return __awaiter(this, void 0, void 0, function* () {
const success = yield this._processNextBatch(FlushTypes_1.FlushType.Limit);
const success = yield this._processNextBatch(FlushTypes_1.FlushTypeValues.Limit);
if (!success) {

@@ -193,3 +193,3 @@ return;

this.containsAtLeastOneFullBatch()) {
const success = yield this._processNextBatch(FlushTypes_1.FlushType.Limit);
const success = yield this._processNextBatch(FlushTypes_1.FlushTypeValues.Limit);
if (!success) {

@@ -310,3 +310,3 @@ break;

_handleFailure(batch, flushType, statusCode, failurePath, failureErrorMessage, failureDiagnosticBucket, failureDiagnosticMetadata) {
if (flushType === FlushTypes_1.FlushType.Shutdown) {
if (flushType === FlushTypes_1.FlushTypeValues.Shutdown) {
Log_1.Log.warn(`${flushType} flush failed during shutdown. ` +

@@ -313,0 +313,0 @@ `${batch.events.length} event(s) will be saved to storage for retry in next session.`);

@@ -1,7 +0,8 @@

export declare enum FlushType {
ScheduledMaxTime = "scheduled:max_time",
ScheduledFullBatch = "scheduled:full_batch",
Limit = "limit",
Manual = "manual",
Shutdown = "shutdown"
}
export declare const FlushTypeValues: {
readonly ScheduledMaxTime: "scheduled:max_time";
readonly ScheduledFullBatch: "scheduled:full_batch";
readonly Limit: "limit";
readonly Manual: "manual";
readonly Shutdown: "shutdown";
};
export type FlushType = (typeof FlushTypeValues)[keyof typeof FlushTypeValues];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FlushType = void 0;
/* eslint-disable no-restricted-syntax */
var FlushType;
(function (FlushType) {
FlushType["ScheduledMaxTime"] = "scheduled:max_time";
FlushType["ScheduledFullBatch"] = "scheduled:full_batch";
FlushType["Limit"] = "limit";
FlushType["Manual"] = "manual";
FlushType["Shutdown"] = "shutdown";
})(FlushType || (exports.FlushType = FlushType = {}));
exports.FlushTypeValues = void 0;
exports.FlushTypeValues = {
ScheduledMaxTime: 'scheduled:max_time',
ScheduledFullBatch: 'scheduled:full_batch',
Limit: 'limit',
Manual: 'manual',
Shutdown: 'shutdown',
};

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

export declare const SDK_VERSION = "3.33.0";
export declare const SDK_VERSION = "3.33.1";
export type StatsigMetadata = {

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StatsigMetadataProvider = exports.SDK_VERSION = void 0;
exports.SDK_VERSION = '3.33.0';
exports.SDK_VERSION = '3.33.1';
let metadata = {

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