Socket
Socket
Sign inDemoInstall

configcat-js-ssr

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configcat-js-ssr - npm Package Compare versions

Comparing version 3.10.0 to 5.3.0

lib/Version.d.ts

2

lib/ConfigFetcher.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc