react-native-storage
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"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{ |
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
15021
286