@capgo/capacitor-nfc 8.0.1 → 8.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.
|
@@ -4,7 +4,7 @@ import UIKit
|
|
|
4
4
|
|
|
5
5
|
@objc(NfcPlugin)
|
|
6
6
|
public class NfcPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
7
|
-
private let pluginVersion: String = "8.0.
|
|
7
|
+
private let pluginVersion: String = "8.0.4"
|
|
8
8
|
|
|
9
9
|
public let identifier = "NfcPlugin"
|
|
10
10
|
public let jsName = "CapacitorNfc"
|
|
@@ -274,7 +274,7 @@ public class NfcPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
274
274
|
if let miFare = tag as? NFCMiFareTag {
|
|
275
275
|
return miFare.identifier
|
|
276
276
|
}
|
|
277
|
-
if
|
|
277
|
+
if let iso7816 = tag as? NFCISO7816Tag {
|
|
278
278
|
return iso7816.identifier
|
|
279
279
|
}
|
|
280
280
|
if let iso15693 = tag as? NFCISO15693Tag {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-nfc",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.4",
|
|
4
4
|
"description": "Native NFC tag discovery, reading and writing for Capacitor apps on iOS and Android.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"bugs": {
|
|
25
25
|
"url": "https://github.com/Cap-go/capacitor-nfc/issues"
|
|
26
26
|
},
|
|
27
|
+
"homepage": "https://capgo.app/docs/plugins/nfc/",
|
|
27
28
|
"keywords": [
|
|
28
29
|
"capacitor",
|
|
29
30
|
"capacitor-plugin",
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
41
42
|
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
42
43
|
"eslint": "eslint . --ext .ts",
|
|
43
|
-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
44
|
+
"prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
44
45
|
"swiftlint": "node-swiftlint",
|
|
45
46
|
"docgen": "docgen --api CapacitorNfcPlugin --output-readme README.md --output-json dist/docs.json",
|
|
46
47
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
@@ -66,7 +67,8 @@
|
|
|
66
67
|
"rimraf": "^6.1.0",
|
|
67
68
|
"rollup": "^4.53.2",
|
|
68
69
|
"swiftlint": "^2.0.0",
|
|
69
|
-
"typescript": "^5.9.3"
|
|
70
|
+
"typescript": "^5.9.3",
|
|
71
|
+
"prettier-pretty-check": "^0.2.0"
|
|
70
72
|
},
|
|
71
73
|
"peerDependencies": {
|
|
72
74
|
"@capacitor/core": ">=8.0.0"
|