configcat-common
Advanced tools
Comparing version 4.6.0 to 4.6.1
@@ -8,3 +8,5 @@ import { IConfigCatLogger } from "./index"; | ||
export declare class User { | ||
constructor(identifier: string, email?: string, country?: string, custom?: {}); | ||
constructor(identifier: string, email?: string, country?: string, custom?: { | ||
[key: string]: string; | ||
}); | ||
/** Unique identifier for the User or Session. e.g. Email address, Primary key, Session Id */ | ||
@@ -17,3 +19,3 @@ identifier: string; | ||
/** Optional dictionary for custom attributes of the User for advanced targeting rule definitions. e.g. User role, Subscription type */ | ||
custom: { | ||
custom?: { | ||
[key: string]: string; | ||
@@ -20,0 +22,0 @@ }; |
@@ -11,3 +11,2 @@ "use strict"; | ||
function User(identifier, email, country, custom) { | ||
if (custom === void 0) { custom = {}; } | ||
/** Optional dictionary for custom attributes of the User for advanced targeting rule definitions. e.g. User role, Subscription type */ | ||
@@ -18,3 +17,3 @@ this.custom = {}; | ||
this.country = country; | ||
this.custom = custom; | ||
this.custom = custom || {}; | ||
} | ||
@@ -21,0 +20,0 @@ return User; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = "4.6.0"; | ||
exports.default = "4.6.1"; |
@@ -8,3 +8,5 @@ import { IConfigCatLogger } from "./index"; | ||
export declare class User { | ||
constructor(identifier: string, email?: string, country?: string, custom?: {}); | ||
constructor(identifier: string, email?: string, country?: string, custom?: { | ||
[key: string]: string; | ||
}); | ||
/** Unique identifier for the User or Session. e.g. Email address, Primary key, Session Id */ | ||
@@ -17,3 +19,3 @@ identifier: string; | ||
/** Optional dictionary for custom attributes of the User for advanced targeting rule definitions. e.g. User role, Subscription type */ | ||
custom: { | ||
custom?: { | ||
[key: string]: string; | ||
@@ -20,0 +22,0 @@ }; |
@@ -8,3 +8,2 @@ import { Setting, RolloutRules, RolloutPercentageItems, ConfigFile } from "./ProjectConfig"; | ||
function User(identifier, email, country, custom) { | ||
if (custom === void 0) { custom = {}; } | ||
/** Optional dictionary for custom attributes of the User for advanced targeting rule definitions. e.g. User role, Subscription type */ | ||
@@ -15,3 +14,3 @@ this.custom = {}; | ||
this.country = country; | ||
this.custom = custom; | ||
this.custom = custom || {}; | ||
} | ||
@@ -18,0 +17,0 @@ return User; |
@@ -1,1 +0,1 @@ | ||
export default "4.6.0"; | ||
export default "4.6.1"; |
@@ -8,3 +8,5 @@ import { IConfigCatLogger } from "./index"; | ||
export declare class User { | ||
constructor(identifier: string, email?: string, country?: string, custom?: {}); | ||
constructor(identifier: string, email?: string, country?: string, custom?: { | ||
[key: string]: string; | ||
}); | ||
/** Unique identifier for the User or Session. e.g. Email address, Primary key, Session Id */ | ||
@@ -17,3 +19,3 @@ identifier: string; | ||
/** Optional dictionary for custom attributes of the User for advanced targeting rule definitions. e.g. User role, Subscription type */ | ||
custom: { | ||
custom?: { | ||
[key: string]: string; | ||
@@ -20,0 +22,0 @@ }; |
@@ -11,3 +11,2 @@ "use strict"; | ||
function User(identifier, email, country, custom) { | ||
if (custom === void 0) { custom = {}; } | ||
/** Optional dictionary for custom attributes of the User for advanced targeting rule definitions. e.g. User role, Subscription type */ | ||
@@ -18,3 +17,3 @@ this.custom = {}; | ||
this.country = country; | ||
this.custom = custom; | ||
this.custom = custom || {}; | ||
} | ||
@@ -21,0 +20,0 @@ return User; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = "4.6.0"; | ||
exports.default = "4.6.1"; |
{ | ||
"name": "configcat-common", | ||
"version": "4.6.0", | ||
"version": "4.6.1", | ||
"description": "ConfigCat is a configuration as a service that lets you manage your features and configurations without actually deploying new code.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
370139
7112