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

react-native-storage

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-storage - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "react-native-storage",
"version": "0.0.6",
"version": "0.0.7",
"description": "This is a local storage wrapper for both react-native(AsyncStorage) and browser(localStorage). ES6/babel is needed.",

@@ -5,0 +5,0 @@ "main": "storage.js",

/*
* local storage(web/react native) wrapper
* sunnylqm 2015-08-23
* version 0.0.5
* sunnylqm 2015-08-24
* version 0.0.7
*/

@@ -118,9 +118,15 @@ let cache = {};

Promise.all(tasks).then(values => {
values.map(value =>{
values = values.filter(value =>{
if(value.syncId !== undefined){
missed.push(value.syncId);
return false;
}
else{
return true;
}
});
if(missed.length){
Storage.sync[key](missed, resolve, reject);
Storage.sync[key](missed, data => {
resolve(values.concat(data));
}, reject);
}

@@ -127,0 +133,0 @@ else{

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