@types/react-native-keychain
Advanced tools
| { | ||
| "name": "@types/react-native-keychain", | ||
| "version": "3.0.0", | ||
| "description": "TypeScript definitions for react-native-keychain", | ||
| "license": "MIT", | ||
| "contributors": [ | ||
| { | ||
| "name": "David Evans Farinha", | ||
| "url": "https://github.com/DavidFarinha", | ||
| "githubUsername": "DavidFarinha" | ||
| } | ||
| ], | ||
| "version": "3.1.0", | ||
| "typings": null, | ||
| "description": "Stub TypeScript definitions entry for react-native-keychain, which provides its own types definitions", | ||
| "main": "", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": {}, | ||
| "typesPublisherContentHash": "df1ab0f54f414dcb43888f0873b7ac81cb1e23e727d98243d9a6a3b4f060e6dd", | ||
| "typeScriptVersion": "2.1" | ||
| "author": "", | ||
| "repository": "https://github.com/oblador/react-native-keychain", | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "react-native-keychain": "*" | ||
| } | ||
| } |
@@ -1,16 +0,3 @@ | ||
| # Installation | ||
| > `npm install --save @types/react-native-keychain` | ||
| This is a stub types definition for react-native-keychain (https://github.com/oblador/react-native-keychain). | ||
| # Summary | ||
| This package contains type definitions for react-native-keychain (https://github.com/oblador/react-native-keychain). | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/react-native-keychain | ||
| Additional Details | ||
| * Last updated: Tue, 08 May 2018 17:01:00 GMT | ||
| * Dependencies: none | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by David Evans Farinha <https://github.com/DavidFarinha>. | ||
| react-native-keychain provides its own type definitions, so you don't need @types/react-native-keychain installed! |
| // Type definitions for react-native-keychain 3.0 | ||
| // Project: https://github.com/oblador/react-native-keychain | ||
| // Definitions by: David Evans Farinha <https://github.com/DavidFarinha> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| // TypeScript Version: 2.1 | ||
| export interface UserCredentials { | ||
| username: string; | ||
| password: string; | ||
| } | ||
| export interface SharedWebCredentials { | ||
| server: string; | ||
| username: string; | ||
| password: string; | ||
| } | ||
| export interface Options { | ||
| accessControl?: SecAccessControl; | ||
| accessGroup?: string; | ||
| accessible?: SecAccessible; | ||
| authenticationPrompt?: string; | ||
| authenticationType?: LAPolicy; | ||
| service?: string; | ||
| } | ||
| export type SecAccessible = | ||
| 'AccessibleWhenUnlocked' | ||
| | 'AccessibleAfterFirstUnlock' | ||
| | 'AccessibleAlways' | ||
| | 'AccessibleWhenPasscodeSetThisDeviceOnly' | ||
| | 'AccessibleWhenUnlockedThisDeviceOnly' | ||
| | 'AccessibleAfterFirstUnlockThisDeviceOnly' | ||
| | 'AccessibleAlwaysThisDeviceOnly'; | ||
| export type SecAccessControl = | ||
| 'UserPresence' | ||
| | 'BiometryAny' | ||
| | 'BiometryCurrentSet' | ||
| | 'DevicePasscode' | ||
| | 'ApplicationPassword' | ||
| | 'BiometryAnyOrDevicePasscode' | ||
| | 'BiometryCurrentSetOrDevicePasscode'; | ||
| export type LAPolicy = 'Authentication' | 'AuthenticationWithBiometrics'; | ||
| export function canImplyAuthentication(options?: Options): Promise<boolean>; | ||
| export function getSupportedBiometryType(): Promise<string | null>; | ||
| export function setInternetCredentials( | ||
| server: string, | ||
| username: string, | ||
| password: string, | ||
| options?: Options | ||
| ): Promise<boolean>; | ||
| export function getInternetCredentials( | ||
| server: string | ||
| ): Promise<UserCredentials>; | ||
| export function resetInternetCredentials( | ||
| server: string | ||
| ): Promise<boolean>; | ||
| export function setGenericPassword( | ||
| username: string, | ||
| password: string, | ||
| serviceOrOptions?: string | Options | ||
| ): Promise<boolean>; | ||
| export function getGenericPassword( | ||
| serviceOrOptions?: string | Options | ||
| ): Promise<boolean | {service: string, username: string, password: string}>; | ||
| export function resetGenericPassword( | ||
| serviceOrOptions?: string | Options | ||
| ): Promise<boolean>; | ||
| export function requestSharedWebCredentials( | ||
| ): Promise<SharedWebCredentials>; | ||
| export function setSharedWebCredentials( | ||
| server: string, | ||
| username: string, | ||
| password: string | ||
| ): Promise<boolean>; |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1834
-61.36%1
Infinity%3
-25%0
-100%3
50%1
Infinity%1
Infinity%3
-82.35%1
Infinity%1
Infinity%+ Added
+ Added