castle-api-client
Advanced tools
Comparing version 5.1.1 to 5.1.2
{ | ||
"name": "castle-api-client", | ||
"version": "5.1.1", | ||
"version": "5.1.2", | ||
"description": "Castle API Client", | ||
@@ -5,0 +5,0 @@ "main": "CastleApiClient.js", |
@@ -5,3 +5,3 @@ let ReactNative = require('react-native'); | ||
class ReactNativeAsyncStorage { | ||
module.exports = class ReactNativeAsyncStorage { | ||
constructor(opts) { | ||
@@ -17,3 +17,3 @@ this._opts = { ...opts }; | ||
async getAsync(key) { | ||
let jsonValue = await AsyncStorage(this._prefix + key); | ||
let jsonValue = await AsyncStorage.getItem(this._prefix + key); | ||
if (jsonValue) { | ||
@@ -25,4 +25,4 @@ return JSON.parse(jsonValue); | ||
async deleteAsync(key) { | ||
await _AsyncStorage.deleteAsync(this._prefix + key); | ||
await AsyncStorage.removeItem(this._prefix + key); | ||
} | ||
} |
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
181068