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

barkoder-cordova

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barkoder-cordova - npm Package Compare versions

Comparing version 1.5.6 to 1.6.0

2

package.json
{
"name": "barkoder-cordova",
"version": "1.5.6",
"version": "1.6.0",
"description": "Cordova plugin that connects to barkoderSDK which helps users scan barcodes with mobile devices",

@@ -5,0 +5,0 @@ "cordova": {

@@ -36,6 +36,6 @@ [

"Cast" : 2,
"MaxPool" : 3,
"Sigmoid" : 2,
"Add" : 9,
"Reshape" : 8,
"Sigmoid" : 2,
"MaxPool" : 3,
"Split" : 11,

@@ -45,2 +45,5 @@ "Conv" : 73

"computePrecision" : "Mixed (Float16, Float32, Int32)",
"stateSchema" : [
],
"isUpdatable" : "0",

@@ -73,8 +76,8 @@ "availability" : {

"userDefinedMetadata" : {
"stride" : "32",
"com.github.apple.coremltools.version" : "7.2",
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
"com.github.apple.coremltools.source_dialect" : "TorchScript",
"docs" : "https:\/\/docs.ultralytics.com",
"stride" : "32",
"task" : "obb",
"com.github.apple.coremltools.version" : "7.2",
"imgsz" : "[256, 384]",

@@ -81,0 +84,0 @@ "date" : "2024-08-01T09:34:45.251931",

@@ -36,6 +36,6 @@ [

"Cast" : 2,
"MaxPool" : 3,
"Sigmoid" : 2,
"Add" : 9,
"Reshape" : 8,
"Sigmoid" : 2,
"MaxPool" : 3,
"Split" : 11,

@@ -45,2 +45,5 @@ "Conv" : 73

"computePrecision" : "Mixed (Float16, Float32, Int32)",
"stateSchema" : [
],
"isUpdatable" : "0",

@@ -73,8 +76,8 @@ "availability" : {

"userDefinedMetadata" : {
"stride" : "32",
"com.github.apple.coremltools.version" : "7.2",
"com.github.apple.coremltools.source_dialect" : "TorchScript",
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
"docs" : "https:\/\/docs.ultralytics.com",
"stride" : "32",
"task" : "obb",
"com.github.apple.coremltools.source_dialect" : "TorchScript",
"imgsz" : "[384, 512]",

@@ -81,0 +84,0 @@ "date" : "2024-08-01T17:19:19.267647",

@@ -36,6 +36,6 @@ [

"Cast" : 2,
"MaxPool" : 3,
"Sigmoid" : 2,
"Add" : 9,
"Reshape" : 8,
"Sigmoid" : 2,
"MaxPool" : 3,
"Split" : 11,

@@ -45,2 +45,5 @@ "Conv" : 73

"computePrecision" : "Mixed (Float16, Float32, Int32)",
"stateSchema" : [
],
"isUpdatable" : "0",

@@ -75,6 +78,6 @@ "availability" : {

"stride" : "32",
"com.github.apple.coremltools.version" : "7.2",
"com.github.apple.coremltools.source_dialect" : "TorchScript",
"docs" : "https:\/\/docs.ultralytics.com",
"task" : "obb",
"com.github.apple.coremltools.source_dialect" : "TorchScript",
"com.github.apple.coremltools.version" : "7.2",
"imgsz" : "[256, 384]",

@@ -81,0 +84,0 @@ "date" : "2024-08-01T09:34:45.251931",

@@ -36,6 +36,6 @@ [

"Cast" : 2,
"MaxPool" : 3,
"Sigmoid" : 2,
"Add" : 9,
"Reshape" : 8,
"Sigmoid" : 2,
"MaxPool" : 3,
"Split" : 11,

@@ -45,2 +45,5 @@ "Conv" : 73

"computePrecision" : "Mixed (Float16, Float32, Int32)",
"stateSchema" : [
],
"isUpdatable" : "0",

@@ -74,7 +77,7 @@ "availability" : {

"com.github.apple.coremltools.version" : "7.2",
"stride" : "32",
"com.github.apple.coremltools.source" : "torch==2.3.1+cu121",
"com.github.apple.coremltools.source_dialect" : "TorchScript",
"docs" : "https:\/\/docs.ultralytics.com",
"com.github.apple.coremltools.source_dialect" : "TorchScript",
"task" : "obb",
"stride" : "32",
"date" : "2024-08-01T17:19:19.267647",

@@ -81,0 +84,0 @@ "imgsz" : "[384, 512]",

@@ -114,2 +114,11 @@ {

},
"Databar 14": {
"enabled": true
},
"Databar Limited": {
"enabled": true
},
"Databar Expanded": {
"enabled": true
},
"general": {

@@ -130,7 +139,8 @@ "maxThreads": 2,

"enableVINRestrictions": false,
"thresholdBetweenDuplicatesScans": 5
"thresholdBetweenDuplicatesScans": 5,
"enableComposite": 0
}
},
"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -176,3 +186,3 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -218,3 +228,3 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -247,2 +257,11 @@ "roiLineWidth": 3,

},
"Databar 14": {
"enabled": true
},
"Databar Limited": {
"enabled": false
},
"Databar Expanded": {
"enabled": false
},
"general": {

@@ -267,3 +286,3 @@ "maxThreads": 2,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -331,2 +350,11 @@ "roiLineWidth": 3,

},
"Databar 14": {
"enabled": true
},
"Databar Limited": {
"enabled": true
},
"Databar Expanded": {
"enabled": true
},
"general": {

@@ -351,3 +379,3 @@ "maxThreads": 2,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -403,3 +431,3 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -451,3 +479,3 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -505,7 +533,7 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,
"roiLineWidth": 3,
"roiOverlayBackgroundColor": 1711276032,
"closeSessionOnResultEnabled": false,
"closeSessionOnResultEnabled": true,
"imageResultEnabled": false,

@@ -544,3 +572,3 @@ "locationInImageResultEnabled": false,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -658,2 +686,11 @@ "roiLineWidth": 3,

},
"Databar 14": {
"enabled": true
},
"Databar Limited": {
"enabled": true
},
"Databar Expanded": {
"enabled": true
},
"general": {

@@ -678,3 +715,3 @@ "maxThreads": 2,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -718,3 +755,3 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -881,4 +918,75 @@ "roiLineWidth": 3,

"locationInImageResultEnabled": true,
"locationLineWidth": 7
}
"locationLineWidth": 8
},
"composite": {
"decoder": {
"Upc-A": {
"enabled": true
},
"Upc-E": {
"enabled": true
},
"Upc-E1": {
"enabled": false
},
"Ean-13": {
"enabled": true
},
"Ean-8": {
"enabled": true
},
"Code 128": {
"enabled": true,
"minimumLength": 0,
"maximumLength": 0
},
"PDF 417": {
"enabled": true
},
"PDF 417 Micro": {
"enabled": true
},
"Databar 14": {
"enabled": true
},
"Databar Limited": {
"enabled": true
},
"Databar Expanded": {
"enabled": true
},
"general": {
"maxThreads": 2,
"decodingSpeed": 2,
"roi_x": 0,
"roi_y": 0,
"roi_w": 100,
"roi_h": 100,
"formattingType": 2,
"duplicatesDelayMs": 0,
"encodingCharacterSet": "",
"multicodeCachingEnabled": true,
"multicodeCachingDuration": 1000,
"enableMisshaped1D": false,
"upcEanDeblur": true,
"enableVINRestrictions": false,
"thresholdBetweenDuplicatesScans": 5,
"enableComposite": 1
}
},
"locationLineColor": -65536,
"locationLineWidth": 2,
"roiLineColor": -65536,
"roiLineWidth": 3,
"roiOverlayBackgroundColor": 1711276032,
"closeSessionOnResultEnabled": true,
"imageResultEnabled": false,
"locationInImageResultEnabled": false,
"locationInPreviewEnabled": true,
"pinchToZoomEnabled": false,
"regionOfInterestVisible": false,
"barkoderResolution": 1,
"beepOnSuccessEnabled": true,
"vibrateOnSuccessEnabled": false
},
}

@@ -114,2 +114,11 @@ {

},
"Databar 14": {
"enabled": true
},
"Databar Limited": {
"enabled": true
},
"Databar Expanded": {
"enabled": true
},
"general": {

@@ -130,7 +139,8 @@ "maxThreads": 2,

"enableVINRestrictions": false,
"thresholdBetweenDuplicatesScans": 5
"thresholdBetweenDuplicatesScans": 5,
"enableComposite": 0
}
},
"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -176,3 +186,3 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -218,3 +228,3 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -247,2 +257,11 @@ "roiLineWidth": 3,

},
"Databar 14": {
"enabled": true
},
"Databar Limited": {
"enabled": false
},
"Databar Expanded": {
"enabled": false
},
"general": {

@@ -267,3 +286,3 @@ "maxThreads": 2,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -331,2 +350,11 @@ "roiLineWidth": 3,

},
"Databar 14": {
"enabled": true
},
"Databar Limited": {
"enabled": true
},
"Databar Expanded": {
"enabled": true
},
"general": {

@@ -351,3 +379,3 @@ "maxThreads": 2,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -403,3 +431,3 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -451,3 +479,3 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -505,7 +533,7 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,
"roiLineWidth": 3,
"roiOverlayBackgroundColor": 1711276032,
"closeSessionOnResultEnabled": false,
"closeSessionOnResultEnabled": true,
"imageResultEnabled": false,

@@ -544,3 +572,3 @@ "locationInImageResultEnabled": false,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -658,2 +686,11 @@ "roiLineWidth": 3,

},
"Databar 14": {
"enabled": true
},
"Databar Limited": {
"enabled": true
},
"Databar Expanded": {
"enabled": true
},
"general": {

@@ -678,3 +715,3 @@ "maxThreads": 2,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -718,3 +755,3 @@ "roiLineWidth": 3,

"locationLineColor": -65536,
"locationLineWidth": 4,
"locationLineWidth": 2,
"roiLineColor": -65536,

@@ -881,4 +918,75 @@ "roiLineWidth": 3,

"locationInImageResultEnabled": true,
"locationLineWidth": 7
}
"locationLineWidth": 8
},
"composite": {
"decoder": {
"Upc-A": {
"enabled": true
},
"Upc-E": {
"enabled": true
},
"Upc-E1": {
"enabled": false
},
"Ean-13": {
"enabled": true
},
"Ean-8": {
"enabled": true
},
"Code 128": {
"enabled": true,
"minimumLength": 0,
"maximumLength": 0
},
"PDF 417": {
"enabled": true
},
"PDF 417 Micro": {
"enabled": true
},
"Databar 14": {
"enabled": true
},
"Databar Limited": {
"enabled": true
},
"Databar Expanded": {
"enabled": true
},
"general": {
"maxThreads": 2,
"decodingSpeed": 2,
"roi_x": 0,
"roi_y": 0,
"roi_w": 100,
"roi_h": 100,
"formattingType": 2,
"duplicatesDelayMs": 0,
"encodingCharacterSet": "",
"multicodeCachingEnabled": true,
"multicodeCachingDuration": 1000,
"enableMisshaped1D": false,
"upcEanDeblur": true,
"enableVINRestrictions": false,
"thresholdBetweenDuplicatesScans": 5,
"enableComposite": 1
}
},
"locationLineColor": -65536,
"locationLineWidth": 2,
"roiLineColor": -65536,
"roiLineWidth": 3,
"roiOverlayBackgroundColor": 1711276032,
"closeSessionOnResultEnabled": true,
"imageResultEnabled": false,
"locationInImageResultEnabled": false,
"locationInPreviewEnabled": true,
"pinchToZoomEnabled": false,
"regionOfInterestVisible": false,
"barkoderResolution": 1,
"beepOnSuccessEnabled": true,
"vibrateOnSuccessEnabled": false
},
}

@@ -37,4 +37,5 @@ export enum DecodingSpeed {

export enum BarkoderResolution {
normal,
high
HD,
FHD,
UHD,
}

@@ -71,3 +72,6 @@

dotcode,
idDocument
idDocument,
databar14,
databarLimited,
databarExpanded
}

@@ -81,2 +85,6 @@

roiOverlayBackgroundColor?: string;
scanningIndicatorColor?: string;
scanningIndicatorWidth?: number;
scanningIndicatorAnimation?: number;
scanningIndicatorAlwaysVisible?: boolean;
closeSessionOnResultEnabled?: boolean;

@@ -129,2 +137,5 @@ imageResultEnabled?: boolean;

idDocument?: IdDocumentBarcodeConfig;
databar14?: BarcodeConfig;
databarLimited?: BarcodeConfig;
databarExpanded?: BarcodeConfig;
general?: GeneralSettings;

@@ -131,0 +142,0 @@

@@ -543,2 +543,103 @@ var exec = require("cordova/exec");

/**
* Sets whether the UPC-E barcodes should be expanded to UPC-A format.
* @param {*} enabled - A boolean indicating whether to enable the expansion for UPC-E barcodes.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.setUPCEexpandToUPCA = function (enabled, success, error) {
exec(success, error, barkoderScanner, "setUPCEexpandToUPCA", [enabled]);
};
/**
* Sets whether the UPC-E1 barcodes should be expanded to UPC-A format.
* @param {*} enabled - A boolean indicating whether to enable the expansion for UPC-E1 barcodes.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.setUPCE1expandToUPCA = function (enabled, success, error) {
exec(success, error, barkoderScanner, "setUPCE1expandToUPCA", [enabled]);
};
/**
* Sets the color of the lines outlining the scanning indicator for barcode scanning on the camera feed.
* @param {*} hexColor - The hexadecimal representation of the color.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.setScanningIndicatorColor = function (hexColor, success, error) {
exec(success, error, barkoderScanner, "setScanningIndicatorColor", [hexColor]);
};
/**
* Sets the width of the scanning indicator for barcode scanning on the camera feed.
* @param {*} lineWidth - The width of the scanning indicator to set.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.setScanningIndicatorWidth = function (lineWidth, success, error) {
exec(success, error, barkoderScanner, "setScanningIndicatorWidth", [lineWidth]);
};
/**
* Sets the animation of the scanning indicator for barcode scanning on the camera feed.
* @param {*} animation - The animation of the scanning indicator to set.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.setScanningIndicatorAnimation = function (animation, success, error) {
exec(success, error, barkoderScanner, "setScanningIndicatorAnimation", [animation]);
};
/**
* Sets the scanning indicator to be always shown on the camera feed.
* @param {*} value - A boolean indicating whether the scanning indicator should always remain visible.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.setScanningIndicatorAlwaysVisible = function (value, success, error) {
exec(success, error, barkoderScanner, "setScanningIndicatorAlwaysVisible", [value]);
};
/**
* Sets a custom option.
* @param {*} option - The string value for the custom option.
* @param {*} value - The integer value for the custom option.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.setCustomOption = function (option, value, success, error) {
exec(success, error, barkoderScanner, "setCustomOption", [option, value]);
};
/**
* Sets the camera's exposure dynamically based on the provided intensity, cycling through predefined compensation values.
* @param {*} intesnity - The integer value for the exposure intensity.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.setDynamicExposure = function (intesnity, success, error) {
exec(success, error, barkoderScanner, "setDynamicExposure", [intesnity]);
};
/**
* Sets the camera to use the center of the viewfinder for focus and exposure.
* @param {*} value - A boolean indicating whether the center of the viewfinder should be used.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.setCentricFocusAndExposure = function (value, success, error) {
exec(success, error, barkoderScanner, "setCentricFocusAndExposure", [value]);
};
/**
* Sets wheter Composite Mode should be enabled when scanning.
* @param {*} value - The integer value if composite mode should be enabled.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.setEnableComposite = function (value, success, error) {
exec(success, error, barkoderScanner, "setEnableComposite", [value]);
};
// - Getters

@@ -908,2 +1009,38 @@

exec(success, error, barkoderScanner, "isIdDocumentMasterChecksumEnabled", []);
};
/**
* Retrieves the hexadecimal color code representing the line color of the scanning indicator on the camera preview.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.getScanningIndicatorColorHex = function (success, error) {
exec(success, error, barkoderScanner, "getScanningIndicatorColorHex", []);
};
/**
* Retrieves the current width setting for the scanning indicator on the camera preview.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.getScanningIndicatorWidth = function (success, error) {
exec(success, error, barkoderScanner, "getScanningIndicatorWidth", []);
};
/**
* Retrieves the current animation setting for the scanning indicator on the camera preview.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.getScanningIndicatorAnimation = function (success, error) {
exec(success, error, barkoderScanner, "getScanningIndicatorAnimation", []);
};
/**
* Retrieves whether the scanning indicator is always visible on the camera preview.
* @param {*} success - The callback function to be invoked on successful execution
* @param {*} error - The callback function to be invoked on execution error
*/
exports.isScanningIndicatorAlwaysVisible = function (success, error) {
exec(success, error, barkoderScanner, "isScanningIndicatorAlwaysVisible", []);
};

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