@aparajita/capacitor-biometric-auth 3.0.1 → 3.0.2
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/definitions.d.ts +0 -2
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/info.json +1 -1
- package/dist/plugin.cjs.js +3 -3
- package/dist/plugin.js +3 -3
- package/package.json +5 -4
|
@@ -186,8 +186,6 @@ export interface BiometricAuthPlugin extends DecoratedNativePlugin {
|
|
|
186
186
|
/**
|
|
187
187
|
* Register a function that will be called when the app resumes.
|
|
188
188
|
* The function will be passed the result of `checkBiometry()`.
|
|
189
|
-
*
|
|
190
|
-
* @returns {boolean} true if the listener is successfully added
|
|
191
189
|
*/
|
|
192
190
|
addResumeListener: (listener: ResumeListener) => Promise<PluginListenerHandle>;
|
|
193
191
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const
|
|
1
|
+
import { BiometricAuth } from './web';
|
|
2
|
+
declare const plugin: BiometricAuth;
|
|
3
3
|
export * from './definitions';
|
|
4
|
-
export {
|
|
4
|
+
export { plugin as BiometricAuth };
|
|
5
5
|
export { getBiometryName } from './web';
|
package/dist/esm/index.js
CHANGED
|
@@ -7,11 +7,11 @@ console.log(`loaded ${info.name} v${info.version}`);
|
|
|
7
7
|
// we have one version of the TS code to rule them all, and there
|
|
8
8
|
// is no need to lazy load. 😁
|
|
9
9
|
const plugin = new BiometricAuth();
|
|
10
|
-
|
|
10
|
+
registerPlugin(kPluginName, {
|
|
11
11
|
web: plugin,
|
|
12
12
|
ios: plugin,
|
|
13
13
|
android: plugin
|
|
14
14
|
});
|
|
15
15
|
export * from './definitions';
|
|
16
|
-
export {
|
|
16
|
+
export { plugin as BiometricAuth };
|
|
17
17
|
export { getBiometryName } from './web';
|
package/dist/esm/info.json
CHANGED
package/dist/plugin.cjs.js
CHANGED
|
@@ -67,7 +67,7 @@ const kPluginName = 'BiometricAuth';
|
|
|
67
67
|
|
|
68
68
|
var info = {
|
|
69
69
|
name: "@aparajita/capacitor-biometric-auth",
|
|
70
|
-
version: "3.0.
|
|
70
|
+
version: "3.0.2"
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
const kBiometryTypeNameMap = {
|
|
@@ -157,13 +157,13 @@ console.log(`loaded ${info.name} v${info.version}`);
|
|
|
157
157
|
// we have one version of the TS code to rule them all, and there
|
|
158
158
|
// is no need to lazy load. 😁
|
|
159
159
|
const plugin = new BiometricAuth();
|
|
160
|
-
|
|
160
|
+
core.registerPlugin(kPluginName, {
|
|
161
161
|
web: plugin,
|
|
162
162
|
ios: plugin,
|
|
163
163
|
android: plugin
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
exports.BiometricAuth =
|
|
166
|
+
exports.BiometricAuth = plugin;
|
|
167
167
|
exports.BiometryError = BiometryError;
|
|
168
168
|
exports.getBiometryName = getBiometryName;
|
|
169
169
|
exports.kPluginName = kPluginName;
|
package/dist/plugin.js
CHANGED
|
@@ -61,7 +61,7 @@ var capacitorBiometricAuth = (function (exports, core, tslib, capacitorNativeDec
|
|
|
61
61
|
|
|
62
62
|
var info = {
|
|
63
63
|
name: "@aparajita/capacitor-biometric-auth",
|
|
64
|
-
version: "3.0.
|
|
64
|
+
version: "3.0.2"
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
const kBiometryTypeNameMap = {
|
|
@@ -151,13 +151,13 @@ var capacitorBiometricAuth = (function (exports, core, tslib, capacitorNativeDec
|
|
|
151
151
|
// we have one version of the TS code to rule them all, and there
|
|
152
152
|
// is no need to lazy load. 😁
|
|
153
153
|
const plugin = new BiometricAuth();
|
|
154
|
-
|
|
154
|
+
core.registerPlugin(kPluginName, {
|
|
155
155
|
web: plugin,
|
|
156
156
|
ios: plugin,
|
|
157
157
|
android: plugin
|
|
158
158
|
});
|
|
159
159
|
|
|
160
|
-
exports.BiometricAuth =
|
|
160
|
+
exports.BiometricAuth = plugin;
|
|
161
161
|
exports.BiometryError = BiometryError;
|
|
162
162
|
exports.getBiometryName = getBiometryName;
|
|
163
163
|
exports.kPluginName = kPluginName;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aparajita/capacitor-biometric-auth",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Provides access to the native biometric auth APIs for Capacitor apps",
|
|
5
5
|
"author": "Aparajita Fishman",
|
|
6
6
|
"license": "MIT",
|
|
@@ -97,13 +97,14 @@
|
|
|
97
97
|
"tslib": "^2.4.0"
|
|
98
98
|
},
|
|
99
99
|
"scripts": {
|
|
100
|
+
"clean": "rimraf dist",
|
|
100
101
|
"extract-info": "node scripts/extractPackageInfo.js",
|
|
101
102
|
"lint.eslint": "eslint --fix --cache --ext .js,.cjs,.mjs,.ts --max-warnings 0",
|
|
102
103
|
"lint.prettier": "prettier --write --cache --list-different",
|
|
103
104
|
"lint.tsc": "tsc --noEmit",
|
|
104
105
|
"lint": "pnpm -s extract-info && pnpm -s lint.eslint . && pnpm -s lint.prettier . && pnpm -s lint.tsc",
|
|
105
106
|
"tsc": "tsc ${SOURCE_MAP}",
|
|
106
|
-
"builder": "pnpm -s extract-info &&
|
|
107
|
+
"builder": "pnpm -s extract-info && pnpm -s clean && pnpm -s tsc && rollup -c rollup.config.mjs",
|
|
107
108
|
"build": "pnpm -s builder",
|
|
108
109
|
"build.dev": "SOURCE_MAP=--sourceMap pnpm -s builder",
|
|
109
110
|
"watch": "nodemon --exec 'pnpm -s build.dev'",
|
|
@@ -113,7 +114,7 @@
|
|
|
113
114
|
"verify.ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -quiet && cd ..",
|
|
114
115
|
"verify.android": "cd android && ./gradlew clean build test && cd ..",
|
|
115
116
|
"verify": "pnpm verify.ios && pnpm verify.android",
|
|
116
|
-
"release.pre": "scripts/ensure-clean.sh && pnpm -s lint",
|
|
117
|
-
"release": "pnpm -s release.pre && commit-and-tag-version && git push --follow-tags && pnpm publish"
|
|
117
|
+
"release.pre": "scripts/ensure-clean.sh && pnpm -s lint && pnpm -s docgen && git add README.md",
|
|
118
|
+
"release": "pnpm -s release.pre && commit-and-tag-version --commit-all && git push --follow-tags && pnpm publish"
|
|
118
119
|
}
|
|
119
120
|
}
|