configcat-js-ssr
Advanced tools
Comparing version 3.10.0 to 5.3.0
@@ -14,3 +14,3 @@ "use strict"; | ||
headers: { | ||
'X-ConfigCat-UserAgent': "ConfigCat-JS-SSR/" + options.clientVersion, | ||
'X-ConfigCat-UserAgent': options.clientVersion, | ||
'If-None-Match': (lastEtag) ? lastEtag : null | ||
@@ -17,0 +17,0 @@ } |
@@ -6,2 +6,3 @@ "use strict"; | ||
var Cache_1 = require("./Cache"); | ||
var Version_1 = require("./Version"); | ||
/** Create an instance of ConfigCatClient and setup Auto polling with default options. | ||
@@ -21,3 +22,8 @@ * @param {string} sdkKey - SDK Key to access your configuration. | ||
function createClientWithAutoPoll(sdkKey, options) { | ||
return configcatcommon.createClientWithAutoPoll(sdkKey, { configFetcher: new ConfigFetcher_1.HttpConfigFetcher(), cache: new Cache_1.LocalStorageCache() }, options); | ||
return configcatcommon.createClientWithAutoPoll(sdkKey, { | ||
configFetcher: new ConfigFetcher_1.HttpConfigFetcher(), | ||
cache: new Cache_1.LocalStorageCache(), | ||
sdkType: "ConfigCat-JS-SSR", | ||
sdkVersion: Version_1.default | ||
}, options); | ||
} | ||
@@ -31,3 +37,8 @@ exports.createClientWithAutoPoll = createClientWithAutoPoll; | ||
function createClientWithManualPoll(sdkKey, options) { | ||
return configcatcommon.createClientWithManualPoll(sdkKey, { configFetcher: new ConfigFetcher_1.HttpConfigFetcher(), cache: new Cache_1.LocalStorageCache() }, options); | ||
return configcatcommon.createClientWithManualPoll(sdkKey, { | ||
configFetcher: new ConfigFetcher_1.HttpConfigFetcher(), | ||
cache: new Cache_1.LocalStorageCache(), | ||
sdkType: "ConfigCat-JS-SSR", | ||
sdkVersion: Version_1.default | ||
}, options); | ||
} | ||
@@ -41,3 +52,8 @@ exports.createClientWithManualPoll = createClientWithManualPoll; | ||
function createClientWithLazyLoad(sdkKey, options) { | ||
return configcatcommon.createClientWithLazyLoad(sdkKey, { configFetcher: new ConfigFetcher_1.HttpConfigFetcher(), cache: new Cache_1.LocalStorageCache() }, options); | ||
return configcatcommon.createClientWithLazyLoad(sdkKey, { | ||
configFetcher: new ConfigFetcher_1.HttpConfigFetcher(), | ||
cache: new Cache_1.LocalStorageCache(), | ||
sdkType: "ConfigCat-JS-SSR", | ||
sdkVersion: Version_1.default | ||
}, options); | ||
} | ||
@@ -44,0 +60,0 @@ exports.createClientWithLazyLoad = createClientWithLazyLoad; |
{ | ||
"name": "configcat-js-ssr", | ||
"version": "3.10.0", | ||
"version": "5.3.0", | ||
"description": "ConfigCat Feature Flags for Server Side Rendered apps like NuxtJS. Official ConfigCat SDK for Server Side Rendered to easily access feature flags.", | ||
@@ -9,4 +9,4 @@ "main": "lib/index.js", | ||
"test": "karma start", | ||
"build": "tsc", | ||
"buildPure": "webpack", | ||
"build": "tsc && gulp tsc", | ||
"buildPure": "webpack && gulp webpack", | ||
"prepare": "npm run build" | ||
@@ -44,3 +44,3 @@ }, | ||
"axios": "^0.27.2", | ||
"configcat-common": "^5.1.0" | ||
"configcat-common": "^5.2.0" | ||
}, | ||
@@ -53,2 +53,5 @@ "devDependencies": { | ||
"core-js": "^3.6.5", | ||
"gulp": "^4.0.2", | ||
"gulp-replace": "^1.1.3", | ||
"gulp-typescript": "^6.0.0-alpha.1", | ||
"karma": "^6.3.4", | ||
@@ -55,0 +58,0 @@ "karma-chai": "^0.1.0", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
139998
17
614
0
21
Updatedconfigcat-common@^5.2.0