@aparajita/capacitor-biometric-auth
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -105,4 +105,5 @@ import type { DecoratedNativePlugin } from '@aparajita/capacitor-native-decorator'; | ||
/** | ||
* The maximum number of failed biometric verification attempts before | ||
* returning `BiometryError.authenticationFailed`. The default is 3. | ||
* When this many consecutive biometric verification attempts fail, | ||
* `authenticate` returns `BiometryErrorType.authenticationFailed`. | ||
* The default is 3. | ||
*/ | ||
@@ -109,0 +110,0 @@ androidMaxAttempts?: number; |
@@ -58,1 +58,2 @@ export var BiometryType; | ||
export const kPluginName = 'BiometricAuth'; | ||
//# sourceMappingURL=definitions.js.map |
@@ -10,3 +10,2 @@ import { registerPlugin } from '@capacitor/core'; | ||
const plugin = new BiometricAuth(); | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
const biometricAuth = registerPlugin(kPluginName, { | ||
@@ -20,1 +19,2 @@ web: plugin, | ||
export { getBiometryName } from './web'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aparajita/capacitor-biometric-auth", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "Provides access to the native biometric auth APIs for Capacitor apps", | ||
@@ -24,8 +24,10 @@ "author": "Aparajita Fishman", | ||
"clean": "rimraf ./dist", | ||
"build": "pnpm check && pnpm build.only", | ||
"build.dev": "pnpm check && pnpm build.only.dev", | ||
"build": "pnpm check.fix && pnpm build.only", | ||
"build.dev": "pnpm check.fix && pnpm build.only.dev", | ||
"build.only": "pnpm clean && tsc $SOURCE_MAP && pnpm rollup && make-ios-plugin && pnpm docgen", | ||
"build.only.dev": "SOURCE_MAP=--sourceMap pnpm build.only", | ||
"rollup": "rollup -c rollup.config.mjs", | ||
"watch": "nodemon -w ./src -w tsconfig.json -w rollup.config.mjs --exec 'pnpm build --silent' -e ts", | ||
"watcher": "nodemon -w ./src -w tsconfig.json -w rollup.config.mjs --exec 'pnpm $BUILD --silent' -e ts", | ||
"watch": "BUILD=build pnpm watcher", | ||
"watch.dev": "BUILD=build.dev pnpm watcher", | ||
"lint": "eslint . && pnpm typecheck", | ||
@@ -79,9 +81,9 @@ "lint.fix": "eslint --fix . && pnpm typecheck", | ||
"@aparajita/capacitor-docgen-format": "github:aparajita/capacitor-docgen-format", | ||
"@aparajita/eslint-config-base": "^1.1.2", | ||
"@aparajita/eslint-config-base": "^1.1.4", | ||
"@aparajita/prettier-config": "^1.0.0", | ||
"@aparajita/swiftly": "^1.0.1", | ||
"@aparajita/swiftly": "^1.0.4", | ||
"@capacitor/core": "^3.6.0", | ||
"@ionic/swiftlint-config": "^1.1.2", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@types/node": "^18.0.1", | ||
"@types/node": "^18.0.3", | ||
"@typescript-eslint/eslint-plugin": "^5.30.5", | ||
@@ -94,3 +96,3 @@ "@typescript-eslint/parser": "^5.30.5", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-import-resolver-typescript": "^3.2.1", | ||
"eslint-import-resolver-typescript": "^3.2.5", | ||
"eslint-plugin-import": "^2.26.0", | ||
@@ -100,11 +102,13 @@ "eslint-plugin-n": "^15.2.4", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"nodemon": "^2.0.18", | ||
"nodemon": "^2.0.19", | ||
"prettier": "^2.7.1", | ||
"prettier-plugin-java": "^1.6.2", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.75.7", | ||
"rollup": "^2.76.0", | ||
"swiftlint": "^1.0.1", | ||
"typescript": "~4.7.4" | ||
}, | ||
"dependencies": { | ||
"@aparajita/capacitor-native-decorator": "^2.0.4", | ||
"@aparajita/capacitor-logger": "link:../capacitor-logger", | ||
"@aparajita/capacitor-native-decorator": "^2.0.6", | ||
"@capacitor/android": "^3.6.0", | ||
@@ -111,0 +115,0 @@ "@capacitor/app": "^1.1.1", |
@@ -92,1 +92,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
} | ||
//# sourceMappingURL=web.js.map |
@@ -162,3 +162,2 @@ 'use strict'; | ||
const plugin = new BiometricAuth(); | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
const biometricAuth = core.registerPlugin(kPluginName, { | ||
@@ -174,1 +173,2 @@ web: plugin, | ||
exports.kPluginName = kPluginName; | ||
//# sourceMappingURL=plugin.cjs.js.map |
@@ -157,3 +157,2 @@ var capacitorBiometricAuth = (function (exports, core, capacitorNativeDecorator, app) { | ||
const plugin = new BiometricAuth(); | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
const biometricAuth = core.registerPlugin(kPluginName, { | ||
@@ -175,1 +174,2 @@ web: plugin, | ||
})({}, capacitorExports, capacitorNativeDecorator, app); | ||
//# sourceMappingURL=plugin.js.map |
{ | ||
"name": "@aparajita/capacitor-biometric-auth", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Provides access to the native biometric auth APIs for Capacitor apps", | ||
@@ -51,9 +51,9 @@ "author": "Aparajita Fishman", | ||
"@aparajita/capacitor-docgen-format": "github:aparajita/capacitor-docgen-format", | ||
"@aparajita/eslint-config-base": "^1.1.2", | ||
"@aparajita/eslint-config-base": "^1.1.4", | ||
"@aparajita/prettier-config": "^1.0.0", | ||
"@aparajita/swiftly": "^1.0.1", | ||
"@aparajita/swiftly": "^1.0.4", | ||
"@capacitor/core": "^3.6.0", | ||
"@ionic/swiftlint-config": "^1.1.2", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@types/node": "^18.0.1", | ||
"@types/node": "^18.0.3", | ||
"@typescript-eslint/eslint-plugin": "^5.30.5", | ||
@@ -66,3 +66,3 @@ "@typescript-eslint/parser": "^5.30.5", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-import-resolver-typescript": "^3.2.1", | ||
"eslint-import-resolver-typescript": "^3.2.5", | ||
"eslint-plugin-import": "^2.26.0", | ||
@@ -72,11 +72,12 @@ "eslint-plugin-n": "^15.2.4", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"nodemon": "^2.0.18", | ||
"nodemon": "^2.0.19", | ||
"prettier": "^2.7.1", | ||
"prettier-plugin-java": "^1.6.2", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.75.7", | ||
"rollup": "^2.76.0", | ||
"swiftlint": "^1.0.1", | ||
"typescript": "~4.7.4" | ||
}, | ||
"dependencies": { | ||
"@aparajita/capacitor-native-decorator": "^2.0.4", | ||
"@aparajita/capacitor-native-decorator": "^2.0.6", | ||
"@capacitor/android": "^3.6.0", | ||
@@ -91,10 +92,12 @@ "@capacitor/app": "^1.1.1", | ||
"clean": "rimraf ./dist", | ||
"build": "pnpm check && pnpm build.only", | ||
"build.dev": "pnpm check && pnpm build.only.dev", | ||
"build": "pnpm check.fix && pnpm build.only", | ||
"build.dev": "pnpm check.fix && pnpm build.only.dev", | ||
"build.only": "pnpm clean && tsc $SOURCE_MAP && pnpm rollup && make-ios-plugin && pnpm docgen", | ||
"build.only.dev": "SOURCE_MAP=--sourceMap pnpm build.only", | ||
"rollup": "rollup -c rollup.config.mjs", | ||
"watch": "nodemon -w ./src -w tsconfig.json -w rollup.config.mjs --exec 'pnpm build --silent' -e ts", | ||
"lint": "eslint . && pnpm typecheck", | ||
"lint.fix": "eslint --fix . && pnpm typecheck", | ||
"watcher": "nodemon -w ./src -w tsconfig.json -w rollup.config.mjs --exec 'pnpm $BUILD --silent' -e ts", | ||
"watch": "BUILD=build pnpm watcher", | ||
"watch.dev": "BUILD=build.dev pnpm watcher", | ||
"lint": "eslint --cache . && pnpm typecheck", | ||
"lint.fix": "eslint --cache --fix . && pnpm typecheck", | ||
"typecheck": "tsc --noEmit", | ||
@@ -114,5 +117,5 @@ "lint.swift": "pnpm swiftlint", | ||
"push": "git push --follow-tags origin main", | ||
"release.check": "commit-and-tag-version ${VERSION:+-r $VERSION} --dry-run", | ||
"release.check": "pnpm check.fix && commit-and-tag-version ${VERSION:+-r $VERSION} --dry-run", | ||
"release": "commit-and-tag-version ${VERSION:+-r $VERSION} && pnpm push && pnpm publish" | ||
} | ||
} |
@@ -9,2 +9,4 @@ <div class="markdown-body"> | ||
🛑 **IMPORTANT:** If you are upgrading from a version prior to 2.0.5, please note that `androidMaxAttempts` in [`AuthenticateOptions`](#authenticateoptions) is now the maximum consecutive failed attempts that are allowed, vs. the previous behavior which was maximum consecutive failed attempts + 1 (which was a bug). So if `androidMaxAttempts` is set to 3, [`authenticate`](#authenticate) will return `BiometryErrorType.authenticationFailed`as soon as the third consecutive attempt fails. | ||
## Demos | ||
@@ -159,3 +161,3 @@ | ||
|androidSubtitle|string| Subtitle for the Android dialog. If not supplied, the system default is used. | | ||
|androidMaxAttempts|number| The maximum number of failed biometric verification attempts before returning `BiometryError.authenticationFailed`. The default is 3. | | ||
|androidMaxAttempts|number| When this many consecutive biometric verification attempts fail, `authenticate` returns `BiometryErrorType.authenticationFailed`. The default is 3. | | ||
@@ -162,0 +164,0 @@ |
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
115076
34
196
28