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

scandit-cordova-datacapture-core

Package Overview
Dependencies
Maintainers
4
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scandit-cordova-datacapture-core - npm Package Compare versions

Comparing version 6.5.3 to 6.6.0-beta.1

src/android/actions/ActionGetIsTorchAvailable.kt

2

package.json
{
"name": "scandit-cordova-datacapture-core",
"version": "6.5.3",
"version": "6.6.0-beta.1",
"description": "Scandit Data Capture SDK for Cordova",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -55,3 +55,5 @@ "use strict";

get isTorchAvailable() {
return Cordova_1.Cordova.defaults.Camera.torchAvailability[this.position];
// tslint:disable-next-line:no-console
console.warn('isTorchAvailable is deprecated. Use getIsTorchAvailable instead.');
return false;
}

@@ -72,2 +74,5 @@ set desiredTorchState(desiredTorchState) {

}
getIsTorchAvailable() {
return this.proxy.getIsTorchAvailable();
}
addListener(listener) {

@@ -74,0 +79,0 @@ if (listener == null) {

@@ -77,15 +77,8 @@ "use strict";

setProperty(name, value) {
switch (name) {
case PrivateCameraProperty.CameraAPI:
this.api = value;
break;
}
this[name] = value;
}
getProperty(name) {
switch (name) {
case PrivateCameraProperty.CameraAPI:
return this.api;
}
return this[name];
}
}
exports.CameraSettings = CameraSettings;

@@ -15,4 +15,9 @@ "use strict";

}
getIsTorchAvailable() {
return new Promise((resolve, reject) => {
CameraProxy.cordovaExec(resolve, reject, Cordova_1.CordovaFunction.GetIsTorchAvailable, [this.camera.position]);
});
}
}
exports.CameraProxy = CameraProxy;
CameraProxy.cordovaExec = Cordova_1.Cordova.exec;

@@ -22,2 +22,3 @@ "use strict";

CordovaFunction["GetCurrentCameraState"] = "getCurrentCameraState";
CordovaFunction["GetIsTorchAvailable"] = "getIsTorchAvailable";
CordovaFunction["EmitFeedback"] = "emitFeedback";

@@ -24,0 +25,0 @@ CordovaFunction["SubscribeVolumeButtonObserver"] = "subscribeVolumeButtonObserver";

@@ -15,3 +15,2 @@ "use strict";

availablePositions: json.Camera.availablePositions,
torchAvailability: json.Camera.torchAvailability,
},

@@ -18,0 +17,0 @@ DataCaptureView: {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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