buildfiles

This commit is contained in:
2026-04-13 08:19:53 +08:00
parent 273c8e8153
commit 51615a6859
54130 changed files with 6270898 additions and 30 deletions

39
node_modules/jsbarcode/src/exceptions/ErrorHandler.js generated vendored Normal file
View File

@@ -0,0 +1,39 @@
/*eslint no-console: 0 */
class ErrorHandler{
constructor(api){
this.api = api;
}
handleCatch(e){
// If babel supported extending of Error in a correct way instanceof would be used here
if(e.name === "InvalidInputException"){
if(this.api._options.valid !== this.api._defaults.valid){
this.api._options.valid(false);
}
else{
throw e.message;
}
}
else{
throw e;
}
this.api.render = function(){};
}
wrapBarcodeCall(func){
try{
var result = func(...arguments);
this.api._options.valid(true);
return result;
}
catch(e){
this.handleCatch(e);
return this.api;
}
}
}
export default ErrorHandler;

29
node_modules/jsbarcode/src/exceptions/exceptions.js generated vendored Normal file
View File

@@ -0,0 +1,29 @@
class InvalidInputException extends Error{
constructor(symbology, input) {
super();
this.name = "InvalidInputException";
this.symbology = symbology;
this.input = input;
this.message = '"' + this.input + '" is not a valid input for ' + this.symbology;
}
}
class InvalidElementException extends Error{
constructor() {
super();
this.name = "InvalidElementException";
this.message = "Not supported type to render on";
}
}
class NoElementException extends Error{
constructor() {
super();
this.name = "NoElementException";
this.message = "No element to render on.";
}
}
export {InvalidInputException, InvalidElementException, NoElementException};