Socket
Socket
Sign inDemoInstall

react-native-encrypted-storage

Package Overview
Dependencies
514
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.2 to 4.0.3

ios/EncryptedStorage.xcodeproj/project.xcworkspace/contents.xcworkspacedata

18

lib/commonjs/EncryptedStorage.js

@@ -7,14 +7,11 @@ "use strict";

exports.default = void 0;
var _reactNative = require("react-native");
/* eslint-disable no-dupe-class-members */
/* eslint-disable no-dupe-class-members */
const {
RNEncryptedStorage
} = _reactNative.NativeModules;
if (!RNEncryptedStorage) {
throw new Error('RNEncryptedStorage is undefined');
}
class EncryptedStorage {

@@ -33,2 +30,3 @@ /**

*/
static setItem(key, value, cb) {

@@ -39,5 +37,5 @@ if (cb) {

}
return RNEncryptedStorage.setItem(key, value);
}
/**

@@ -48,3 +46,2 @@ * Retrieves data from the disk, using SharedPreferences or KeyChain, depending on the platform and returns it as the specified type.

static getItem(key, cb) {

@@ -55,5 +52,5 @@ if (cb) {

}
return RNEncryptedStorage.getItem(key);
}
/**

@@ -64,3 +61,2 @@ * Deletes data from the disk, using SharedPreferences or KeyChain, depending on the platform.

static removeItem(key, cb) {

@@ -71,5 +67,5 @@ if (cb) {

}
return RNEncryptedStorage.removeItem(key);
}
/**

@@ -79,3 +75,2 @@ * Clears all data from disk, using SharedPreferences or KeyChain, depending on the platform.

static clear(cb) {

@@ -86,9 +81,6 @@ if (cb) {

}
return RNEncryptedStorage.clear();
}
}
exports.default = EncryptedStorage;
//# sourceMappingURL=EncryptedStorage.js.map

@@ -12,6 +12,4 @@ "use strict";

});
var _EncryptedStorage = _interopRequireDefault(require("./EncryptedStorage"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=index.js.map
/* eslint-disable no-dupe-class-members */
import { NativeModules } from 'react-native';

@@ -6,7 +7,5 @@ const {

} = NativeModules;
if (!RNEncryptedStorage) {
throw new Error('RNEncryptedStorage is undefined');
}
export default class EncryptedStorage {

@@ -25,2 +24,3 @@ /**

*/
static setItem(key, value, cb) {

@@ -31,5 +31,5 @@ if (cb) {

}
return RNEncryptedStorage.setItem(key, value);
}
/**

@@ -40,3 +40,2 @@ * Retrieves data from the disk, using SharedPreferences or KeyChain, depending on the platform and returns it as the specified type.

static getItem(key, cb) {

@@ -47,5 +46,5 @@ if (cb) {

}
return RNEncryptedStorage.getItem(key);
}
/**

@@ -56,3 +55,2 @@ * Deletes data from the disk, using SharedPreferences or KeyChain, depending on the platform.

static removeItem(key, cb) {

@@ -63,5 +61,5 @@ if (cb) {

}
return RNEncryptedStorage.removeItem(key);
}
/**

@@ -71,3 +69,2 @@ * Clears all data from disk, using SharedPreferences or KeyChain, depending on the platform.

static clear(cb) {

@@ -78,7 +75,5 @@ if (cb) {

}
return RNEncryptedStorage.clear();
}
}
//# sourceMappingURL=EncryptedStorage.js.map
{
"name": "react-native-encrypted-storage",
"version": "4.0.2",
"version": "4.0.3",
"description": "A React Native wrapper over SharedPreferences and Keychain to provide a secure alternative to Async Storage",

@@ -5,0 +5,0 @@ "main": "lib/commonjs/index",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc