@aparajita/capacitor-biometric-auth 8.0.2 → 9.1.0

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/package.json CHANGED
@@ -1,15 +1,25 @@
1
1
  {
2
2
  "name": "@aparajita/capacitor-biometric-auth",
3
- "version": "8.0.2",
4
- "description": "Provides access to the native biometric auth & device security APIs for Capacitor apps",
3
+ "version": "9.1.0",
4
+ "description": "Provides access to the native biometric auth & device security APIs for Capacitor 7+ apps",
5
5
  "author": "Aparajita Fishman",
6
6
  "license": "MIT",
7
- "main": "dist/plugin.cjs.js",
7
+ "type": "module",
8
+ "main": "dist/plugin.cjs",
8
9
  "module": "dist/esm/index.js",
9
10
  "types": "dist/esm/index.d.ts",
10
- "unpkg": "dist/plugin.js",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/esm/index.d.ts",
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/plugin.cjs",
16
+ "default": "./dist/esm/index.js"
17
+ },
18
+ "./package.json": "./package.json",
19
+ "./dist/*": "./dist/*"
20
+ },
11
21
  "engines": {
12
- "node": ">=18"
22
+ "node": ">=20.0.0"
13
23
  },
14
24
  "files": [
15
25
  "android/src/main/",
@@ -22,7 +32,15 @@
22
32
  "commit-and-tag-version": {
23
33
  "scripts": {
24
34
  "postbump": "pnpm builder"
25
- }
35
+ },
36
+ "bumpFiles": [
37
+ "package.json",
38
+ "demo/package.json",
39
+ {
40
+ "filename": "android/build.gradle",
41
+ "updater": "scripts/gradle-updater.mjs"
42
+ }
43
+ ]
26
44
  },
27
45
  "keywords": [
28
46
  "capacitor",
@@ -44,6 +62,7 @@
44
62
  }
45
63
  },
46
64
  "swiftlint": "@ionic/swiftlint-config",
65
+ "prettier": "@aparajita/prettier-config",
47
66
  "repository": {
48
67
  "type": "git",
49
68
  "url": "https://github.com/aparajita/capacitor-biometric-auth.git"
@@ -54,59 +73,68 @@
54
73
  "devDependencies": {
55
74
  "@aparajita/capacitor-docgen": "github:aparajita/capacitor-docgen",
56
75
  "@aparajita/capacitor-docgen-format": "github:aparajita/capacitor-docgen-format",
57
- "@aparajita/eslint-config-base": "^1.1.6",
58
76
  "@aparajita/prettier-config": "^2.0.0",
59
- "@aparajita/swiftly": "^1.0.4",
60
- "@capacitor/cli": "^6.1.0",
61
- "@commitlint/cli": "^19.3.0",
62
- "@commitlint/config-conventional": "^19.2.2",
63
- "@ionic/swiftlint-config": "^1.1.2",
77
+ "@aparajita/swiftly": "^2.0.0",
78
+ "@capacitor/android": "^7.4.4",
79
+ "@capacitor/app": "^7.1.0",
80
+ "@capacitor/cli": "^7.4.4",
81
+ "@capacitor/core": "^7.4.4",
82
+ "@capacitor/ios": "^7.4.4",
83
+ "@commitlint/cli": "^20.1.0",
84
+ "@commitlint/config-conventional": "^20.0.0",
85
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
86
+ "@eslint/js": "^9.38.0",
87
+ "@ionic/swiftlint-config": "^2.0.0",
64
88
  "@rollup/plugin-json": "^6.1.0",
65
- "@types/node": "^20.14.10",
66
- "@typescript-eslint/eslint-plugin": "^7.16.1",
67
- "@typescript-eslint/parser": "^7.16.1",
68
- "commit-and-tag-version": "^12.4.1",
69
- "eslint": "^8.57.0",
70
- "eslint-config-prettier": "^9.1.0",
71
- "eslint-config-standard": "^17.1.0",
72
- "eslint-import-resolver-typescript": "^3.6.1",
73
- "eslint-plugin-import": "^2.29.1",
74
- "eslint-plugin-n": "^16.6.2",
75
- "eslint-plugin-promise": "^6.4.0",
76
- "nodemon": "^3.1.4",
77
- "prettier": "^3.3.3",
78
- "prettier-plugin-java": "^2.6.4",
89
+ "@types/node": "^24.9.1",
90
+ "@vue/eslint-config-typescript": "^14.6.0",
91
+ "commit-and-tag-version": "^12.6.0",
92
+ "eslint": "^9.38.0",
93
+ "eslint-config-prettier": "^10.1.8",
94
+ "eslint-import-resolver-typescript": "^4.4.4",
95
+ "eslint-plugin-import": "^2.32.0",
96
+ "eslint-plugin-oxlint": "^1.24.0",
97
+ "eslint-plugin-unicorn": "^61.0.2",
98
+ "eslint-plugin-vue": "^10.5.1",
99
+ "globals": "^16.4.0",
100
+ "neostandard": "^0.12.2",
101
+ "nodemon": "^3.1.10",
102
+ "oxlint": "^1.24.0",
103
+ "prettier": "^3.6.2",
104
+ "prettier-plugin-java": "^2.7.7",
79
105
  "rimraf": "^6.0.1",
80
- "rollup": "^4.18.1",
81
- "simple-git-hooks": "^2.11.1",
82
- "swiftlint": "^1.0.2",
83
- "typescript": "~5.5.3"
84
- },
85
- "dependencies": {
86
- "@capacitor/android": "^6.1.0",
87
- "@capacitor/app": "^6.0.0",
88
- "@capacitor/core": "^6.1.0",
89
- "@capacitor/ios": "^6.1.0"
106
+ "rollup": "^4.52.5",
107
+ "simple-git-hooks": "^2.13.1",
108
+ "swiftlint": "^2.0.0",
109
+ "typescript": "~5.9.3",
110
+ "typescript-eslint": "^8.46.2",
111
+ "vue-tsc": "^3.1.1"
90
112
  },
91
113
  "scripts": {
92
114
  "clean": "rimraf dist",
93
- "lint.eslint": "eslint --fix --cache --ext .js,.cjs,.mjs,.ts --max-warnings 0",
94
- "lint.prettier": "prettier --write --cache --list-different",
95
- "lint.tsc": "tsc --noEmit",
96
- "lint": "pnpm lint.eslint . && pnpm lint.prettier '**/*.{js,mjs,ts,json,md,java}' && pnpm lint.tsc && swiftly ios",
115
+ "format": "prettier --write --cache --log-level error \"**/*.{js,cjs,mjs,ts,vue,md,json,css}\"",
116
+ "lint.oxlint": "oxlint --config=oxlint.config.jsonc --deny-warnings --fix",
117
+ "lint.eslint": "eslint --cache --fix \"**/*.{js,cjs,mjs,ts,vue}\"",
118
+ "lint.tsc": "vue-tsc --noEmit --skipLibCheck",
119
+ "lint.swift": "swiftly ios/Plugin/**/*.swift && swiftly demo/ios/App/App/**/*.swift",
120
+ "lint": "pnpm format && pnpm lint.oxlint && pnpm lint.eslint && pnpm lint.tsc && pnpm lint.swift",
97
121
  "prebuilder": "pnpm clean",
98
- "builder": "tsc ${SOURCE_MAP:-} && rollup -c rollup.config.mjs",
122
+ "builder": "vue-tsc ${SOURCE_MAP:-} && rollup -c rollup.config.mjs",
99
123
  "prebuild": "pnpm lint",
100
124
  "build": "pnpm builder",
101
125
  "build.dev": "SOURCE_MAP=--sourceMap pnpm build",
102
126
  "watch": "nodemon --exec 'pnpm build.dev'",
103
- "docgen": "docgen --api BiometricAuthPlugin --output-readme README.md && docgen-format && pnpm lint.prettier README.md",
104
127
  "open.ios": "open ios/Plugin.xcworkspace",
105
128
  "open.android": "open -b com.google.android.studio android",
106
- "verify.ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -quiet && cd ..",
107
- "verify.android": "cd android && ./gradlew clean build test && cd ..",
108
- "verify": "pnpm verify.ios && pnpm verify.android",
109
- "prerelease": "scripts/ensure-clean.sh && pnpm build && pnpm docgen && git add README.md",
110
- "release": "commit-and-tag-version --commit-all && git push --follow-tags && pnpm publish"
129
+ "demo.dev": "pnpm --filter @aparajita/capacitor-biometric-auth-demo dev",
130
+ "demo.build": "pnpm --filter @aparajita/capacitor-biometric-auth-demo build",
131
+ "demo.ios": "pnpm build && pnpm --filter @aparajita/capacitor-biometric-auth-demo ios",
132
+ "demo.ios.dev": "pnpm --filter @aparajita/capacitor-biometric-auth-demo ios.dev",
133
+ "demo.android": "pnpm build && pnpm --filter @aparajita/capacitor-biometric-auth-demo android",
134
+ "demo.android.dev": "pnpm --filter @aparajita/capacitor-biometric-auth-demo android.dev",
135
+ "prerelease": "pnpm build",
136
+ "tag": "commit-and-tag-version",
137
+ "tag.preview": "pnpm tag --dry-run",
138
+ "release": "./scripts/release.sh"
111
139
  }
112
140
  }
@@ -1,10 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
-
3
- //! Project version number for Plugin.
4
- FOUNDATION_EXPORT double PluginVersionNumber;
5
-
6
- //! Project version string for Plugin.
7
- FOUNDATION_EXPORT const unsigned char PluginVersionString[];
8
-
9
- // In this header, you should import all the public headers of your framework using statements like #import <Plugin/PublicHeader.h>
10
-
@@ -1,7 +0,0 @@
1
- #import <Foundation/Foundation.h>
2
- #import <Capacitor/Capacitor.h>
3
-
4
- CAP_PLUGIN(BiometricAuthNative, "BiometricAuthNative",
5
- CAP_PLUGIN_METHOD(checkBiometry, CAPPluginReturnPromise);
6
- CAP_PLUGIN_METHOD(internalAuthenticate, CAPPluginReturnPromise);
7
- )