@capacitor/camera 1.3.0 → 1.3.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.3.1](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/camera@1.3.0...@capacitor/camera@1.3.1) (2022-03-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **camera:** Return the image on dismiss completion ([#849](https://github.com/ionic-team/capacitor-plugins/issues/849)) ([f083841](https://github.com/ionic-team/capacitor-plugins/commit/f0838416c6cf731aaae83fcb4986568357878b41))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.3.0](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/camera@1.2.4...@capacitor/camera@1.3.0) (2022-02-10)
7
18
 
8
19
 
@@ -158,11 +158,12 @@ extension CameraPlugin: UIImagePickerControllerDelegate, UINavigationControllerD
158
158
  }
159
159
 
160
160
  public func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey: Any]) {
161
- picker.dismiss(animated: true, completion: nil)
162
- if let processedImage = processImage(from: info) {
163
- returnProcessedImage(processedImage)
164
- } else {
165
- self.call?.reject("Error processing image")
161
+ picker.dismiss(animated: true) {
162
+ if let processedImage = self.processImage(from: info) {
163
+ self.returnProcessedImage(processedImage)
164
+ } else {
165
+ self.call?.reject("Error processing image")
166
+ }
166
167
  }
167
168
  }
168
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/camera",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "The Camera API provides the ability to take a photo with the camera or choose an existing one from the photo album.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "5bebfefe9bdca4d49f0e02dab74b02a692d3ed86"
82
+ "gitHead": "22fb04179bd13fabea6187c42ed3ffc2faa866c1"
83
83
  }