Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

configcat-js-ssr

Package Overview
Dependencies
Maintainers
4
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 8.0.0 to 8.1.0

2

lib/Cache.d.ts

@@ -5,3 +5,5 @@ import type { IConfigCatCache } from "configcat-common";

get(key: string): string | undefined;
private b64EncodeUnicode;
private b64DecodeUnicode;
}
//# sourceMappingURL=Cache.d.ts.map

@@ -9,3 +9,3 @@ "use strict";

try {
localStorage.setItem(key, btoa(value));
localStorage.setItem(key, this.b64EncodeUnicode(value));
}

@@ -20,3 +20,3 @@ catch (ex) {

if (configString) {
return atob(configString);
return this.b64DecodeUnicode(configString);
}

@@ -27,5 +27,16 @@ }

}
return void 0;
};
LocalStorageCache.prototype.b64EncodeUnicode = function (str) {
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (_, p1) {
return String.fromCharCode(parseInt(p1, 16));
}));
};
LocalStorageCache.prototype.b64DecodeUnicode = function (str) {
return decodeURIComponent(Array.prototype.map.call(atob(str), function (c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
}).join(''));
};
return LocalStorageCache;
}());
exports.LocalStorageCache = LocalStorageCache;

@@ -6,3 +6,3 @@ var LocalStorageCache = /** @class */ (function () {

try {
localStorage.setItem(key, btoa(value));
localStorage.setItem(key, this.b64EncodeUnicode(value));
}

@@ -17,3 +17,3 @@ catch (ex) {

if (configString) {
return atob(configString);
return this.b64DecodeUnicode(configString);
}

@@ -24,5 +24,16 @@ }

}
return void 0;
};
LocalStorageCache.prototype.b64EncodeUnicode = function (str) {
return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (_, p1) {
return String.fromCharCode(parseInt(p1, 16));
}));
};
LocalStorageCache.prototype.b64DecodeUnicode = function (str) {
return decodeURIComponent(Array.prototype.map.call(atob(str), function (c) {
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
}).join(''));
};
return LocalStorageCache;
}());
export { LocalStorageCache };

2

lib/esm/Version.js

@@ -1,1 +0,1 @@

export default "8.0.0";
export default "8.1.0";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = "8.0.0";
exports.default = "8.1.0";
{
"name": "configcat-js-ssr",
"version": "8.0.0",
"version": "8.1.0",
"description": "ConfigCat Feature Flags for Server Side Rendered apps like NuxtJS. Official ConfigCat SDK for Server Side Rendered to easily access feature flags.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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