@sensorfactdev/labelify
Advanced tools
Comparing version 1.1.0 to 1.2.1
{ | ||
"name": "@sensorfactdev/labelify", | ||
"version": "1.1.0", | ||
"version": "1.2.1", | ||
"description": "A service for writing labels", | ||
@@ -5,0 +5,0 @@ "repository": "git@gitlab.com:Sensorfact/tools/labelify.git", |
@@ -25,2 +25,3 @@ # Labelify | ||
- Add the printer in "Printers & Scanners". *<u>NOTE</u>: User experience is best if you set the name of the printer to **dymo** when adding the printer* | ||
- Select the correct driver (DYMO Labelwriter 450). If this is not available, install the [DYMO Label software](http://www.dymo.com/nl-NL/labelwriter-450-label-printer). | ||
@@ -27,0 +28,0 @@ **Fedora** |
@@ -18,2 +18,8 @@ #!/usr/bin/env node | ||
const bridgeIdRegex = /^[0-9a-f]{4}$/i; | ||
if (!bridgeId.match(bridgeIdRegex)) { | ||
logger.error('Invalid "bridgeId" format. Required hexadecimal'); | ||
process.exit(1); | ||
} | ||
const firmwareVersionRegex = /(?:(?:0|[1-9](?:(?:0|[1-9])+)*)[.](?:0|[1-9](?:(?:0|[1-9])+)*)[.](?:0|[1-9](?:(?:0|[1-9])+)*)(?:-(?:(?:(?:[A-Za-z]|-)(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)?|(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)(?:[A-Za-z]|-)(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)?)|(?:0|[1-9](?:(?:0|[1-9])+)*)(?:[.](?:(?:(?:[A-Za-z]|-)(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)?|(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)(?:[A-Za-z]|-)(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)?)|(?:0|[1-9](?:(?:0|[1-9])+)*)))*))?(?:[+](?:(?:(?:[A-Za-z]|-)(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)?|(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)(?:[A-Za-z]|-)(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)?)|(?:(?:0|[1-9])+))(?:[.](?:(?:(?:[A-Za-z]|-)(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)?|(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)(?:[A-Za-z]|-)(?:(?:(?:0|[1-9])|(?:[A-Za-z]|-))+)?)|(?:(?:0|[1-9])+))*))?)$/; | ||
@@ -51,6 +57,7 @@ if (firmwareVersion && !firmwareVersion.match(firmwareVersionRegex)) { | ||
validatePrintArgs(bridgeId, firmwareVersion); | ||
const upperCaseBridgeId = bridgeId.toUpperCase(); | ||
verifyPrinter(options.printer, logger) | ||
.then(() => print(bridgeId, firmwareVersion, options.printer, logger)) | ||
.then(() => onPrintSuccess(bridgeId)) | ||
.then(() => print(upperCaseBridgeId, firmwareVersion, options.printer, logger)) | ||
.then(() => onPrintSuccess(upperCaseBridgeId)) | ||
.catch(onError); | ||
@@ -57,0 +64,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
89970
72
10
291