Socket
Socket
Sign inDemoInstall

expo-secure-store

Package Overview
Dependencies
0
Maintainers
21
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.1.0 to 9.2.0

1

build/ExpoSecureStore.web.d.ts
declare const _default: {
readonly name: string;
getValueWithKeyAsync(): Promise<null>;
};
export default _default;

@@ -5,6 +5,3 @@ export default {

},
async getValueWithKeyAsync() {
return null;
},
};
//# sourceMappingURL=ExpoSecureStore.web.js.map

6

build/SecureStore.d.ts

@@ -13,4 +13,10 @@ export declare type KeychainAccessibilityConstant = number;

};
/**
* Returns whether the SecureStore API is enabled on the current device. This does not check the app permissions.
*
* @returns Async `boolean`, indicating whether the SecureStore API is available on the current device. Currently this resolves `true` on iOS and Android only.
*/
export declare function isAvailableAsync(): Promise<boolean>;
export declare function deleteItemAsync(key: string, options?: SecureStoreOptions): Promise<void>;
export declare function getItemAsync(key: string, options?: SecureStoreOptions): Promise<string | null>;
export declare function setItemAsync(key: string, value: string, options?: SecureStoreOptions): Promise<void>;

@@ -11,2 +11,10 @@ import { UnavailabilityError } from '@unimodules/core';

const VALUE_BYTES_LIMIT = 2048;
/**
* Returns whether the SecureStore API is enabled on the current device. This does not check the app permissions.
*
* @returns Async `boolean`, indicating whether the SecureStore API is available on the current device. Currently this resolves `true` on iOS and Android only.
*/
export async function isAvailableAsync() {
return !!ExpoSecureStore.getValueWithKeyAsync;
}
export async function deleteItemAsync(key, options = {}) {

@@ -13,0 +21,0 @@ _ensureValidKey(key);

@@ -11,2 +11,8 @@ # Changelog

## 9.2.0 — 2020-08-11
### 🎉 New features
- Create `isAvailableAsync` method. ([#9668](https://github.com/expo/expo/pull/9668) by [@EvanBacon](https://github.com/EvanBacon))
## 9.1.0 — 2020-07-27

@@ -20,3 +26,3 @@

*This version does not introduce any user-facing changes.*
_This version does not introduce any user-facing changes._

@@ -23,0 +29,0 @@ ## 9.0.0 — 2020-05-27

{
"name": "expo-secure-store",
"version": "9.1.0",
"version": "9.2.0",
"description": "Provides a way to encrypt and securely store key–value pairs locally on the device.",

@@ -44,3 +44,3 @@ "main": "build/SecureStore.js",

},
"gitHead": "1bf7e487c9ef2569c105578edcf935a3e1caad6b"
"gitHead": "162eaabbd06b0604679188003debd18466292f2f"
}

@@ -5,5 +5,2 @@ export default {

},
async getValueWithKeyAsync(): Promise<null> {
return null;
},
};

@@ -26,2 +26,11 @@ import { UnavailabilityError } from '@unimodules/core';

/**
* Returns whether the SecureStore API is enabled on the current device. This does not check the app permissions.
*
* @returns Async `boolean`, indicating whether the SecureStore API is available on the current device. Currently this resolves `true` on iOS and Android only.
*/
export async function isAvailableAsync(): Promise<boolean> {
return !!ExpoSecureStore.getValueWithKeyAsync;
}
export async function deleteItemAsync(

@@ -28,0 +37,0 @@ key: string,

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc