@capgo/capacitor-document-scanner 8.1.2 → 8.1.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,6 @@ import VisionKit
|
|
|
4
4
|
/**
|
|
5
5
|
Handles presenting the VisionKit document scanner and returning results.
|
|
6
6
|
*/
|
|
7
|
-
@available(iOS 13.0, *)
|
|
8
7
|
class DocScanner: NSObject, VNDocumentCameraViewControllerDelegate {
|
|
9
8
|
private weak var viewController: UIViewController?
|
|
10
9
|
private var successHandler: ([String]) -> Void
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import Capacitor
|
|
2
2
|
import Foundation
|
|
3
3
|
|
|
4
|
-
@available(iOS 13.0, *)
|
|
5
4
|
@objc(DocumentScannerPlugin)
|
|
6
5
|
public class DocumentScannerPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
7
|
-
private let pluginVersion: String = "8.1.
|
|
6
|
+
private let pluginVersion: String = "8.1.4"
|
|
8
7
|
public let identifier = "DocumentScannerPlugin"
|
|
9
8
|
public let jsName = "DocumentScanner"
|
|
10
9
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-document-scanner",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.4",
|
|
4
4
|
"description": "Capacitor plugin to scan document iOS and Android",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
39
39
|
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
|
|
40
40
|
"eslint": "eslint . --ext ts",
|
|
41
|
-
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
41
|
+
"prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
|
|
42
42
|
"swiftlint": "node-swiftlint",
|
|
43
43
|
"docgen": "docgen --api DocumentScannerPlugin --output-readme README.md --output-json dist/docs.json",
|
|
44
44
|
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"rimraf": "^6.1.0",
|
|
63
63
|
"rollup": "^4.53.2",
|
|
64
64
|
"swiftlint": "^2.0.0",
|
|
65
|
-
"typescript": "^5.9.3"
|
|
65
|
+
"typescript": "^5.9.3",
|
|
66
|
+
"prettier-pretty-check": "^0.2.0"
|
|
66
67
|
},
|
|
67
68
|
"peerDependencies": {
|
|
68
69
|
"@capacitor/core": ">=8.0.0"
|