unleash-client
Advanced tools
Comparing version 3.8.0 to 3.8.1
# Changelog | ||
# 3.8.1 | ||
- Fix: (types) relax argument requirements (#223) | ||
# 3.8.0 | ||
@@ -4,0 +8,0 @@ |
@@ -1,1 +0,1 @@ | ||
{ "name": "unleash-client-node", "version": "3.8.0", "sdkVersion": "unleash-client-node:3.8.0" } | ||
{ "name": "unleash-client-node", "version": "3.8.1", "sdkVersion": "unleash-client-node:3.8.1" } |
@@ -39,5 +39,5 @@ /// <reference types="node" /> | ||
destroy(): void; | ||
isEnabled(name: string, context: Context, fallbackFunction?: FallbackFunction): boolean; | ||
isEnabled(name: string, context: Context, fallbackValue?: boolean): boolean; | ||
getVariant(name: string, context: any, fallbackVariant?: Variant): Variant; | ||
isEnabled(name: string, context?: Context, fallbackFunction?: FallbackFunction): boolean; | ||
isEnabled(name: string, context?: Context, fallbackValue?: boolean): boolean; | ||
getVariant(name: string, context?: Context, fallbackVariant?: Variant): Variant; | ||
getFeatureToggleDefinition(toggleName: string): FeatureInterface; | ||
@@ -44,0 +44,0 @@ getFeatureToggleDefinitions(): FeatureInterface[]; |
@@ -153,2 +153,3 @@ "use strict"; | ||
Unleash.prototype.isEnabled = function (name, context, fallback) { | ||
if (context === void 0) { context = {}; } | ||
var enhancedContext = __assign(__assign({}, this.staticContext), context); | ||
@@ -168,2 +169,3 @@ var fallbackFunc = helpers_1.createFallbackFunction(name, enhancedContext, fallback); | ||
Unleash.prototype.getVariant = function (name, context, fallbackVariant) { | ||
if (context === void 0) { context = {}; } | ||
var enhancedContext = __assign(__assign({}, this.staticContext), context); | ||
@@ -170,0 +172,0 @@ var result; |
{ | ||
"name": "unleash-client", | ||
"version": "3.8.0", | ||
"version": "3.8.1", | ||
"description": "Unleash Client for Node", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
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
170307
2100