New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

scandit-cordova-datacapture-barcode

Package Overview
Dependencies
Maintainers
2
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 6.2.1 to 6.3.0-beta.1

src/android/actions/ActionClearTrackedBarcodeViews.kt

8

package.json
{
"name": "scandit-cordova-datacapture-barcode",
"version": "6.2.1",
"version": "6.3.0-beta.1",
"description": "Scandit Data Capture SDK for Cordova",

@@ -16,7 +16,6 @@ "license": "Apache-2.0",

"lint": "tslint --project .",
"paramedic:ios": "cordova-paramedic --platform ios --plugin ./ --plugin ../scandit-cordova-datacapture-core --skipAppiumTests --cleanUpAfterRun",
"paramedic:android": "cordova-paramedic --platform android --plugin ./ --plugin ../scandit-cordova-datacapture-core --skipAppiumTests --cleanUpAfterRun",
"paramedic:ios": "cordova-paramedic --verbose --platform ios@5.1.1 --plugin ../scandit-cordova-datacapture-core --plugin ./ --skipAppiumTests --cleanUpAfterRun",
"paramedic:android": "cordova-paramedic --verbose --platform android@8.1.0 --plugin ../scandit-cordova-datacapture-core --plugin ./ --skipAppiumTests --cleanUpAfterRun",
"paramedic": "npm run paramedic:ios && npm run paramedic:android",
"coverage": "jest --coverage",
"build-debug-app": "cd .. && rm -rf debugapp && scripts/create-debug-app.sh",
"clear-jest-cache": "jest --clearCache || true",

@@ -33,2 +32,3 @@ "clean": "npm run clear-jest-cache && node ./scripts/clean.js",

"jest": "^24.8.0",
"jest-canvas-mock": "^2.2.0",
"ts-jest": "^24.0.2",

@@ -35,0 +35,0 @@ "tslint": "^5.16.0"

@@ -33,2 +33,3 @@ /// <amd-module name="scandit-cordova-datacapture-barcode.Barcode"/>

Lapa4SC = 'lapa4sc',
IATATwoOfFive = 'iata2of5',
}

@@ -35,0 +36,0 @@

@@ -56,5 +56,4 @@ /// <amd-module name="scandit-cordova-datacapture-barcode.BarcodeCapture+Related"/>

// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159
// TODO: mark as optional requirements: https://jira.scandit.com/browse/SDC-1772
didScan(barcodeCapture: BarcodeCapture, session: BarcodeCaptureSession): void;
didUpdateSession(barcodeCapture: BarcodeCapture, session: BarcodeCaptureSession): void;
didScan?(barcodeCapture: BarcodeCapture, session: BarcodeCaptureSession): void;
didUpdateSession?(barcodeCapture: BarcodeCapture, session: BarcodeCaptureSession): void;
}

@@ -61,0 +60,0 @@

@@ -6,2 +6,3 @@ /// <amd-module name="scandit-cordova-datacapture-barcode.BarcodeTracking+Related"/>

import { PointWithUnit } from 'Common';
import { BarcodeTrackingAdvancedOverlayProxy } from 'Cordova/BarcodeTrackingAdvancedOverlayProxy';
import { BarcodeTrackingBasicOverlayProxy } from 'Cordova/BarcodeTrackingBasicOverlayProxy';

@@ -11,2 +12,3 @@ import { Cordova } from 'Cordova/Cordova';

import { DefaultSerializeable, ignoreFromSerialization, nameForSerialization } from 'Serializeable';
import { TrackedBarcodeView } from 'TrackedBarcodeView';
import { Brush } from 'Viewfinder';

@@ -78,9 +80,8 @@

// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159
// TODO: mark as optional requirements: https://jira.scandit.com/browse/SDC-1772
didUpdateSession(barcodeTracking: BarcodeTracking, session: BarcodeTrackingSession): void;
didUpdateSession?(barcodeTracking: BarcodeTracking, session: BarcodeTrackingSession): void;
}
export interface BarcodeTrackingBasicOverlayListener {
brushForTrackedBarcode(overlay: BarcodeTrackingBasicOverlay, trackedBarcode: TrackedBarcode): Optional<Brush>;
didTapTrackedBarcode(overlay: BarcodeTrackingBasicOverlay, trackedBarcode: TrackedBarcode): void;
brushForTrackedBarcode?(overlay: BarcodeTrackingBasicOverlay, trackedBarcode: TrackedBarcode): Optional<Brush>;
didTapTrackedBarcode?(overlay: BarcodeTrackingBasicOverlay, trackedBarcode: TrackedBarcode): void;
}

@@ -95,2 +96,3 @@

@ignoreFromSerialization
private barcodeTracking: BarcodeTracking;

@@ -172,1 +174,72 @@

}
export interface BarcodeTrackingAdvancedOverlayListener {
viewForTrackedBarcode?(
overlay: BarcodeTrackingAdvancedOverlay, trackedBarcode: TrackedBarcode): Promise<Optional<TrackedBarcodeView>>;
anchorForTrackedBarcode?(overlay: BarcodeTrackingAdvancedOverlay, trackedBarcode: TrackedBarcode): Anchor;
offsetForTrackedBarcode?(overlay: BarcodeTrackingAdvancedOverlay, trackedBarcode: TrackedBarcode): PointWithUnit;
didTapViewForTrackedBarcode?(overlay: BarcodeTrackingAdvancedOverlay, trackedBarcode: TrackedBarcode): void;
}
export interface PrivateBarcodeTrackingAdvancedOverlay {
toJSON(): object;
}
export class BarcodeTrackingAdvancedOverlay extends DefaultSerializeable implements DataCaptureOverlay {
private type = 'barcodeTrackingAdvanced';
@ignoreFromSerialization
private barcodeTracking: BarcodeTracking;
@ignoreFromSerialization
public listener: Optional<BarcodeTrackingAdvancedOverlayListener> = null;
@ignoreFromSerialization
private _proxy: BarcodeTrackingAdvancedOverlayProxy;
private get proxy(): BarcodeTrackingAdvancedOverlayProxy {
if (!this._proxy) {
this.initialize();
}
return this._proxy as BarcodeTrackingAdvancedOverlayProxy;
}
public static withBarcodeTrackingForView(
barcodeTracking: BarcodeTracking, view: Optional<DataCaptureView>): BarcodeTrackingAdvancedOverlay {
const overlay = new BarcodeTrackingAdvancedOverlay();
overlay.barcodeTracking = barcodeTracking;
if (view) {
view.addOverlay(overlay);
}
overlay.initialize();
return overlay;
}
public setViewForTrackedBarcode(
view: Promise<Optional<TrackedBarcodeView>>, trackedBarcode: TrackedBarcode): Promise<void> {
return this.proxy.setViewForTrackedBarcode(view, trackedBarcode);
}
public setAnchorForTrackedBarcode(anchor: Anchor, trackedBarcode: TrackedBarcode): Promise<void> {
return this.proxy.setAnchorForTrackedBarcode(anchor, trackedBarcode);
}
public setOffsetForTrackedBarcode(offset: PointWithUnit, trackedBarcode: TrackedBarcode): Promise<void> {
return this.proxy.setOffsetForTrackedBarcode(offset, trackedBarcode);
}
public clearTrackedBarcodeViews(): Promise<void> {
return this.proxy.clearTrackedBarcodeViews();
}
private initialize(): void {
if (this._proxy) {
return;
}
this._proxy = BarcodeTrackingAdvancedOverlayProxy.forOverlay(this);
}
}

@@ -44,2 +44,8 @@ /// <amd-module name="scandit-cordova-datacapture-barcode.Cordova"/>

ClearTrackedBarcodeBrushes = 'clearTrackedBarcodeBrushes',
SubscribeBarcodeTrackingAdvancedOverlayListener = 'subscribeBarcodeTrackingAdvancedOverlayListener',
SetViewForTrackedBarcode = 'setViewForTrackedBarcode',
SetAnchorForTrackedBarcode = 'setAnchorForTrackedBarcode',
SetOffsetForTrackedBarcode = 'setOffsetForTrackedBarcode',
ClearTrackedBarcodeViews = 'clearTrackedBarcodeViews',
}

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

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