@aparajita/capacitor-biometric-auth 2.0.7 → 2.0.8

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
@@ -62,14 +62,13 @@ On Android, fingerprint, face, and iris authentication are supported. Note that
62
62
  ## API
63
63
  <docgen-index>
64
64
 
65
- [checkBiometry()](#checkbiometry)
66
- [setBiometryType(...)](#setbiometrytype)
67
- [authenticate(...)](#authenticate)
68
- [addResumeListener(...)](#addresumelistener)
69
-
70
- [Interfaces](#interfaces)
71
- [Type Aliases](#type-aliases)
72
- [Enums](#enums)
65
+ * [`checkBiometry()`](#checkbiometry)
66
+ * [`setBiometryType(...)`](#setbiometrytype)
67
+ * [`authenticate(...)`](#authenticate)
68
+ * [`addResumeListener(...)`](#addresumelistener)
69
+ * [Interfaces](#interfaces)
70
+ * [Type Aliases](#type-aliases)
71
+ * [Enums](#enums)
73
72
 
74
73
  </docgen-index>
75
74
  <docgen-api>
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 } from './package.json';
3
+ import pkg from './pkg';
4
4
  import { BiometricAuth } from './web';
5
- console.log(`loaded ${name}`);
5
+ console.log(`loaded ${pkg.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. 😁
@@ -0,0 +1,4 @@
1
+ declare const pkg: {
2
+ name: string;
3
+ };
4
+ export default pkg;
@@ -0,0 +1,4 @@
1
+ const pkg = {
2
+ name: '@aparajita/capacitor-biometric-auth'
3
+ };
4
+ export default pkg;
@@ -64,7 +64,9 @@ class BiometryError {
64
64
  }
65
65
  const kPluginName = 'BiometricAuth';
66
66
 
67
- const name = "@aparajita/capacitor-biometric-auth";
67
+ const pkg = {
68
+ name: '@aparajita/capacitor-biometric-auth'
69
+ };
68
70
 
69
71
  var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) {
70
72
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -154,7 +156,7 @@ function getBiometryName(type) {
154
156
  return kBiometryTypeNameMap[type] || '';
155
157
  }
156
158
 
157
- console.log(`loaded ${name}`);
159
+ console.log(`loaded ${pkg.name}`);
158
160
  // Because we are using @aparajita/capacitor-native-decorator,
159
161
  // we have one version of the TS code to rule them all, and there
160
162
  // is no need to lazy load. 😁
package/dist/plugin.js CHANGED
@@ -59,7 +59,9 @@ var capacitorBiometricAuth = (function (exports, core, capacitorNativeDecorator,
59
59
  }
60
60
  const kPluginName = 'BiometricAuth';
61
61
 
62
- const name = "@aparajita/capacitor-biometric-auth";
62
+ const pkg = {
63
+ name: '@aparajita/capacitor-biometric-auth'
64
+ };
63
65
 
64
66
  var __decorate = (window && window.__decorate) || function (decorators, target, key, desc) {
65
67
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -149,7 +151,7 @@ var capacitorBiometricAuth = (function (exports, core, capacitorNativeDecorator,
149
151
  return kBiometryTypeNameMap[type] || '';
150
152
  }
151
153
 
152
- console.log(`loaded ${name}`);
154
+ console.log(`loaded ${pkg.name}`);
153
155
  // Because we are using @aparajita/capacitor-native-decorator,
154
156
  // we have one version of the TS code to rule them all, and there
155
157
  // 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.7",
3
+ "version": "2.0.8",
4
4
  "description": "Provides access to the native biometric auth APIs for Capacitor apps",
5
5
  "author": "Aparajita Fishman",
6
6
  "license": "MIT",
@@ -48,13 +48,13 @@
48
48
  "devDependencies": {
49
49
  "@aparajita/capacitor-docgen": "github:aparajita/capacitor-docgen",
50
50
  "@aparajita/capacitor-docgen-format": "github:aparajita/capacitor-docgen-format",
51
- "@aparajita/eslint-config-base": "^1.1.4",
51
+ "@aparajita/eslint-config-base": "^1.1.5",
52
52
  "@aparajita/prettier-config": "^1.0.0",
53
53
  "@aparajita/swiftly": "^1.0.4",
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.6",
57
+ "@types/node": "^18.6.0",
58
58
  "@typescript-eslint/eslint-plugin": "^5.30.7",
59
59
  "@typescript-eslint/parser": "^5.30.7",
60
60
  "chalk": "^5.0.1",
@@ -62,7 +62,7 @@
62
62
  "eslint": "^8.20.0",
63
63
  "eslint-config-prettier": "^8.5.0",
64
64
  "eslint-config-standard": "^17.0.0",
65
- "eslint-import-resolver-typescript": "^3.2.7",
65
+ "eslint-import-resolver-typescript": "^3.3.0",
66
66
  "eslint-plugin-import": "^2.26.0",
67
67
  "eslint-plugin-n": "^15.2.4",
68
68
  "eslint-plugin-prettier": "^4.2.1",
@@ -76,7 +76,7 @@
76
76
  "typescript": "~4.7.4"
77
77
  },
78
78
  "dependencies": {
79
- "@aparajita/capacitor-native-decorator": "^2.0.7",
79
+ "@aparajita/capacitor-native-decorator": "^2.0.8",
80
80
  "@capacitor/android": "^3.6.0",
81
81
  "@capacitor/app": "^1.1.1",
82
82
  "@capacitor/ios": "^3.6.0"
@@ -86,12 +86,13 @@
86
86
  },
87
87
  "scripts": {
88
88
  "clean": "rimraf ./dist",
89
- "build": "pnpm check.fix && pnpm builder",
90
- "build.dev": "pnpm check.fix && pnpm builder.dev",
89
+ "extract-pkg": "node scripts/packageJsonToTS.js",
90
+ "build": "pnpm extract-pkg && pnpm check.fix && pnpm builder",
91
+ "build.dev": "pnpm extract-pkg && pnpm check.fix && pnpm builder.dev",
91
92
  "builder": "pnpm clean && tsc $SOURCE_MAP && pnpm rollup && make-ios-plugin && pnpm docgen",
92
93
  "builder.dev": "SOURCE_MAP=--sourceMap pnpm builder",
93
94
  "rollup": "rollup -c rollup.config.mjs",
94
- "watcher": "nodemon -w ./src -w tsconfig.json -w rollup.config.mjs --exec 'pnpm $BUILD --silent' -e ts",
95
+ "watcher": "nodemon -w ./src -w tsconfig.json -w rollup.config.mjs --exec 'pnpm --silent $BUILD' -e ts,json,md",
95
96
  "watch": "BUILD=build pnpm watcher",
96
97
  "watch.dev": "BUILD=build.dev pnpm watcher",
97
98
  "lint": "eslint --cache . && pnpm typecheck",
@@ -1,117 +0,0 @@
1
- {
2
- "name": "@aparajita/capacitor-biometric-auth",
3
- "version": "2.0.7",
4
- "description": "Provides access to the native biometric auth APIs for Capacitor apps",
5
- "author": "Aparajita Fishman",
6
- "license": "MIT",
7
- "main": "dist/plugin.cjs.js",
8
- "module": "dist/esm/index.js",
9
- "types": "dist/esm/index.d.ts",
10
- "unpkg": "dist/plugin.js",
11
- "engines": {
12
- "node": ">=16.15.1"
13
- },
14
- "files": [
15
- "android/src/main/",
16
- "android/build.gradle",
17
- "dist/",
18
- "ios/Plugin/",
19
- "*.podspec",
20
- "LICENSE"
21
- ],
22
- "scripts": {
23
- "clean": "rimraf ./dist",
24
- "build": "pnpm check.fix && pnpm builder",
25
- "build.dev": "pnpm check.fix && pnpm builder.dev",
26
- "builder": "pnpm clean && tsc $SOURCE_MAP && pnpm rollup && make-ios-plugin && pnpm docgen",
27
- "builder.dev": "SOURCE_MAP=--sourceMap pnpm builder",
28
- "rollup": "rollup -c rollup.config.mjs",
29
- "watcher": "nodemon -w ./src -w tsconfig.json -w rollup.config.mjs --exec 'pnpm $BUILD --silent' -e ts",
30
- "watch": "BUILD=build pnpm watcher",
31
- "watch.dev": "BUILD=build.dev pnpm watcher",
32
- "lint": "eslint --cache . && pnpm typecheck",
33
- "lint.fix": "eslint --cache --fix . && pnpm typecheck",
34
- "typecheck": "tsc --noEmit",
35
- "lint.swift": "pnpm swiftlint",
36
- "prettier": "prettier --check \"**/*.{css,html,ts,js,json,java}\"",
37
- "prettier.fix": "pnpm prettier --write",
38
- "swiftlint": "swiftly ios",
39
- "swiftlint.fix": "swiftly --fix ios",
40
- "check": "pnpm lint && pnpm prettier && pnpm swiftlint",
41
- "check.fix": "pnpm lint.fix && pnpm prettier.fix && pnpm swiftlint.fix",
42
- "docgen": "docgen --api BiometricAuthPlugin --output-readme README.md && docgen-format",
43
- "verify": "pnpm verify:ios && pnpm verify:android && pnpm verify:web",
44
- "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin && cd ..",
45
- "verify:android": "cd android && ./gradlew clean build test && cd ..",
46
- "verify:web": "pnpm build",
47
- "push": "git push --follow-tags origin main",
48
- "release.check": "pnpm check.fix && commit-and-tag-version ${VERSION:+-r $VERSION} --dry-run",
49
- "release.prepare": "commit-and-tag-version ${VERSION:+-r $VERSION} && pnpm builder",
50
- "release": "pnpm push && pnpm publish"
51
- },
52
- "keywords": [
53
- "capacitor",
54
- "plugin",
55
- "native",
56
- "biometry",
57
- "biometric",
58
- "auth",
59
- "faceid",
60
- "touchid"
61
- ],
62
- "capacitor": {
63
- "ios": {
64
- "src": "ios"
65
- },
66
- "android": {
67
- "src": "android"
68
- }
69
- },
70
- "swiftlint": "@ionic/swiftlint-config",
71
- "repository": {
72
- "type": "git",
73
- "url": "https://github.com/aparajita/capacitor-biometric-auth.git"
74
- },
75
- "bugs": {
76
- "url": "https://github.com/aparajita/capacitor-biometric-auth/issues"
77
- },
78
- "devDependencies": {
79
- "@aparajita/capacitor-docgen": "github:aparajita/capacitor-docgen",
80
- "@aparajita/capacitor-docgen-format": "github:aparajita/capacitor-docgen-format",
81
- "@aparajita/eslint-config-base": "^1.1.4",
82
- "@aparajita/prettier-config": "^1.0.0",
83
- "@aparajita/swiftly": "^1.0.4",
84
- "@capacitor/core": "^3.6.0",
85
- "@ionic/swiftlint-config": "^1.1.2",
86
- "@rollup/plugin-json": "^4.1.0",
87
- "@types/node": "^18.0.6",
88
- "@typescript-eslint/eslint-plugin": "^5.30.7",
89
- "@typescript-eslint/parser": "^5.30.7",
90
- "chalk": "^5.0.1",
91
- "commit-and-tag-version": "^10.0.1",
92
- "eslint": "^8.20.0",
93
- "eslint-config-prettier": "^8.5.0",
94
- "eslint-config-standard": "^17.0.0",
95
- "eslint-import-resolver-typescript": "^3.2.7",
96
- "eslint-plugin-import": "^2.26.0",
97
- "eslint-plugin-n": "^15.2.4",
98
- "eslint-plugin-prettier": "^4.2.1",
99
- "eslint-plugin-promise": "^6.0.0",
100
- "nodemon": "^2.0.19",
101
- "prettier": "^2.7.1",
102
- "prettier-plugin-java": "^1.6.2",
103
- "rimraf": "^3.0.2",
104
- "rollup": "^2.77.0",
105
- "swiftlint": "^1.0.1",
106
- "typescript": "~4.7.4"
107
- },
108
- "dependencies": {
109
- "@aparajita/capacitor-native-decorator": "^2.0.7",
110
- "@capacitor/android": "^3.6.0",
111
- "@capacitor/app": "^1.1.1",
112
- "@capacitor/ios": "^3.6.0"
113
- },
114
- "peerDependencies": {
115
- "@capacitor/core": "^3.6.0"
116
- }
117
- }