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
0
Versions
148
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.27.1 to 6.28.0-beta.1

4

dist/dts/Cordova/Cordova.d.ts

@@ -30,5 +30,3 @@ export declare enum CordovaFunction {

UpdateDataCaptureView = "updateDataCaptureView",
AddOverlay = "addOverlay",
RemoveOverlay = "removeOverlay",
RemoveAllOverlays = "removeAllOverlays"
RemoveDataCaptureView = "removeDataCaptureView"
}

@@ -35,0 +33,0 @@ export declare const Cordova: {

@@ -12,7 +12,5 @@ import { BaseNativeProxy, DataCaptureViewProxy } from 'scandit-datacapture-frameworks-core';

updateView(viewJson: string): Promise<void>;
addOverlay(overlayJson: string): Promise<void>;
removeOverlay(overlayJson: string): Promise<void>;
removeAllOverlays(): Promise<void>;
removeView(): Promise<void>;
private static get cordovaExec();
private notifyListeners;
}

@@ -301,17 +301,7 @@ var core = require('scandit-cordova-datacapture-core.Core');

}
addOverlay(overlayJson) {
removeView() {
return new Promise((resolve, reject) => {
NativeDataCaptureViewProxy.cordovaExec(resolve, reject, CordovaFunction.AddOverlay, [overlayJson]);
NativeDataCaptureViewProxy.cordovaExec(resolve, reject, CordovaFunction.RemoveDataCaptureView, null);
});
}
removeOverlay(overlayJson) {
return new Promise((resolve, reject) => {
NativeDataCaptureViewProxy.cordovaExec(resolve, reject, CordovaFunction.RemoveOverlay, [overlayJson]);
});
}
removeAllOverlays() {
return new Promise((resolve, reject) => {
NativeDataCaptureViewProxy.cordovaExec(resolve, reject, CordovaFunction.RemoveAllOverlays, null);
});
}
static get cordovaExec() {

@@ -410,5 +400,3 @@ return Cordova.exec;

CordovaFunction["UpdateDataCaptureView"] = "updateDataCaptureView";
CordovaFunction["AddOverlay"] = "addOverlay";
CordovaFunction["RemoveOverlay"] = "removeOverlay";
CordovaFunction["RemoveAllOverlays"] = "removeAllOverlays";
CordovaFunction["RemoveDataCaptureView"] = "removeDataCaptureView";
})(CordovaFunction || (CordovaFunction = {}));

@@ -559,10 +547,13 @@ // tslint:disable-next-line:variable-name

});
this.baseDataCaptureView = new core.BaseDataCaptureView();
this.baseDataCaptureView = new core.BaseDataCaptureView(false);
}
connectToElement(element) {
this.htmlElement = element;
this.htmlElementState = new HTMLElementState();
// Initial update
this.elementDidChange();
this.subscribeToChangesOnHTMLElement();
// add view to native hierarchy
this.baseDataCaptureView.createNativeView().then(() => {
this.htmlElement = element;
this.htmlElementState = new HTMLElementState();
// Initial update
this.elementDidChange();
this.subscribeToChangesOnHTMLElement();
});
}

@@ -573,2 +564,4 @@ detachFromElement() {

this.elementDidChange();
// Remove view from native hierarchy
this.baseDataCaptureView.removeNativeView();
}

@@ -575,0 +568,0 @@ setFrame(frame, isUnderContent = false) {

{
"name": "scandit-cordova-datacapture-core",
"version": "6.27.1",
"version": "6.28.0-beta.1",
"description": "Scandit Data Capture SDK for Cordova",

@@ -25,3 +25,3 @@ "license": "Apache-2.0",

"dependencies": {
"scandit-datacapture-frameworks-core": "6.27.1"
"scandit-datacapture-frameworks-core": "6.28.0-beta.1"
},

@@ -28,0 +28,0 @@ "devDependencies": {

Sorry, the diff of this file is too big to display

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