@devcycle/js-client-sdk
Advanced tools
Comparing version 1.21.2 to 1.21.3
@@ -164,2 +164,5 @@ 'use strict'; | ||
} | ||
if (options === null || options === void 0 ? void 0 : options.sdkPlatform) { | ||
queryParams.append('sdkPlatform', options.sdkPlatform); | ||
} | ||
const url = `${(options === null || options === void 0 ? void 0 : options.apiProxyURL) || CLIENT_SDK_URL}${CONFIG_PATH}?` + | ||
@@ -580,3 +583,3 @@ queryParams.toString(); | ||
var name = "@devcycle/js-client-sdk"; | ||
var version = "1.21.2"; | ||
var version = "1.21.3"; | ||
var description = "The Javascript Client SDK for DevCycle"; | ||
@@ -999,2 +1002,5 @@ var author = ""; | ||
}; | ||
if (!options.sdkPlatform) { | ||
options.sdkPlatform = 'js'; | ||
} | ||
if ((_a = options.next) === null || _a === void 0 ? void 0 : _a.configRefreshHandler) { | ||
@@ -1001,0 +1007,0 @@ this.configRefetchHandler = options.next.configRefreshHandler; |
@@ -153,2 +153,5 @@ import fetchWithRetry from 'fetch-retry'; | ||
} | ||
if (options === null || options === void 0 ? void 0 : options.sdkPlatform) { | ||
queryParams.append('sdkPlatform', options.sdkPlatform); | ||
} | ||
const url = `${(options === null || options === void 0 ? void 0 : options.apiProxyURL) || CLIENT_SDK_URL}${CONFIG_PATH}?` + | ||
@@ -569,3 +572,3 @@ queryParams.toString(); | ||
var name = "@devcycle/js-client-sdk"; | ||
var version = "1.21.2"; | ||
var version = "1.21.3"; | ||
var description = "The Javascript Client SDK for DevCycle"; | ||
@@ -988,2 +991,5 @@ var author = ""; | ||
}; | ||
if (!options.sdkPlatform) { | ||
options.sdkPlatform = 'js'; | ||
} | ||
if ((_a = options.next) === null || _a === void 0 ? void 0 : _a.configRefreshHandler) { | ||
@@ -990,0 +996,0 @@ this.configRefetchHandler = options.next.configRefreshHandler; |
{ | ||
"name": "@devcycle/js-client-sdk", | ||
"version": "1.21.2", | ||
"version": "1.21.3", | ||
"description": "The Javascript Client SDK for DevCycle", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -106,2 +106,7 @@ import type { DVCLogger, DVCDefaultLogLevel, VariableTypeAlias, VariableValue, DVCJSON, DVCCustomDataJSON, BucketedUserConfig } from '@devcycle/types'; | ||
enableObfuscation?: boolean; | ||
/** | ||
* The platform the SDK is running in. This is used for logging purposes. | ||
* Example values ('of' for OpenFeature): 'js' | 'react' | 'react-native' | 'nextjs' | 'js-of' | 'react-of' | ||
*/ | ||
sdkPlatform?: string; | ||
} | ||
@@ -108,0 +113,0 @@ export interface DevCycleUser { |
@@ -106,2 +106,7 @@ import { DVCLogger, DVCDefaultLogLevel, VariableTypeAlias, VariableValue, DVCJSON, DVCCustomDataJSON, BucketedUserConfig } from '@devcycle/types'; | ||
enableObfuscation?: boolean; | ||
/** | ||
* The platform the SDK is running in. This is used for logging purposes. | ||
* Example values ('of' for OpenFeature): 'js' | 'react' | 'react-native' | 'nextjs' | 'js-of' | 'react-of' | ||
*/ | ||
sdkPlatform?: string; | ||
} | ||
@@ -108,0 +113,0 @@ export interface DevCycleUser { |
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
172569
4328