capacitor-camera-module 0.0.51 → 0.0.53

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.
@@ -23,7 +23,8 @@ public class CameraModulePlugin: CAPPlugin,CAPBridgedPlugin,AVCaptureVideoDataOu
23
23
  CAPPluginMethod(name: "hasFlash", returnType: CAPPluginReturnPromise),
24
24
  CAPPluginMethod(name: "takePhotoBase64", returnType: CAPPluginReturnPromise),
25
25
  CAPPluginMethod(name: "startBarcodeScan", returnType: CAPPluginReturnPromise),
26
- CAPPluginMethod(name: "stopBarcodeScan", returnType: CAPPluginReturnPromise)
26
+ CAPPluginMethod(name: "stopBarcodeScan", returnType: CAPPluginReturnPromise),
27
+ CAPPluginMethod(name: "getLastGalleryImage", returnType: CAPPluginReturnPromise)
27
28
 
28
29
  ]
29
30
 
@@ -266,7 +267,7 @@ public class CameraModulePlugin: CAPPlugin,CAPBridgedPlugin,AVCaptureVideoDataOu
266
267
 
267
268
  let base64 = imageData.base64EncodedString()
268
269
 
269
- let ret = JSObject()
270
+ var ret = JSObject()
270
271
  ret["base64"] = base64
271
272
  call.resolve(ret)
272
273
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-camera-module",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "description": "Plugin to request permissiones view camera take phots",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",