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

web-storage-manager

Package Overview
Dependencies
Maintainers
2
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 3.1.2 to 4.0.0

lib/class/cryptor.js

2

lib/class/interface.js

@@ -6,2 +6,2 @@ "use strict";

});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NsYXNzL2ludGVyZmFjZS50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9BUEkvU3RvcmFnZVxuXG5leHBvcnQgdHlwZSBLZXlQYXRoID0gc3RyaW5nO1xuZXhwb3J0IHR5cGUgU3RvcmFnZVZhbHVlID0gYW55O1xuZXhwb3J0IHR5cGUgU3RvcmFnZUl0ZW0gPSB7IGtleTogS2V5UGF0aCwgdmFsdWU6IFN0b3JhZ2VWYWx1ZSB9O1xuXG4vKipcbiAqIEF0dHJpYnV0ZSBjb21wYXJlIHdpbGwgd29yayBmb3IgYSBjb2xsZWN0aW9uIG9mIGl0ZW1zIHdoZXJlIHZhbHVlcyBtYXRjaCBvciB3aWxsIHJlcGxhY2UgYSB2YWx1ZSBvZiB0aGUgbWF0Y2hlZCBrZXkgZm9yIGRhdGEgb2JqZWN0cy5cbiAqL1xuZXhwb3J0IHR5cGUgQXR0cmlidXRlQ29tcGFyZSA9IHsgbmFtZTogc3RyaW5nLCB2YWx1ZTogc3RyaW5nIHwgbnVtYmVyIH07XG5cbmV4cG9ydCBpbnRlcmZhY2UgU3RvcmFnZSB7XG4gICAgLyoqXG4gICAgICoga2V5cGF0aCBkZWxpbWV0ZXIuIGRlZmF1bHRzIHRvICcuJy5cbiAgICAgKi9cbiAg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pbXBvcnRhbnQgZm9yIGRlY3J5cHRpb24uIE1ha2Ugc3VyZSB5b3Ugc3RvcmUgaXQgc29tZXdoZXJlIGZvciByZXVzZS5cbiAgICAgKi9cbiAgICBnZXQgaXZIZXgoKTogS2V5T3B0aW9uXG5cbiAgICAvKipcbiAgICAgKiBFbmNyeXB0IHRoZSBkYXRhIGFuZCBzYXZlIHRvIHN0b3JhZ2UuXG4gICAgICovXG4gICAgZW5jcnlwdChzdWJqZWN0OiBzdHJpbmcpOiBSZXR1cm5PcHRpb25cblxuICAgIC8qKlxuICAgICAqIFJldHVybnMgdGhlIGRlY3J5cHRlZCBkYXRhIGZyb20gc3RvcmFnZS5cbiAgICAgKi9cbiAgICBkZWNyeXB0KGVuY3J5cHRlZDogc3RyaW5nKTogUmV0dXJuT3B0aW9uXG59Il0sIm1hcHBpbmdzIjoiIn0=
{
"name": "web-storage-manager",
"version": "3.1.2",
"version": "4.0.0",
"description": "Web utility storage manager to handle save, update and data purge",

@@ -41,2 +41,3 @@ "main": "lib/index.js",

"@babel/preset-typescript": "^7.22.5",
"@types/node": "^20.4.4",
"babel-plugin-module-resolver": "^5.0.0",

@@ -43,0 +44,0 @@ "core-js": "^3.31.0",

@@ -85,2 +85,23 @@ [![NPM](https://nodei.co/npm/web-storage-manager.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/web-storage-manager/)

const result = WebStorage.getItemInItem('testKey.nestedKey.nestedKeyB.nestedKeyC');
// expected result: { itemKey: 'itemKey-value', itemKey2: 'itemKey2-target-value' }
WebStorage.appendItemInItem('testKey.nestedKey.nestedKeyB.nestedKeyC', { appendItemInItemAKey: 'appendItemInItemA-target-appended-value' });
// expected result: { itemKey: 'itemKey-value', itemKey2: 'itemKey2-target-value', appendItemInItemAKey: 'appendItemInItemA-target-appended-value' }
WebStorage.appendItemInItem('testKey.nestedKey.nestedKeyB.nestedKeyD', { id: 'id4', value: 'appendItemInItemB-target-appended-value' });
// expected result: [{ id: 'id1' }, { id: 'id2' }, { id: 'id3' }, { id: 'idz' }, { id: 'id4', value: 'appendItemInItemB-target-appended-value' }]
WebStorage.updateItemInItem('testKey.nestedKey.nestedKeyB.nestedKeyD', { name: 'id', value: 'id4' }, { id: 'id4', value: 'appendItemInItemB-target-appended-updated-value' });
// expected result: [{ id: 'id1' }, { id: 'id2' }, { id: 'id3' }, { id: 'idz' }, { id: 'id4', value: 'appendItemInItemB-target-appended-updated-value' }]
const result = WebStorage.getItemInItem('testKey.nestedKey.nestedKeyB.nestedKeyC', { name: 'appendItemInItemAKey' });
// expected result: appendItemInItemA-target-appended-value
const result = WebStorage.getItemInItem('testKey.nestedKey.nestedKeyB.nestedKeyD', { name: 'id', value: 'id4' });
// expected result: { id: 'id4', value: 'appendItemInItemB-target-appended-updated-value' }
WebStorage.removeItemInItem('testKey.nestedKey.nestedKeyB.nestedKeyC', { name: 'itemKey2' });
// expected result: { itemKey: 'itemKey-value', appendItemInItemAKey: 'appendItemInItemA-target-appended-value' }
```

@@ -87,0 +108,0 @@

@@ -6,3 +6,3 @@ {

"alwaysStrict": true,
"module": "CommonJS",
"module": "ESNext",
"esModuleInterop": true,

@@ -9,0 +9,0 @@ "resolveJsonModule": true,

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