configcat-js-ssr
Advanced tools
Comparing version 3.9.1 to 3.10.0
@@ -27,2 +27,5 @@ import * as configcatcommon from "configcat-common"; | ||
export declare function createConsoleLogger(logLevel: LogLevel): configcatcommon.IConfigCatLogger; | ||
export declare function createFlagOverridesFromMap(map: { | ||
[name: string]: any; | ||
}, behaviour: number): configcatcommon.FlagOverrides; | ||
export interface IJSAutoPollOptions extends configcatcommon.IAutoPollOptions { | ||
@@ -40,2 +43,21 @@ } | ||
}; | ||
export declare const OverrideBehaviour: { | ||
/** | ||
* When evaluating values, the SDK will not use feature flags and settings from the ConfigCat CDN, but it will use | ||
* all feature flags and settings that are loaded from local-override sources. | ||
*/ | ||
LocalOnly: configcatcommon.OverrideBehaviour; | ||
/** | ||
* When evaluating values, the SDK will use all feature flags and settings that are downloaded from the ConfigCat CDN, | ||
* plus all feature flags and settings that are loaded from local-override sources. If a feature flag or a setting is | ||
* defined both in the fetched and the local-override source then the local-override version will take precedence. | ||
*/ | ||
LocalOverRemote: configcatcommon.OverrideBehaviour; | ||
/** | ||
* When evaluating values, the SDK will use all feature flags and settings that are downloaded from the ConfigCat CDN, | ||
* plus all feature flags and settings that are loaded from local-override sources. If a feature flag or a setting is | ||
* defined both in the fetched and the local-override source then the fetched version will take precedence. | ||
*/ | ||
RemoteOverLocal: configcatcommon.OverrideBehaviour; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -45,2 +45,6 @@ "use strict"; | ||
exports.createConsoleLogger = createConsoleLogger; | ||
function createFlagOverridesFromMap(map, behaviour) { | ||
return new configcatcommon.FlagOverrides(new configcatcommon.MapOverrideDataSource(map), behaviour); | ||
} | ||
exports.createFlagOverridesFromMap = createFlagOverridesFromMap; | ||
exports.DataGovernance = { | ||
@@ -52,1 +56,20 @@ /** Select this if your feature flags are published to all global CDN nodes. */ | ||
}; | ||
exports.OverrideBehaviour = { | ||
/** | ||
* When evaluating values, the SDK will not use feature flags and settings from the ConfigCat CDN, but it will use | ||
* all feature flags and settings that are loaded from local-override sources. | ||
*/ | ||
LocalOnly: configcatcommon.OverrideBehaviour.LocalOnly, | ||
/** | ||
* When evaluating values, the SDK will use all feature flags and settings that are downloaded from the ConfigCat CDN, | ||
* plus all feature flags and settings that are loaded from local-override sources. If a feature flag or a setting is | ||
* defined both in the fetched and the local-override source then the local-override version will take precedence. | ||
*/ | ||
LocalOverRemote: configcatcommon.OverrideBehaviour.LocalOverRemote, | ||
/** | ||
* When evaluating values, the SDK will use all feature flags and settings that are downloaded from the ConfigCat CDN, | ||
* plus all feature flags and settings that are loaded from local-override sources. If a feature flag or a setting is | ||
* defined both in the fetched and the local-override source then the fetched version will take precedence. | ||
*/ | ||
RemoteOverLocal: configcatcommon.OverrideBehaviour.RemoteOverLocal, | ||
}; |
{ | ||
"name": "configcat-js-ssr", | ||
"version": "3.9.1", | ||
"version": "3.10.0", | ||
"description": "ConfigCat Feature Flags for Server Side Rendered apps like NuxtJS. Official ConfigCat SDK for Server Side Rendered to easily access feature flags.", | ||
@@ -43,3 +43,3 @@ "main": "lib/index.js", | ||
"axios": "^0.27.2", | ||
"configcat-common": "^5.0.2" | ||
"configcat-common": "^5.1.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
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
138928
592
Updatedconfigcat-common@^5.1.0