@capgo/capacitor-document-scanner 8.3.18 → 8.3.23

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.
@@ -3,7 +3,7 @@ import Foundation
3
3
 
4
4
  @objc(DocumentScannerPlugin)
5
5
  public class DocumentScannerPlugin: CAPPlugin, CAPBridgedPlugin {
6
- private let pluginVersion: String = "8.3.18"
6
+ private let pluginVersion: String = "8.3.23"
7
7
  public let identifier = "DocumentScannerPlugin"
8
8
  public let jsName = "DocumentScanner"
9
9
  public let pluginMethods: [CAPPluginMethod] = [
@@ -42,7 +42,9 @@ public class DocumentScannerPlugin: CAPPlugin, CAPBridgedPlugin {
42
42
  croppedImageQuality: clampQuality(call.getInt("croppedImageQuality")),
43
43
  brightness: clampBrightness(call.getFloat("brightness")),
44
44
  contrast: clampContrast(call.getFloat("contrast")),
45
- maxNumDocuments: validateMaxNumDocuments(call.getInt("maxNumDocuments"))
45
+ maxNumDocuments: validateMaxNumDocuments(call.getInt("maxNumDocuments")),
46
+ letUserAdjustCrop: call.getBool("letUserAdjustCrop", true),
47
+ reviewCapturedDocument: call.getBool("reviewCapturedDocument", false)
46
48
  )
47
49
 
48
50
  documentScanner?.startScan()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-document-scanner",
3
- "version": "8.3.18",
3
+ "version": "8.3.23",
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",
@@ -31,20 +31,22 @@
31
31
  "native"
32
32
  ],
33
33
  "scripts": {
34
- "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
34
+ "verify": "bun run verify:ios && bun run verify:android && bun run verify:web",
35
35
  "verify:ios": "xcodebuild -scheme CapgoCapacitorDocumentScanner -destination generic/platform=iOS",
36
36
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
37
- "verify:web": "npm run build",
38
- "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
39
- "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
37
+ "verify:web": "bun run build",
38
+ "example:sync:ios": "cd example-app && bun install && bun run build && bunx cap sync ios && cd ..",
39
+ "lint": "bun run eslint && bun run prettier -- --check && bun run swiftlint -- lint",
40
+ "fmt": "bun run eslint -- --fix && bun run prettier -- --write && bun run swiftlint -- --fix --format",
40
41
  "eslint": "eslint . --ext ts",
42
+ "maestro:ios": "maestro test --platform ios maestro/ios-scan-cancel.yaml maestro/ios-scan-success.yaml",
41
43
  "prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
42
44
  "swiftlint": "node-swiftlint",
43
45
  "docgen": "docgen --api DocumentScannerPlugin --output-readme README.md --output-json dist/docs.json",
44
- "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
46
+ "build": "bun run clean && bun run docgen && tsc && rollup -c rollup.config.mjs",
45
47
  "clean": "rimraf ./dist",
46
48
  "watch": "tsc --watch",
47
- "prepublishOnly": "npm run build",
49
+ "prepublishOnly": "bun run build",
48
50
  "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs"
49
51
  },
50
52
  "devDependencies": {