@statsig/client-core
Advanced tools
+1
-1
| { | ||
| "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]; |
+8
-10
| "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, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
226475
05414
-0.02%4
33.33%