@react-native-async-storage/async-storage
Advanced tools
Comparing version 1.15.12 to 1.15.13
@@ -50,3 +50,3 @@ /** | ||
if (value == null) { | ||
throw new Error(`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .remove method instead.\nPassed value: ${value}\nPassed key: ${usedKey}\n`); | ||
throw new Error(`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.\nPassed value: ${value}\nPassed key: ${usedKey}\n`); | ||
} else { | ||
@@ -53,0 +53,0 @@ console.warn(`[AsyncStorage] The value for key "${usedKey}" is not a string. This can lead to unexpected behavior/errors. Consider stringifying it.\nPassed value: ${value}\nPassed key: ${usedKey}\n`); |
@@ -43,3 +43,3 @@ /** | ||
if (value == null) { | ||
throw new Error(`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .remove method instead.\nPassed value: ${value}\nPassed key: ${usedKey}\n`); | ||
throw new Error(`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.\nPassed value: ${value}\nPassed key: ${usedKey}\n`); | ||
} else { | ||
@@ -46,0 +46,0 @@ console.warn(`[AsyncStorage] The value for key "${usedKey}" is not a string. This can lead to unexpected behavior/errors. Consider stringifying it.\nPassed value: ${value}\nPassed key: ${usedKey}\n`); |
{ | ||
"name": "@react-native-async-storage/async-storage", | ||
"version": "1.15.12", | ||
"version": "1.15.13", | ||
"description": "Asynchronous, persistent, key-value storage system for React Native.", | ||
@@ -5,0 +5,0 @@ "main": "lib/commonjs/index.js", |
@@ -62,3 +62,3 @@ /** | ||
throw new Error( | ||
`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .remove method instead.\nPassed value: ${value}\nPassed key: ${usedKey}\n`, | ||
`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.\nPassed value: ${value}\nPassed key: ${usedKey}\n`, | ||
); | ||
@@ -65,0 +65,0 @@ } else { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
401677