@devcycle/js-client-sdk
Advanced tools
Comparing version 1.13.7 to 1.13.8
{ | ||
"name": "@devcycle/js-client-sdk", | ||
"version": "1.13.7", | ||
"version": "1.13.8", | ||
"description": "The Javascript Client SDK for DevCycle", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -22,2 +22,4 @@ import { DVCFeatureSet, DevCycleOptions, DVCVariableSet, DVCVariableValue, DevCycleEvent, DevCycleUser, ErrorCallback, DVCFeature, VariableDefinitions } from './types'; | ||
user?: DVCPopulatedUser; | ||
_isInitialized: boolean; | ||
get isInitialized(): boolean; | ||
private sdkKey; | ||
@@ -24,0 +26,0 @@ private readonly options; |
@@ -24,3 +24,7 @@ "use strict"; | ||
class DevCycleClient { | ||
get isInitialized() { | ||
return this._isInitialized; | ||
} | ||
constructor(sdkKey, userOrOptions, optionsArg = {}) { | ||
this._isInitialized = false; | ||
this.userSaved = false; | ||
@@ -94,3 +98,6 @@ this._closing = false; | ||
this.onInitialized = new Promise((resolve, reject) => { | ||
this.resolveOnInitialized = resolve; | ||
this.resolveOnInitialized = (value) => { | ||
this._isInitialized = true; | ||
resolve(value); | ||
}; | ||
}); | ||
@@ -97,0 +104,0 @@ if (!this.options.deferInitialization) { |
@@ -22,2 +22,4 @@ import { DVCFeatureSet, DevCycleOptions, DVCVariableSet, DVCVariableValue, DevCycleEvent, DevCycleUser, ErrorCallback, DVCFeature, VariableDefinitions } from './types'; | ||
user?: DVCPopulatedUser; | ||
_isInitialized: boolean; | ||
readonly isInitialized: boolean; | ||
private sdkKey; | ||
@@ -24,0 +26,0 @@ private readonly options; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
236328
2796