Socket
Socket
Sign inDemoInstall

aspose.barcode

Package Overview
Dependencies
1
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 20.12.7 to 21.1.5

lib/aspose-barcode-nodejs-21.1.jar

2

lib/AsposeBarcode.js

@@ -10,3 +10,3 @@ 'use strict'

{
java.classpath.push(__dirname + "/aspose-barcode-nodejs-20.12.jar");
java.classpath.push(__dirname + "/aspose-barcode-nodejs-21.1.jar");
}

@@ -13,0 +13,0 @@ pushJar();

@@ -403,3 +403,2 @@ const generation = require("./Generation");

* Address type
* @enum
*/

@@ -524,21 +523,2 @@ AddressType =

}
/**
* Decodes Mailmark Barcode C and L codetext.
* @param encodedCodetext encoded codetext
* @return Decoded Mailmark Barcode C and L or null.
*/
static tryDecodeMailmark(encodedCodetext)
{
let res = new MailmarkCodetext(null);
try
{
res.initFromString(encodedCodetext);
}
catch (e)
{
return null;
}
return res;
}
}

@@ -548,3 +528,2 @@

* SwissQR bill standard version
* @enum
*/

@@ -558,3 +537,3 @@ QrBillStandardVersion =

*/
V2_0: 0
V2_0: "0"
};

@@ -911,159 +890,2 @@

/**
* Class for encoding and decoding the text embedded in the 4-state Royal Mailmark code.
*/
class MailmarkCodetext extends IComplexCodetext
{
static javaClassName = "com.aspose.mw.barcode.complexbarcode.MwMailmarkCodetext";
/**
* "0" – Null or Test
* "1" – Letter
* "2" – Large Letter
*/
getFormat()
{ return this.getJavaClass().getFormatSync(); }
/**
* "0" – Null or Test
* "1" – LetterN
* "2" – Large Letter
*/
setFormat(value)
{ this.getJavaClass().setFormatSync(value); }
/**
* Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
*/
getVersionID()
{ return this.getJavaClass().getVersionIDSync(); }
/**
* Currently "1" – For Mailmark barcode (0 and 2 to 9 and A to Z spare for future use)
*/
setVersionID(value)
{ this.getJavaClass().setVersionIDSync(value); }
/**
* "0" - Null or Test
* "1" - 1C (Retail)
* "2" - 2C (Retail)
* "3" - 3C (Retail)
* "4" - Premium (RetailPublishing Mail) (for potential future use)
* "5" - Deferred (Retail)
* "6" - Air (Retail) (for potential future use)
* "7" - Surface (Retail) (for potential future use)
* "8" - Premium (Network Access)
* "9" - Standard (Network Access)
*/
getClass_()
{ return this.getJavaClass().getClass_Sync(); }
/**
* "0" - Null or Test
* "1" - 1C (Retail)
* "2" - 2C (Retail)
* "3" - 3C (Retail)
* "4" - Premium (RetailPublishing Mail) (for potential future use)
* "5" - Deferred (Retail)
* "6" - Air (Retail) (for potential future use)
* "7" - Surface (Retail) (for potential future use)
* "8" - Premium (Network Access)
* "9" - Standard (Network Access)
*/
setClass(value)
{ this.getJavaClass().setClassSync(value); }
/**
* Maximum values are 99 for Barcode C and 999999 for Barcode L.
*/
getSupplychainID()
{ return this.getJavaClass().getSupplychainIDSync(); }
/**
* Maximum values are 99 for Barcode C and 999999 for Barcode L.
*/
setSupplychainID(value)
{ this.getJavaClass().setSupplychainIDSync(value); }
/**
* Maximum value is 99999999.
*/
getItemID()
{ return this.getJavaClass().getItemIDSync(); }
/**
* Maximum value is 99999999.
*/
setItemID(value)
{ this.getJavaClass().setItemIDSync(value); }
/**
* The PC and DP must comply with a PAF format.
* Nine character string denoting international "XY11 " (note the 5 trailing spaces) or a pattern
* of characters denoting a domestic sorting code.
* A domestic sorting code consists of an outward postcode, an inward postcode, and a Delivery Point Suffix.
*/
getDestinationPostCodePlusDPS()
{ return this.getJavaClass().getDestinationPostCodePlusDPSSync(); }
/**
* The PC and DP must comply with a PAF format.
* Nine character string denoting international "XY11 " (note the 5 trailing spaces) or a pattern
* of characters denoting a domestic sorting code.
* A domestic sorting code consists of an outward postcode, an inward postcode, and a Delivery Point Suffix.
*/
setDestinationPostCodePlusDPS(value)
{ this.getJavaClass().setDestinationPostCodePlusDPSSync(value); }
/**
* Initializes a new instance of the {@code MailmarkCodetext} class.
*/
constructor(mailmarkCodetext)
{
let java_class_link = java.import(MailmarkCodetext.javaClassName);
let javaClass = null;
if (mailmarkCodetext == null)
{
javaClass = new java_class_link();
}
else
{
javaClass = new java_class_link(mailmarkCodetext.getJavaClass());
}
super(javaClass);
}
init()
{}
/**
* Construct codetext from Mailmark data.
*
* @return Constructed codetext
*/
getConstructedCodetext()
{
return this.getJavaClass().getConstructedCodetextSync();
}
/**
* Initializes Mailmark data from constructed codetext.
*
* @param constructedCodetext Constructed codetext.
*/
initFromString(constructedCodetext)
{
this.getJavaClass().initFromStringSync(constructedCodetext);
}
/**
* Gets barcode type.
*
* @return Barcode type.
*/
getBarcodeType()
{
return this.getJavaClass().getBarcodeTypeSync();
}
}
class Mailmark2DCodetext extends IComplexCodetext

@@ -1463,5 +1285,3 @@ {

Mailmark2DCodetext,
MailmarkCodetext,
Mailmark2DType,
QrBillStandardVersion
Mailmark2DType
};
const java = require('java');
const fs = require("fs");
function isPath(image)
{
if (image.length < 256 && image.includes("/") || image.includes("\\"))
{
if (fs.existsSync(image))
{
return true;
}
throw new joint.BarcodeException("Path " + image + " does not exist");
}
return false;
}
function convertResourceToBase64String(resource)
{
let is_path_to_image = false;
is_path_to_image = fs.existsSync(resource);
if (is_path_to_image)
{
return fs.readFileSync(resource).toString('base64');
}
else
{
return resource;
}
}
class BaseJavaClass

@@ -438,3 +409,3 @@ {

module.exports = {
BaseJavaClass, BarcodeException, Rectangle, Point, License, BuildVersionInfo, isPath, convertResourceToBase64String
BaseJavaClass, BarcodeException, Rectangle, Point, License, BuildVersionInfo
};
{
"name": "aspose.barcode",
"version": "20.12.7",
"version": "21.1.5",
"description": "barcode generation and recognition component",

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc