@aparajita/capacitor-biometric-auth 2.0.1 → 2.0.4

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/README.md CHANGED
@@ -1,11 +1,19 @@
1
1
  <div class="markdown-body">
2
2
 
3
- # capacitor-biometric-auth
3
+ # capacitor-biometric-auth&nbsp;&nbsp;[![npm version](https://badge.fury.io/js/@aparajita%2Fcapacitor-biometric-auth.svg)](https://badge.fury.io/js/@aparajita%2Fcapacitor-biometric-auth)
4
4
 
5
5
  This plugin for [Capacitor 3](https://capacitorjs.com) provides access to native biometry on iOS and Android. It supports every type of biometry and every configuration option on both platforms. In addition, biometry is simulated on the web so you can test your logic without making any changes to your code.
6
6
 
7
7
  👉 **NOTE:** This plugin only works with Capacitor 3. If you are upgrading from the Capacitor 2 version, note that the plugin name has changed to `BiometricAuth`.
8
8
 
9
+ ## Demos
10
+
11
+ Here is `capacitor-biometric-auth` running on the [demo app](https://github.com/aparajita/capacitor-biometric-auth-demo) on both iOS and Android.
12
+
13
+ |iOS|Android|
14
+ |---|-------|
15
+ |<video src="https://user-images.githubusercontent.com/22218/177023147-1f9abce4-2dc3-4157-8bf1-d8d9fdba3977.mp4" width="352" />|<video src="https://user-images.githubusercontent.com/22218/177023168-d7c18a4b-a2f9-49f9-ae39-40884219c128.mp4" width="365" />|
16
+
9
17
  ## Installation
10
18
 
11
19
  ```sh
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { registerPlugin } from '@capacitor/core';
2
2
  import { kPluginName } from './definitions';
3
- import { name, version } from './package.json';
3
+ import { name } from './package.json';
4
4
  import { BiometricAuth } from './web';
5
- console.log(`loaded ${name} v${version}`);
5
+ console.log(`loaded ${name}`);
6
6
  // Because we are using @aparajita/capacitor-native-decorator,
7
7
  // we have one version of the TS code to rule them all, and there
8
8
  // is no need to lazy load. 😁
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aparajita/capacitor-biometric-auth",
3
- "version": "2.0.0",
3
+ "version": "2.0.3",
4
4
  "description": "Provides access to the native biometric auth APIs for Capacitor apps",
5
5
  "author": "Aparajita Fishman",
6
6
  "license": "MIT",
@@ -42,8 +42,9 @@
42
42
  "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..",
43
43
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
44
44
  "verify:web": "pnpm build",
45
- "release": "commit-and-tag-version",
46
- "push": "git push --follow-tags origin main"
45
+ "push": "git push --follow-tags origin main",
46
+ "release.check": "commit-and-tag-version ${VERSION:+-r $VERSION} --dry-run",
47
+ "release": "commit-and-tag-version ${VERSION:+-r $VERSION} && pnpm push && pnpm publish"
47
48
  },
48
49
  "keywords": [
49
50
  "capacitor",
@@ -66,7 +67,7 @@
66
67
  "swiftlint": "@ionic/swiftlint-config",
67
68
  "repository": {
68
69
  "type": "git",
69
- "url": "https://github.com/aparajita/capacitor-biometric-auth"
70
+ "url": "https://github.com/aparajita/capacitor-biometric-auth.git"
70
71
  },
71
72
  "bugs": {
72
73
  "url": "https://github.com/aparajita/capacitor-biometric-auth/issues"
@@ -76,19 +77,19 @@
76
77
  "@aparajita/capacitor-docgen-format": "github:aparajita/capacitor-docgen-format",
77
78
  "@aparajita/eslint-config-base": "^1.1.2",
78
79
  "@aparajita/prettier-config": "^1.0.0",
79
- "@aparajita/swiftly": "^1.0.0",
80
+ "@aparajita/swiftly": "^1.0.1",
80
81
  "@capacitor/core": "^3.6.0",
81
82
  "@ionic/swiftlint-config": "^1.1.2",
82
83
  "@rollup/plugin-json": "^4.1.0",
83
- "@types/node": "^18.0.0",
84
- "@typescript-eslint/eslint-plugin": "^5.30.3",
85
- "@typescript-eslint/parser": "^5.30.3",
84
+ "@types/node": "^18.0.1",
85
+ "@typescript-eslint/eslint-plugin": "^5.30.4",
86
+ "@typescript-eslint/parser": "^5.30.4",
86
87
  "chalk": "^5.0.1",
87
88
  "commit-and-tag-version": "^10.0.1",
88
89
  "eslint": "^8.19.0",
89
90
  "eslint-config-prettier": "^8.5.0",
90
91
  "eslint-config-standard": "^17.0.0",
91
- "eslint-import-resolver-typescript": "^3.1.4",
92
+ "eslint-import-resolver-typescript": "^3.2.0",
92
93
  "eslint-plugin-import": "^2.26.0",
93
94
  "eslint-plugin-n": "^15.2.3",
94
95
  "eslint-plugin-prettier": "^4.2.1",
@@ -101,7 +102,7 @@
101
102
  "typescript": "~4.7.4"
102
103
  },
103
104
  "dependencies": {
104
- "@aparajita/capacitor-native-decorator": "^2.0.2",
105
+ "@aparajita/capacitor-native-decorator": "^2.0.4",
105
106
  "@capacitor/android": "^3.6.0",
106
107
  "@capacitor/app": "^1.1.1",
107
108
  "@capacitor/ios": "^3.6.0"
@@ -65,7 +65,6 @@ class BiometryError {
65
65
  const kPluginName = 'BiometricAuth';
66
66
 
67
67
  const name = "@aparajita/capacitor-biometric-auth";
68
- const version = "2.0.0";
69
68
 
70
69
  var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) {
71
70
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -155,7 +154,7 @@ function getBiometryName(type) {
155
154
  return kBiometryTypeNameMap[type] || '';
156
155
  }
157
156
 
158
- console.log(`loaded ${name} v${version}`);
157
+ console.log(`loaded ${name}`);
159
158
  // Because we are using @aparajita/capacitor-native-decorator,
160
159
  // we have one version of the TS code to rule them all, and there
161
160
  // is no need to lazy load. 😁
package/dist/plugin.js CHANGED
@@ -60,7 +60,6 @@ var capacitorBiometricAuth = (function (exports, core, capacitorNativeDecorator,
60
60
  const kPluginName = 'BiometricAuth';
61
61
 
62
62
  const name = "@aparajita/capacitor-biometric-auth";
63
- const version = "2.0.0";
64
63
 
65
64
  var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) {
66
65
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -150,7 +149,7 @@ var capacitorBiometricAuth = (function (exports, core, capacitorNativeDecorator,
150
149
  return kBiometryTypeNameMap[type] || '';
151
150
  }
152
151
 
153
- console.log(`loaded ${name} v${version}`);
152
+ console.log(`loaded ${name}`);
154
153
  // Because we are using @aparajita/capacitor-native-decorator,
155
154
  // we have one version of the TS code to rule them all, and there
156
155
  // is no need to lazy load. 😁
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aparajita/capacitor-biometric-auth",
3
- "version": "2.0.1",
3
+ "version": "2.0.4",
4
4
  "description": "Provides access to the native biometric auth APIs for Capacitor apps",
5
5
  "author": "Aparajita Fishman",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "swiftlint": "@ionic/swiftlint-config",
41
41
  "repository": {
42
42
  "type": "git",
43
- "url": "https://github.com/aparajita/capacitor-biometric-auth"
43
+ "url": "https://github.com/aparajita/capacitor-biometric-auth.git"
44
44
  },
45
45
  "bugs": {
46
46
  "url": "https://github.com/aparajita/capacitor-biometric-auth/issues"
@@ -50,21 +50,21 @@
50
50
  "@aparajita/capacitor-docgen-format": "github:aparajita/capacitor-docgen-format",
51
51
  "@aparajita/eslint-config-base": "^1.1.2",
52
52
  "@aparajita/prettier-config": "^1.0.0",
53
- "@aparajita/swiftly": "^1.0.0",
53
+ "@aparajita/swiftly": "^1.0.1",
54
54
  "@capacitor/core": "^3.6.0",
55
55
  "@ionic/swiftlint-config": "^1.1.2",
56
56
  "@rollup/plugin-json": "^4.1.0",
57
- "@types/node": "^18.0.0",
58
- "@typescript-eslint/eslint-plugin": "^5.30.3",
59
- "@typescript-eslint/parser": "^5.30.3",
57
+ "@types/node": "^18.0.1",
58
+ "@typescript-eslint/eslint-plugin": "^5.30.5",
59
+ "@typescript-eslint/parser": "^5.30.5",
60
60
  "chalk": "^5.0.1",
61
61
  "commit-and-tag-version": "^10.0.1",
62
62
  "eslint": "^8.19.0",
63
63
  "eslint-config-prettier": "^8.5.0",
64
64
  "eslint-config-standard": "^17.0.0",
65
- "eslint-import-resolver-typescript": "^3.1.4",
65
+ "eslint-import-resolver-typescript": "^3.2.1",
66
66
  "eslint-plugin-import": "^2.26.0",
67
- "eslint-plugin-n": "^15.2.3",
67
+ "eslint-plugin-n": "^15.2.4",
68
68
  "eslint-plugin-prettier": "^4.2.1",
69
69
  "eslint-plugin-promise": "^6.0.0",
70
70
  "nodemon": "^2.0.18",
@@ -75,7 +75,7 @@
75
75
  "typescript": "~4.7.4"
76
76
  },
77
77
  "dependencies": {
78
- "@aparajita/capacitor-native-decorator": "^2.0.2",
78
+ "@aparajita/capacitor-native-decorator": "^2.0.4",
79
79
  "@capacitor/android": "^3.6.0",
80
80
  "@capacitor/app": "^1.1.1",
81
81
  "@capacitor/ios": "^3.6.0"
@@ -106,7 +106,8 @@
106
106
  "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..",
107
107
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
108
108
  "verify:web": "pnpm build",
109
- "release": "commit-and-tag-version",
110
- "push": "git push --follow-tags origin main"
109
+ "push": "git push --follow-tags origin main",
110
+ "release.check": "commit-and-tag-version ${VERSION:+-r $VERSION} --dry-run",
111
+ "release": "commit-and-tag-version ${VERSION:+-r $VERSION} && pnpm push && pnpm publish"
111
112
  }
112
113
  }