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.25 to 1.0.26

functions.png

4

lib/web-storage-manager.js

@@ -154,2 +154,4 @@ require("core-js/modules/es7.symbol.async-iterator");

exports.indexOfObject = (collection, object, attr) => {
if (!object) return -1;
for (let i = 0; i < collection.length; i++) {

@@ -324,3 +326,3 @@ if (collection[i][attr] === object[attr]) {

let collection = null;
const data = storage.getItem(key);
const data = storage.getItem(parentKey);
const r = exports.isDataEncoded(data);

@@ -327,0 +329,0 @@

{
"name": "web-storage-manager",
"version": "1.0.25",
"version": "1.0.26",
"description": "Web utility storage manager to handle save, update and data purge",

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

@@ -137,12 +137,22 @@ # Web Storage Manager

storage() // returns window.localStorage
setItem(key, value)
setMultiple(items)
appendItem(key, value)
updateItemInItem(parentKey, childKeys, value, attrCompare)
getItem(key)
getMultiple(keys)
removeItem(key)
removeMultiple(keys) [ 'key1', 'key2' ]
purge() // remove all saved data under active domain
appendItem: ƒ (key, value)
combineObject: ƒ (object, toObject)
decode: ƒ (encObj)
encode: ƒ (obj)
getItem: ƒ (key)
getItemInItem: ƒ (parentKey, childKeys, value, attrCompare)
getMultiple: ƒ (keys)
hasData: ƒ (key)
indexOfObject: ƒ (collection, object, attr)
isDataEncoded: ƒ (data)
purge: ƒ () // remove all saved data under active domain
removeItem: ƒ (key)
removeItemInItem: ƒ (parentKey, childKeys, value, attrCompare)
removeMultiple: ƒ (keys)
setEncodeItem: ƒ (key, value)
setEncodeMultiple: ƒ (items)
setItem: ƒ (key, value)
setMultiple: ƒ (items)
storage: ƒ ()
updateItemInItem: ƒ (parentKey, childKeys, value, attrCompare)

@@ -149,0 +159,0 @@ ```

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