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

web-storage-manager

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-storage-manager - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

11

lib/web-storage-manager.js

@@ -487,5 +487,6 @@ require("core-js/modules/es7.symbol.async-iterator");

exports.encode = obj => {
if (!obj || typeof obj !== 'string') return null;
const rawStr = JSON.stringify(obj);
const encObj = window.btoa(rawStr); // console.log('encoded: ', encObj)
const encObj = window.btoa(rawStr);
console.log('encoded: ', encObj);
return encObj;

@@ -501,6 +502,8 @@ };

exports.decode = encObj => {
if (!encObj) return null;
const decoded = window.atob(encObj);
const obj = JSON.parse(decoded); // console.log('decoded: ', encObj)
if (!decoded) return null;
const obj = JSON.parse(decoded);
console.log('decoded: ', obj);
return obj;
};
{
"name": "web-storage-manager",
"version": "1.0.10",
"version": "1.0.11",
"description": "Web utility storage manager to handle save, update and data purge",

@@ -5,0 +5,0 @@ "main": "lib/web-storage-manager.js",

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