@capgo/capacitor-document-scanner 8.1.0 → 8.1.3

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
@@ -32,6 +32,7 @@ npx cap sync
32
32
 
33
33
  * [`scanDocument(...)`](#scandocument)
34
34
  * [Interfaces](#interfaces)
35
+ * [Type Aliases](#type-aliases)
35
36
  * [Enums](#enums)
36
37
 
37
38
  </docgen-index>
@@ -84,6 +85,14 @@ Opens the device camera and starts the document scanning experience.
84
85
  | **`scannerMode`** | <code><a href="#scannermode">ScannerMode</a></code> | Android only: scanner mode that controls ML Kit features and filters. - 'base': Basic scan with crop/rotate, no filters or ML cleaning - 'base_with_filter': Adds grayscale and auto-enhancement filters - 'full': All features including ML-based image cleaning (erases stains, fingers, etc.) | <code>ScannerMode.Full</code> |
85
86
 
86
87
 
88
+ ### Type Aliases
89
+
90
+
91
+ #### ResponseType
92
+
93
+ <code>'basic' | 'cors' | 'default' | 'error' | 'opaque' | 'opaqueredirect'</code>
94
+
95
+
87
96
  ### Enums
88
97
 
89
98
 
package/dist/docs.json CHANGED
@@ -233,6 +233,38 @@
233
233
  ]
234
234
  }
235
235
  ],
236
- "typeAliases": [],
236
+ "typeAliases": [
237
+ {
238
+ "name": "ResponseType",
239
+ "slug": "responsetype",
240
+ "docs": "",
241
+ "types": [
242
+ {
243
+ "text": "'basic'",
244
+ "complexTypes": []
245
+ },
246
+ {
247
+ "text": "'cors'",
248
+ "complexTypes": []
249
+ },
250
+ {
251
+ "text": "'default'",
252
+ "complexTypes": []
253
+ },
254
+ {
255
+ "text": "'error'",
256
+ "complexTypes": []
257
+ },
258
+ {
259
+ "text": "'opaque'",
260
+ "complexTypes": []
261
+ },
262
+ {
263
+ "text": "'opaqueredirect'",
264
+ "complexTypes": []
265
+ }
266
+ ]
267
+ }
268
+ ],
237
269
  "pluginConfigs": []
238
270
  }
@@ -4,7 +4,7 @@ import Foundation
4
4
  @available(iOS 13.0, *)
5
5
  @objc(DocumentScannerPlugin)
6
6
  public class DocumentScannerPlugin: CAPPlugin, CAPBridgedPlugin {
7
- private let pluginVersion: String = "8.1.0"
7
+ private let pluginVersion: String = "8.1.3"
8
8
  public let identifier = "DocumentScannerPlugin"
9
9
  public let jsName = "DocumentScanner"
10
10
  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.0",
3
+ "version": "8.1.3",
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",
@@ -24,6 +24,7 @@
24
24
  "bugs": {
25
25
  "url": "https://github.com/Cap-go/capacitor-document-scanner/issues"
26
26
  },
27
+ "homepage": "https://capgo.app/docs/plugins/document-scanner/",
27
28
  "keywords": [
28
29
  "capacitor",
29
30
  "plugin",
@@ -37,7 +38,7 @@
37
38
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
38
39
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
39
40
  "eslint": "eslint . --ext ts",
40
- "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",
41
42
  "swiftlint": "node-swiftlint",
42
43
  "docgen": "docgen --api DocumentScannerPlugin --output-readme README.md --output-json dist/docs.json",
43
44
  "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
@@ -53,13 +54,16 @@
53
54
  "@ionic/eslint-config": "^0.4.0",
54
55
  "@ionic/prettier-config": "^4.0.0",
55
56
  "@ionic/swiftlint-config": "^2.0.0",
57
+ "@types/node": "^24.10.1",
56
58
  "eslint": "^8.57.1",
59
+ "eslint-plugin-import": "^2.31.0",
57
60
  "prettier": "^3.6.2",
58
61
  "prettier-plugin-java": "^2.7.7",
59
62
  "rimraf": "^6.1.0",
60
63
  "rollup": "^4.53.2",
61
64
  "swiftlint": "^2.0.0",
62
- "typescript": "^5.9.3"
65
+ "typescript": "^5.9.3",
66
+ "prettier-pretty-check": "^0.2.0"
63
67
  },
64
68
  "peerDependencies": {
65
69
  "@capacitor/core": ">=8.0.0"