Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yoonit/nativescript-camera

Package Overview
Dependencies
Maintainers
10
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yoonit/nativescript-camera - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

38

helpers/Validator.js
import "reflect-metadata";
const metadataKey = Symbol("required");
const MetadataKey = Symbol("required");
class Validator {

@@ -36,5 +36,5 @@ static getErrorMessage(propName, option, value) {

static Required(target, propertyKey, parameterIndex) {
let requiredParameters = Reflect.getOwnMetadata(metadataKey, target, propertyKey) || [];
let requiredParameters = Reflect.getOwnMetadata(MetadataKey, target, propertyKey) || [];
requiredParameters.push(parameterIndex);
Reflect.defineMetadata(metadataKey, requiredParameters, target, propertyKey);
Reflect.defineMetadata(MetadataKey, requiredParameters, target, propertyKey);
}

@@ -45,3 +45,3 @@ static ValidateProps(propName, option) {

descriptor.value = function () {
let validateParameters = Reflect.getOwnMetadata(metadataKey, target, propertyName);
let validateParameters = Reflect.getOwnMetadata(MetadataKey, target, propertyName);
if (validateParameters) {

@@ -58,8 +58,24 @@ for (let parameterIndex of validateParameters) {

}
if (Validator.PropMap !== null) {
Validator.PropMap.push({
name: propertyName,
value: arguments[parameterIndex]
});
}
}
return method.apply(this, arguments);
};
};
}
static NativeMethod(nativeMethodName) {
return function (target, propertyName, descriptor) {
let method = descriptor.value;
descriptor.value = function () {
let validateParameters = Reflect.getOwnMetadata(MetadataKey, target, propertyName);
if (validateParameters) {
for (let parameterIndex of validateParameters) {
const invalid = parameterIndex >= arguments.length ||
arguments[parameterIndex] === undefined;
if (invalid) {
throw new Error("Missing argument.");
}
Validator.PropMap.push({
name: nativeMethodName,
value: arguments[parameterIndex]
});
}

@@ -74,3 +90,3 @@ }

descriptor.value = function () {
let validateParameters = Reflect.getOwnMetadata(metadataKey, target, propertyName);
let validateParameters = Reflect.getOwnMetadata(MetadataKey, target, propertyName);
if (validateParameters) {

@@ -94,3 +110,3 @@ for (let parameterIndex of validateParameters) {

descriptor.value = function () {
let validateParameters = Reflect.getOwnMetadata(metadataKey, target, propertyName);
let validateParameters = Reflect.getOwnMetadata(MetadataKey, target, propertyName);
if (validateParameters) {

@@ -97,0 +113,0 @@ for (let parameterIndex of validateParameters) {

{
"name": "@yoonit/nativescript-camera",
"version": "2.1.0",
"version": "2.2.0",
"description": "Yoonit Camera have a custom view that shows a preview layer of the front/back camera and detects human faces in it and read qr code.",

@@ -5,0 +5,0 @@ "main": "Yoonit.Camera",

@@ -49,7 +49,7 @@ [<img src="https://raw.githubusercontent.com/Yoonit-Labs/nativescript-yoonit-camera/development/logo_cyberlabs.png" width="300">](https://cyberlabs.ai/)

ref="yooCamera"
initialLens="front"
lens="front"
captureType="face"
numberOfImages=10
timeBetweenImages=500
saveImageCaptured=true
imageCapture=true
imageCaptureAmount=10
imageCaptureInterval=500
faceDetectionBox=true

@@ -137,46 +137,48 @@ @faceDetected="doFaceDetected"

| - | - | - | - |
| initialLens | `"front"` or `"back"` | `"front"` | The camera lens when component initiated. |
| lens | `"front"` or `"back"` | `"front"` | The camera lens to use "front" or "back". |
| captureType | `"none"`, `"front"`, `"frame"` or `"qrcode"` | `"none"` | The capture type of the camera. |
| numberOfImages | number | `0` | The number of images to be captured. |
| timeBetweenImages | number | `1000` | The time interval in milliseconds to capture between images. |
| outputImageWidth | `"NNpx"` | `"200px"` | The output image width in pixels to be captured. |
| outputImageHeight | `"NNpx"` | `"200px"` | The output image height in pixels to be captured. |
| faceMinSize | `"NN%"` | `"0%"` | The face minimum size percentage to be captured. |
| faceMaxSize | `"NN%"` | `"100%"` | The face maximum size percentage to be captured. |
| faceDetectionBox | boolean | `false` | The indicator to show/hide the face detection box. |
| saveImageCaptured | boolean | `false` | The indicator to enable/disabled when an image captured. |
| faceROI | boolean | `false` | The indicator to enable.disable the region of interest. |
| faceROITopOffset | `"NN%"` | `"0%"` | The "top" offset percentage region of interest. |
| faceROIRightOffset | `"NN%"` | `"0%"` | The "right" offset percentage region of interest. |
| faceROIBottomOffset | `"NN%"` | `"0%"` | The "bottom" offset percentage region of interest. |
| faceROILeftOffset | `"NN%"` | `"0%"` | The "left" offset percentage region of interest. |
| faceROIMinSize | `"NN%"` | `"0%"` | The minimum face related with the ROI. |
| imageCapture | boolean | `false` | Enable/disabled save image capture. |
| imageCaptureAmount | number | `0` | The image capture amount goal. |
| imageCaptureInterval | number | `1000` | The image capture time interval in milliseconds. |
| imageCaptureWidth | `"NNpx"` | `"200px"` | The image capture width in pixels. |
| imageCaptureHeight | `"NNpx"` | `"200px"` | The image capture height in pixels. |
| colorEncoding | `"RGB"` or `"YUV"` | `"RGB"` | Only for android. The image capture color encoding type: `"RGB"` or `"YUV"`. |
| faceDetectionBox | boolean | `false` | Show/hide the face detection box. |
| faceMinSize | `"NN%"` | `"0%"` | The face minimum size percentage to capture. |
| faceMaxSize | `"NN%"` | `"100%"` | The face maximum size percentage to capture. |
| faceROI | boolean | `false` | Enable/disable the region of interest capture. |
| faceROITopOffset | `"NN%"` | `"0%"` | Distance in percentage of the top face bounding box with the top of the camera preview. |
| faceROIRightOffset | `"NN%"` | `"0%"` | Distance in percentage of the right face bounding box with the right of the camera preview.
| faceROIBottomOffset | `"NN%"` | `"0%"` | Distance in percentage of the bottom face bounding box with the bottom of the camera preview.
| faceROILeftOffset | `"NN%"` | `"0%"` | Distance in percentage of the left face bounding box with the left of the camera preview.
| faceROIMinSize | `"NN%"` | `"0%"` | The minimum face size related within the ROI. |
#### Methods
| Function | Parameters | Valid values | Return Type | Description
| - | - | - | - | -
| requestPermission | - | - | promise | Ask the user to give the permission to access camera.
| hasPermission | - | - | boolean | Return if application has camera permission.
| preview | - | - | void | Start camera preview if has permission.
| startCapture | `type: string` | <ul><li>`"none"`</li><li>`"face"`</li><li>`"qrcode"`</li><li>`"frame"`</li></ul> | void | Set capture type none, face, qrcode or frame.
| stopCapture | - | - | void | Stop any type of capture.
| toggleLens | - | - | void | Toggle camera lens facing front/back.
| setCameraLens | `lens: string` | `"front"` or `"back"` | void | Set camera to use "front" or "back" lens. Default value is "front".
| getLens | - | - | string | Return "front" or "back".
| setNumberOfImages | `numberOfImages: Int` | Any positive `Int` value | void | Default value is 0. For value 0 is saved infinity images. When saved images reached the "number os images", the `onEndCapture` is triggered.
| setTimeBetweenImages | `milliseconds: number` | Any positive number that represent time in milli seconds | void | Set saving face/frame images time interval in milli seconds.
| setOutputImageWidth | `width: string` | Value format must be in `NNpx` | void | Set face image width to be created in pixels.
| setOutputImageHeight | `height: string` | Value format must be in `NNpx` | void | Set face image height to be created in pixels.
| setSaveImageCaptured | `enable: boolean` | `true` or `false` | void | Set to enable/disable save image when capturing face and frame.
| setFaceDetectionBox | `enable: boolean` | `true` or `false` | void | Set to show a detection box when face detected.
| setFacePaddingPercent | `percentage: string` | Value format must be in `NN%` | void | Set face image and bounding box padding in percent.
| setFaceCaptureMinSize | `percentage: string` | Value format must be in `NN%` | void | Set the minimum face capture based on the screen.
| setFaceCaptureMaxSize | `percentage: string` | Value format must be in `NN%` | void | Set the maximum face capture based on the screen.
| setFaceROIEnable | `enable: boolean` | `true` or `false` | void | Enable/disable face region of interest capture.
| setFaceROITopOffset | `percentage: string` | Value format must be in `NN%` | void | Distance in percentage of the top face bounding box with the top of the camera preview.
| setFaceROIRightOffset | `percentage: string` | Value format must be in `NN%` | void | Distance in percentage of the right face bounding box with the right of the camera preview.
| setFaceROIBottomOffset | `percentage: string` | Value format must be in `NN%` | void | Distance in percentage of the bottom face bounding box with the bottom of the camera preview.
| setFaceROILeftOffset | `percentage: string` | Value format must be in `NN%` | void | Distance in percentage of the left face bounding box with the left of the camera preview.
| setFaceROIMinSize | `percentage: string` | Value format must be in `NN%` | void | Set the minimum face size related with the region of interest.
| Function | Parameters | Valid values | Return Type | Description
| - | - | - | - | -
| requestPermission | - | - | promise | Ask the user to give the permission to access camera. |
| hasPermission | - | - | boolean | Return if application has camera permission. |
| preview | - | - | void | Start camera preview if has permission. |
| startCapture | `type: string` | <ul><li>`"none"`</li><li>`"face"`</li><li>`"qrcode"`</li><li>`"frame"`</li></ul> | void | Set capture type "none", "face", "qrcode" or "frame". Default value is `"none"`. |
| stopCapture | - | - | void | Stop any type of capture. |
| toggleLens | - | - | void | Toggle camera lens facing "front"/"back". |
| setCameraLens | `lens: string` | `"front"` or `"back"` | void | Set camera to use "front" or "back" lens. Default value is `"front"`. |
| getLens | - | - | string | Return "front" or "back". |
| setImageCapture | `enable: boolean` | `true` or `false` | void | Enable/disabled save image capture. Default value is `false` |
| setImageCaptureAmount | `amount: Int` | Any positive `Int` value | void | For value `0`, save infinity images. When the capture image amount is reached, the event `onEndCapture` is triggered. Default value is `0`. |
| setImageCaptureInterval | `interval: number` | Any positive number that represent time in milliseconds | void | Set the image capture time interval in milliseconds. |
| setImageCaptureWidth | `width: string` | Value format must be in `NNpx` | void | Set the image capture width in pixels. |
| setImageCaptureHeight | `height: string` | Value format must be in `NNpx` | void | Set the image capture height in pixels. |
| setImageCaptureColorEncoding | `colorEncoding: string` | `"YUV"` or `"RGB"` | void | Only for android. Set the image capture color encoding type: `"RGB"` or `"YUV"`. |
| setFaceDetectionBox | `enable: boolean` | `true` or `false` | void | Set to show/hide the face detection box. |
| setFacePaddingPercent | `percentage: string` | Value format must be in `NN%` | void | Set face image capture and detection box padding in percentage. |
| setFaceCaptureMinSize | `percentage: string` | Value format must be in `NN%` | void | Set the face minimum size percentage to capture. |
| setFaceCaptureMaxSize | `percentage: string` | Value format must be in `NN%` | void | Set the face maximum size percentage to capture. |
| setFaceROIEnable | `enable: boolean` | `true` or `false` | void | Enable/disable face region of interest capture. |
| setFaceROITopOffset | `percentage: string` | Value format must be in `NN%` | void | Distance in percentage of the top face bounding box with the top of the camera preview. |
| setFaceROIRightOffset | `percentage: string` | Value format must be in `NN%` | void | Distance in percentage of the right face bounding box with the right of the camera preview. |
| setFaceROIBottomOffset | `percentage: string` | Value format must be in `NN%` | void | Distance in percentage of the bottom face bounding box with the bottom of the camera preview. |
| setFaceROILeftOffset | `percentage: string` | Value format must be in `NN%` | void | Distance in percentage of the left face bounding box with the left of the camera preview. |
| setFaceROIMinSize | `percentage: string` | Value format must be in `NN%` | void | Set the minimum face size related within the ROI. |

@@ -187,5 +189,5 @@ #### Events

| - | - | -
| imageCaptured | `{ type: string, count: number, total: number, image: object = { path: string, source: blob } }` | Must have started capture type of face/frame. Emitted when the face image file saved: <ul><li>type: "face" or "frame"</li>li>count: current index</li><li>total: total to create</li><li>image.path: the face/frame image path</li><li>image.source: the blob file</li><ul>
| imageCaptured | `{ type: string, count: number, total: number, image: object = { path: string, source: blob } }` | Must have started capture type of face/frame. Emitted when the face image file saved: <ul><li>type: "face" or "frame"</li>count: current index</li><li>total: total to create</li><li>image.path: the face/frame image path</li><li>image.source: the blob file</li><ul>
| faceDetected | `{ x: number, y: number, width: number, height: number }` | Must have started capture type of face. Emit the detected face bounding box. Emit all parameters null if no more face detecting.
| endCapture | - | Must have started capture type of face/frame. Emitted when the number of image files created is equal of the number of images set (see the method `setNumberOfImages`).
| endCapture | - | Must have started capture type of face/frame. Emitted when the number of image files created is equal of the number of images set (see the method `setImageCaptureAmount`).
| qrCodeContent | `{ content: string }` | Must have started capture type of qrcode (see `startCapture`). Emitted when the camera read a QR Code.

@@ -192,0 +194,0 @@ | status | `{ type: 'error'/'message', status: string }` | Emit message error from native. Used more often for debug purpose.

@@ -56,8 +56,9 @@ // +-+-+-+-+-+-+

startCapture,
setNumberOfImages,
setTimeBetweenImages,
setOutputImageWidth,
setOutputImageHeight,
setImageCapture,
setImageCaptureAmount,
setImageCaptureInterval,
setImageCaptureWidth,
setImageCaptureHeight,
setImageCaptureColorEncoding,
setFaceDetectionBox,
setSaveImageCaptured,
setFacePaddingPercent,

@@ -67,3 +68,2 @@ setFaceCaptureMinSize,

setFaceROIEnable,
setFaceROIMinSize,
setFaceROITopOffset,

@@ -73,2 +73,3 @@ setFaceROIRightOffset,

setFaceROILeftOffset,
setFaceROIMinSize,
} = element.nativeView

@@ -88,8 +89,9 @@

startCapture,
setNumberOfImages,
setTimeBetweenImages,
setOutputImageWidth,
setOutputImageHeight,
setImageCapture,
setImageCaptureAmount,
setImageCaptureInterval,
setImageCaptureWidth,
setImageCaptureHeight,
setImageCaptureColorEncoding,
setFaceDetectionBox,
setSaveImageCaptured,
setFacePaddingPercent,

@@ -99,3 +101,2 @@ setFaceCaptureMinSize,

setFaceROIEnable,
setFaceROIMinSize,
setFaceROITopOffset,

@@ -105,2 +106,3 @@ setFaceROIRightOffset,

setFaceROILeftOffset,
setFaceROIMinSize,
}

@@ -107,0 +109,0 @@

@@ -5,2 +5,3 @@ import { CameraBase } from './Yoonit.Camera.common';

import Validator from "./helpers/Validator";
const { ValidateProps, Required, NativeMethod, } = Validator;
const CAMERA = () => android.Manifest.permission.CAMERA;

@@ -21,3 +22,3 @@ export class YoonitCamera extends CameraBase {

});
Validator.PropMap = null;
Validator.PropMap = [];
}

@@ -38,3 +39,14 @@ disposeNativeView() {

}
setImageCaptureColorEncoding(colorEncoding) {
this.nativeView.setColorEncodingCapture(colorEncoding);
}
}
__decorate([
ValidateProps('colorEncoding', ['RGB', 'YUV']),
NativeMethod('setColorEncodingCapture'),
__param(0, Required),
__metadata("design:type", Function),
__metadata("design:paramtypes", [String]),
__metadata("design:returntype", void 0)
], YoonitCamera.prototype, "setImageCaptureColorEncoding", null);
var CameraEventListener = /** @class */ (function (_super) {

@@ -62,6 +74,6 @@ __extends(CameraEventListener, _super);

};
CameraEventListener.prototype.onImageCaptured = function (type, count, total, imagePath) {
CameraEventListener.prototype.onImageCaptured = function (type, count, total, imagePath, inferences) {
var owner = this.owner.get();
var image = this.imageProcessing(imagePath);
if (owner) {
if (owner && !!imagePath) {
var image = this.imageProcessing(imagePath);
owner.notify({

@@ -68,0 +80,0 @@ eventName: 'imageCaptured',

import { ContentView, } from '@nativescript/core';
import Validator from "./helpers/Validator";
const { ValidateProps, Required, RegexNumber, RegexPX, PercentageToNumber, RegexPercentage, NumberToPixel, } = Validator;
const { ValidateProps, Required, NativeMethod, RegexNumber, RegexPX, PercentageToNumber, RegexPercentage, NumberToPixel, } = Validator;
export class CameraBase extends ContentView {

@@ -11,14 +11,20 @@ set lens(value) {

}
set numberOfImages(value) {
this.setNumberOfImages(value);
set imageCapture(value) {
this.setImageCapture(value);
}
set timeBetweenImages(value) {
this.setTimeBetweenImages(value);
set imageCaptureAmount(value) {
this.setImageCaptureAmount(value);
}
set outputImageWidth(value) {
this.setOutputImageWidth(value);
set imageCaptureInterval(value) {
this.setImageCaptureInterval(value);
}
set outputImageHeight(value) {
this.setOutputImageHeight(value);
set imageCaptureWidth(value) {
this.setImageCaptureWidth(value);
}
set imageCaptureHeight(value) {
this.setImageCaptureHeight(value);
}
set colorEncoding(value) {
this.setImageCaptureColorEncoding(value);
}
set faceMinSize(value) {

@@ -33,5 +39,2 @@ this.setFaceCaptureMinSize(value);

}
set saveImageCaptured(value) {
this.setSaveImageCaptured(value);
}
set faceROI(value) {

@@ -77,19 +80,20 @@ this.setFaceROIEnable(value);

startCapture(type) {
this.startCaptureType(type);
}
startCaptureType(type) {
this.nativeView.startCaptureType(type);
}
setNumberOfImages(numberOfImages) {
this.nativeView.setNumberOfImages(numberOfImages);
setImageCaptureAmount(amount) {
this.nativeView.setNumberOfImages(amount);
}
setTimeBetweenImages(milliseconds) {
this.nativeView.setTimeBetweenImages(milliseconds);
setImageCaptureInterval(interval) {
this.nativeView.setTimeBetweenImages(interval);
}
setOutputImageWidth(width) {
setImageCaptureWidth(width) {
this.nativeView.setOutputImageWidth(width);
}
setOutputImageHeight(height) {
setImageCaptureHeight(height) {
this.nativeView.setOutputImageHeight(height);
}
setImageCapture(enable) {
this.nativeView.setSaveImageCaptured(enable);
}
setImageCaptureColorEncoding(colorEncoding) { }
setFaceDetectionBox(enable) {

@@ -107,5 +111,2 @@ this.nativeView.setFaceDetectionBox(enable);

}
setSaveImageCaptured(enable) {
this.nativeView.setSaveImageCaptured(enable);
}
setFaceROIEnable(enable) {

@@ -132,2 +133,3 @@ this.nativeView.setFaceROIEnable(enable);

ValidateProps('lens', ['front', 'back']),
NativeMethod('setCameraLens'),
__param(0, Required),

@@ -140,2 +142,3 @@ __metadata("design:type", Function),

ValidateProps('captureType', ['face', 'qrcode', 'frame', 'none']),
NativeMethod('startCaptureType'),
__param(0, Required),

@@ -145,5 +148,6 @@ __metadata("design:type", Function),

__metadata("design:returntype", void 0)
], CameraBase.prototype, "startCaptureType", null);
], CameraBase.prototype, "startCapture", null);
__decorate([
ValidateProps('numberOfImages', RegexNumber),
ValidateProps('imageCaptureAmount', RegexNumber),
NativeMethod('setNumberOfImages'),
__param(0, Required),

@@ -153,5 +157,6 @@ __metadata("design:type", Function),

__metadata("design:returntype", void 0)
], CameraBase.prototype, "setNumberOfImages", null);
], CameraBase.prototype, "setImageCaptureAmount", null);
__decorate([
ValidateProps('timeBetweenImages', RegexNumber),
ValidateProps('imageCaptureInterval', RegexNumber),
NativeMethod('setTimeBetweenImages'),
__param(0, Required),

@@ -161,6 +166,7 @@ __metadata("design:type", Function),

__metadata("design:returntype", void 0)
], CameraBase.prototype, "setTimeBetweenImages", null);
], CameraBase.prototype, "setImageCaptureInterval", null);
__decorate([
ValidateProps('outputImageWidth', RegexPX),
ValidateProps('imageCaptureWidth', RegexPX),
NumberToPixel,
NativeMethod('setOutputImageWidth'),
__param(0, Required),

@@ -170,6 +176,7 @@ __metadata("design:type", Function),

__metadata("design:returntype", void 0)
], CameraBase.prototype, "setOutputImageWidth", null);
], CameraBase.prototype, "setImageCaptureWidth", null);
__decorate([
ValidateProps('outputImageHeight', RegexPX),
ValidateProps('imageCaptureHeight', RegexPX),
NumberToPixel,
NativeMethod('setOutputImageHeight'),
__param(0, Required),

@@ -179,5 +186,14 @@ __metadata("design:type", Function),

__metadata("design:returntype", void 0)
], CameraBase.prototype, "setOutputImageHeight", null);
], CameraBase.prototype, "setImageCaptureHeight", null);
__decorate([
ValidateProps('imageCapture', [false, true]),
NativeMethod('setSaveImageCaptured'),
__param(0, Required),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Boolean]),
__metadata("design:returntype", void 0)
], CameraBase.prototype, "setImageCapture", null);
__decorate([
ValidateProps('faceDetectionBox', [false, true]),
NativeMethod('setFaceDetectionBox'),
__param(0, Required),

@@ -190,2 +206,3 @@ __metadata("design:type", Function),

PercentageToNumber,
NativeMethod('setFacePaddingPercent'),
__param(0, Required),

@@ -199,2 +216,3 @@ __metadata("design:type", Function),

PercentageToNumber,
NativeMethod('setFaceCaptureMinSize'),
__param(0, Required),

@@ -208,2 +226,3 @@ __metadata("design:type", Function),

PercentageToNumber,
NativeMethod('setFaceCaptureMaxSize'),
__param(0, Required),

@@ -215,10 +234,4 @@ __metadata("design:type", Function),

__decorate([
ValidateProps('saveImageCaptured', [false, true]),
__param(0, Required),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Boolean]),
__metadata("design:returntype", void 0)
], CameraBase.prototype, "setSaveImageCaptured", null);
__decorate([
ValidateProps('faceROI', [false, true]),
NativeMethod('setFaceROIEnable'),
__param(0, Required),

@@ -232,2 +245,3 @@ __metadata("design:type", Function),

PercentageToNumber,
NativeMethod('setFaceROITopOffset'),
__param(0, Required),

@@ -241,2 +255,3 @@ __metadata("design:type", Function),

PercentageToNumber,
NativeMethod('setFaceROIRightOffset'),
__param(0, Required),

@@ -250,2 +265,3 @@ __metadata("design:type", Function),

PercentageToNumber,
NativeMethod('setFaceROIBottomOffset'),
__param(0, Required),

@@ -259,2 +275,3 @@ __metadata("design:type", Function),

PercentageToNumber,
NativeMethod('setFaceROILeftOffset'),
__param(0, Required),

@@ -268,2 +285,3 @@ __metadata("design:type", Function),

PercentageToNumber,
NativeMethod('setFaceROIMinSize'),
__param(0, Required),

@@ -270,0 +288,0 @@ __metadata("design:type", Function),

@@ -22,3 +22,3 @@ import { CameraBase } from './Yoonit.Camera.common';

});
Validator.PropMap = null;
Validator.PropMap = [];
}

@@ -94,4 +94,4 @@ disposeNativeView() {

var owner = this.owner.get();
var image = this.imageProcessing(imagePath);
if (owner) {
if (owner && !!imagePath) {
var image = this.imageProcessing(imagePath);
owner.notify({

@@ -98,0 +98,0 @@ eventName: 'imageCaptured',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc