web-storage-manager
Advanced tools
Comparing version 1.0.25 to 1.0.26
@@ -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 @@ ``` |
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
216432
5
469
170