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

@sensorfactdev/labelify

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sensorfactdev/labelify - npm Package Compare versions

Comparing version 1.1.0 to 1.2.1

2

package.json
{
"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 @@ });

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