react-native-storage
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "react-native-storage", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"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", |
@@ -132,3 +132,3 @@ /* | ||
} | ||
static _loadGlobalItem(ret, resolve, reject){ | ||
static _loadGlobalItem(id, ret, resolve, reject){ | ||
if(ret === null || ret === 'undefined'){ | ||
@@ -207,7 +207,7 @@ if(Storage.sync[id]){ | ||
ret = s.getItem(id); | ||
Storage._loadGlobalItem(ret, resolve, reject); | ||
Storage._loadGlobalItem(id, ret, resolve, reject); | ||
} | ||
else{ | ||
s.getItem(id).then(ret => { | ||
Storage._loadGlobalItem(ret, resolve, reject); | ||
Storage._loadGlobalItem(id, ret, resolve, reject); | ||
}) | ||
@@ -214,0 +214,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
14445