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

scandit-capacitor-datacapture-core

Package Overview
Dependencies
Maintainers
3
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 6.18.2 to 6.19.0-beta.0

android/src/main/java/com/scandit/capacitor/datacapture/core/utils/CapacitorResult.kt

6

dist/esm/definitions.d.ts

@@ -315,3 +315,3 @@ export type Optional<T> = T | null;

export interface IdCaptureOverlayDefaultsJSON {
defaultCapturedBrush: {
DefaultCapturedBrush: {
fillColor: string;

@@ -321,3 +321,3 @@ strokeColor: string;

};
defaultLocalizedBrush: {
DefaultLocalizedBrush: {
fillColor: string;

@@ -327,3 +327,3 @@ strokeColor: string;

};
defaultRejectedBrush: {
DefaultRejectedBrush: {
fillColor: string;

@@ -330,0 +330,0 @@ strokeColor: string;

@@ -10,11 +10,4 @@ import { PrivateFrameData } from '../Camera+Related';

static getLastFrame() {
return new Promise(resolve => window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.GetLastFrame]().then((frameDataJSONString) => {
let parsedData;
if (frameDataJSONString.data) {
parsedData = JSON.parse(frameDataJSONString.data);
}
else {
parsedData = frameDataJSONString;
}
resolve(PrivateFrameData.fromJSON(parsedData));
return new Promise(resolve => window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.GetLastFrame]().then((result) => {
resolve(PrivateFrameData.fromJSON(JSON.parse(result.data)));
}));

@@ -28,3 +21,3 @@ }

}
resolve(PrivateFrameData.fromJSON(JSON.parse(frameDataJSONString)));
resolve(PrivateFrameData.fromJSON(JSON.parse(frameDataJSONString.data)));
}));

@@ -34,3 +27,5 @@ }

return new Promise((resolve, reject) => window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.GetCurrentCameraState]()
.then(resolve, reject));
.then((result) => {
resolve(result.data);
}, reject));
}

@@ -40,5 +35,5 @@ getIsTorchAvailable() {

position: this.camera.position,
}).then(resolve, reject));
}).then((result) => { resolve(result.data); }, reject));
}
}
//# sourceMappingURL=CameraProxy.js.map

@@ -5,4 +5,4 @@ import { ContextStatus } from '../DataCaptureContext+Related';

(function (DataCaptureContextListenerEvent) {
DataCaptureContextListenerEvent["DidChangeContextStatus"] = "didChangeStatus";
DataCaptureContextListenerEvent["DidStartObservingContext"] = "didStartObservingContext";
DataCaptureContextListenerEvent["DidChangeContextStatus"] = "DataCaptureContextListener.onStatusChanged";
DataCaptureContextListenerEvent["DidStartObservingContext"] = "DataCaptureContextListener.onObservationStarted";
})(DataCaptureContextListenerEvent || (DataCaptureContextListenerEvent = {}));

@@ -31,4 +31,2 @@ // TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159

this.subscribeListener();
// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159
// this.subscribeFrameListener();
this.initializeContextFromJSON();

@@ -48,7 +46,2 @@ }

}
// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159
// private subscribeFrameListener() {
// window.Capacitor.Plugins[Capacitor.pluginName][CapacitorFunction.SubscribeContextFrameListener]()
// .then(this.notifyFrameListeners.bind(this), null)
// }
notifyListeners(event) {

@@ -61,3 +54,2 @@ if (!event) {

}
event = Object.assign(Object.assign(Object.assign({}, event), event.argument), { argument: undefined });
this.context.listeners.forEach((listener) => {

@@ -67,3 +59,3 @@ switch (event.name) {

if (listener.didChangeStatus) {
const contextStatus = ContextStatus.fromJSON(event.context);
const contextStatus = ContextStatus.fromJSON(event.status);
listener.didChangeStatus(this.context, contextStatus);

@@ -70,0 +62,0 @@ }

import { Point, Quadrilateral, Size, } from '../Common';
import { Capacitor, CapacitorFunction } from './Capacitor';
import { doReturnWithFinish } from './CommonCapacitor';
var DataCaptureViewListenerEvent;
(function (DataCaptureViewListenerEvent) {
DataCaptureViewListenerEvent["DidChangeSizeOrientation"] = "didChangeSizeOrientation";
DataCaptureViewListenerEvent["DidChangeSizeOrientation"] = "DataCaptureViewListener.onSizeChanged";
})(DataCaptureViewListenerEvent || (DataCaptureViewListenerEvent = {}));

@@ -29,3 +28,3 @@ export class DataCaptureViewProxy {

point: point.toJSON(),
}).then((convertedPoint) => resolve(Point.fromJSON(convertedPoint)), reject.bind(this)));
}).then((result) => resolve(Point.fromJSON(JSON.parse(result.data))), reject.bind(this)));
}

@@ -35,4 +34,7 @@ viewQuadrilateralForFrameQuadrilateral(quadrilateral) {

point: quadrilateral.toJSON(),
}).then((convertedQuadrilateral) => resolve(Quadrilateral
.fromJSON(convertedQuadrilateral)), reject.bind(this)));
}).then((result) => {
const quadrilateral = Quadrilateral
.fromJSON(JSON.parse(result.data));
resolve(quadrilateral);
}, reject.bind(this)));
}

@@ -49,3 +51,3 @@ subscribeListener() {

// listener subscriptions.
return doReturnWithFinish('', null);
return;
}

@@ -60,3 +62,2 @@ event = Object.assign(Object.assign(Object.assign({}, event), event.argument), { argument: undefined });

listener.didChangeSize(this.view, size, orientation);
return doReturnWithFinish(event.name, null);
}

@@ -63,0 +64,0 @@ break;

@@ -22,5 +22,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

export class DataCaptureContext extends DefaultSerializeable {
// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159
// @ignoreFromSerialization
// private frameListeners: DataCaptureContextFrameListener[] = [];
get frameSource() {

@@ -80,16 +77,2 @@ return this._frameSource;

}
// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159
// public addFrameListener(frameListener: DataCaptureContextFrameListener) {
// if (this.frameListeners.includes(frameListener)) {
// return;
// }
// this.frameListeners.push(frameListener);
// }
// TODO: adjust when readding framedata to the api https://jira.scandit.com/browse/SDC-1159
// public removeFrameListener(frameListener: DataCaptureContextFrameListener) {
// if (!this.frameListeners.includes(frameListener)) {
// return;
// }
// this.frameListeners.splice(this.frameListeners.indexOf(frameListener), 1);
// }
addMode(mode) {

@@ -96,0 +79,0 @@ if (!this.modes.includes(mode)) {

export class DataCaptureVersion {
static get pluginVersion() {
return '6.18.2';
return '6.19.0-beta.0';
}
}
//# sourceMappingURL=DataCaptureVersion.js.map
{
"name": "scandit-capacitor-datacapture-core",
"version": "6.18.2",
"version": "6.19.0-beta.0",
"description": "Scandit Data Capture SDK for Capacitor",

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

"devDependencies": {
"@capacitor/android": ">=3.0.0",
"@capacitor/core": ">=3.0.0",
"@capacitor/ios": ">=3.0.0",
"@capacitor/android": "^5.0.0",
"@capacitor/core": "^5.0.0",
"@capacitor/ios": "^5.0.0",
"@ionic/prettier-config": "^1.0.0",

@@ -33,2 +33,5 @@ "@ionic/swiftlint-config": "^1.0.0",

"@types/node": "18.15.3",
"@typescript-eslint/eslint-plugin": "5.57.1",
"@typescript-eslint/parser": "5.57.1",
"eslint": "8.37.0",
"prettier": "^2.0.5",

@@ -39,9 +42,6 @@ "prettier-plugin-java": "^2.0.0",

"swiftlint": "^1.0.1",
"typescript": "4.9.5",
"eslint": "8.37.0",
"@typescript-eslint/parser": "5.57.1",
"@typescript-eslint/eslint-plugin": "5.57.1"
"typescript": "4.9.5"
},
"peerDependencies": {
"@capacitor/core": ">=2.0.0"
"@capacitor/core": "^5.0.0"
},

@@ -63,6 +63,3 @@ "files": [

"prettier": "@ionic/prettier-config",
"swiftlint": "@ionic/swiftlint-config",
"dependencies": {
"@capacitor/cli": "^4.3.0"
}
"swiftlint": "@ionic/swiftlint-config"
}

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 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

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