@aparajita/capacitor-biometric-auth 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/base.js CHANGED
@@ -12,8 +12,8 @@ export class BiometricAuthBase extends WebPlugin {
12
12
  // an instance of BiometryError on the web.
13
13
  if (error instanceof CapacitorException) {
14
14
  throw new BiometryError(error.message,
15
- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- error.data values are typed as any
16
- error.data.code);
15
+ // eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- we are converting from ExceptionCode to BiometryErrorType
16
+ error.code);
17
17
  }
18
18
  else {
19
19
  throw error;
@@ -98,8 +98,8 @@ class BiometricAuthBase extends core.WebPlugin {
98
98
  // an instance of BiometryError on the web.
99
99
  if (error instanceof core.CapacitorException) {
100
100
  throw new BiometryError(error.message,
101
- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- error.data values are typed as any
102
- error.data.code);
101
+ // eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- we are converting from ExceptionCode to BiometryErrorType
102
+ error.code);
103
103
  }
104
104
  else {
105
105
  throw error;
package/dist/plugin.js CHANGED
@@ -96,8 +96,8 @@ var capacitorBiometricAuth = (function (exports, core, app) {
96
96
  // an instance of BiometryError on the web.
97
97
  if (error instanceof core.CapacitorException) {
98
98
  throw new BiometryError(error.message,
99
- // eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- error.data values are typed as any
100
- error.data.code);
99
+ // eslint-disable-next-line @typescript-eslint/consistent-type-assertions -- we are converting from ExceptionCode to BiometryErrorType
100
+ error.code);
101
101
  }
102
102
  else {
103
103
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aparajita/capacitor-biometric-auth",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Provides access to the native biometric auth APIs for Capacitor apps",
5
5
  "author": "Aparajita Fishman",
6
6
  "license": "MIT",