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

bwip-js

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bwip-js - npm Package Compare versions

Comparing version 4.3.2 to 4.4.0

2

bin/bwip-js.js

@@ -194,2 +194,3 @@ #!/usr/bin/env node

desc: 'Color of the text, either as a hex RGB or RRGGBB value or a hex CCMMYYKK value.' },
/*
{ name: 'addontextfont', type: 'string',

@@ -203,2 +204,3 @@ desc: 'The font name to use for the add-on text in ISBN, ISMN, and ISSN barcodes.' },

desc: 'Overrides the default positioning for the add on text.' },
*/
{ name: 'guardwhitespace', type: 'boolean',

@@ -205,0 +207,0 @@ desc: 'Display white space guards.' },

2

dist/bwip-js-gen.d.ts

@@ -1,2 +0,2 @@

// Type definitions for bwip-js 4.3.2 (2024-03-19)
// Type definitions for bwip-js 4.4.0 (2024-06-18)
//

@@ -3,0 +3,0 @@ // THIS DEFINITION FILE IS MACHINE GENERATED - DO NOT EDIT

@@ -1,2 +0,2 @@

// Type definitions for bwip-js 4.3.2 (2024-03-19)
// Type definitions for bwip-js 4.4.0 (2024-06-18)
//

@@ -3,0 +3,0 @@ // THIS DEFINITION FILE IS MACHINE GENERATED - DO NOT EDIT

@@ -1,2 +0,2 @@

// Type definitions for bwip-js 4.3.2 (2024-03-19)
// Type definitions for bwip-js 4.4.0 (2024-06-18)
//

@@ -3,0 +3,0 @@ // THIS DEFINITION FILE IS MACHINE GENERATED - DO NOT EDIT

@@ -1,2 +0,2 @@

// Type definitions for bwip-js 4.3.2 (2024-03-19)
// Type definitions for bwip-js 4.4.0 (2024-06-18)
//

@@ -3,0 +3,0 @@ // THIS DEFINITION FILE IS MACHINE GENERATED - DO NOT EDIT

@@ -113,6 +113,11 @@ // bwip-js/examples/threaded.js

// Convert boolean empty parameters to true
// Convert empty parameters to true.
// Convert empty !parameters to false.
for (let id in opts) {
if (opts[id] === '') {
opts[id] = true;
if (id[0] == '!') {
opts[id.substr(1)] = false;
} else {
opts[id] = true;
}
}

@@ -119,0 +124,0 @@ }

// file: bwip-js/lib/symdesc.js
//
// This code was automatically generated from:
// Barcode Writer in Pure PostScript - Version 2024-01-03
// Barcode Writer in Pure PostScript - Version 2024-06-18
//

@@ -109,5 +109,5 @@ // Copyright (c) 2011-2024 Mark Warren

"gs1datamatrixrectangular":{ sym:"gs1datamatrixrectangular",desc:"GS1 Data Matrix Rectangular",text:"(01)09521234543213(17)120508(10)ABCD1234(410)9501101020917",opts:"" },
"gs1dldatamatrix":{ sym:"gs1dldatamatrix",desc:"GS1 Digital Link Data Matrix",text:"https://id.gs1.org/01/09521234543213/22/ABC%2d123?99=XYZ%2f987",opts:"" },
"gs1dldatamatrix":{ sym:"gs1dldatamatrix",desc:"GS1 Digital Link Data Matrix",text:"https://id.gs1.org/01/09521234543213/22/ABC%2D123?99=XYZ-987",opts:"" },
"gs1qrcode":{ sym:"gs1qrcode",desc:"GS1 QR Code",text:"(01)09521234543213(8200)http://www.abc.net(10)ABCD1234(410)9501101020917",opts:"" },
"gs1dlqrcode":{ sym:"gs1dlqrcode",desc:"GS1 Digital Link QR Code",text:"https://id.gs1.org/01/09521234543213/22/ABC%2d123?99=XYZ%2f987",opts:"" },
"gs1dlqrcode":{ sym:"gs1dlqrcode",desc:"GS1 Digital Link QR Code",text:"HTTPS://ID.GS1.ORG/01/09521234543213/22/ABC%2D123?99=XYZ-987",opts:"" },
"gs1dotcode":{ sym:"gs1dotcode",desc:"GS1 DotCode",text:"(235)5vBZIF%!<B;?oa%(01)09521234543213(8008)19052001",opts:"rows=16" },

@@ -114,0 +114,0 @@ "hibccode39":{ sym:"hibccode39",desc:"HIBC Code 39",text:"A999BJC5D6E71",opts:"includetext" },

{
"name": "bwip-js",
"version": "4.3.2",
"version": "4.4.0",
"description": "JavaScript barcode generator supporting over 100 types and standards.",

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

@@ -17,4 +17,4 @@ # // Barcode Writer in Pure JavaScript

* Current bwip-js version is 4.3.2 (2024-03-19)
* Current BWIPP version is 2024-01-03
* Current bwip-js version is 4.4.0 (2024-06-18)
* Current BWIPP version is 2024-06-18
* Node.js compatibility: 0.12+

@@ -108,6 +108,6 @@ * Browser compatibility: Edge, Firefox, Chrome

- `paddingheight` : Shorthand for setting `paddingtop` and `paddingbottom`.
- `paddingtop` : Sets the height of the padding area, in points, on the top of the barcode image. Rotates and scales with the image.
- `paddingleft` : Sets the width of the padding area, in points, on the left side of the barcode image. Rotates and scales with the image.
- `paddingright` : Sets the width of the padding area, in points, on the right side of the barcode image. Rotates and scales with the image.
- `paddingbottom` : Sets the height of the padding area, in points, on the bottom of the barcode image. Rotates and scales with the image.
- `paddingtop` : Sets the height of the padding area, in points, on the top of the barcode image. Must be an integer >= 0. Rotates and scales with the image.
- `paddingleft` : Sets the width of the padding area, in points, on the left side of the barcode image. Must be an integer >= 0. Rotates and scales with the image.
- `paddingright` : Sets the width of the padding area, in points, on the right side of the barcode image. Must be an integer >= 0. Rotates and scales with the image.
- `paddingbottom` : Sets the height of the padding area, in points, on the bottom of the barcode image. Must be an integer >= 0. Rotates and scales with the image.
- `backgroundcolor` : This is actually a BWIPP option but is better handled by the bwip-js drawing code. Expects either a hex RGB, RRGGBB or CCMMYYKK string value or CSS-style #RGB or #RRGGBB string value.

@@ -114,0 +114,0 @@

@@ -18,6 +18,11 @@

// Convert boolean empty parameters to true
// Convert empty !parameters to false.
// Convert empty parameters to true.
for (var id in opts) {
if (opts[id] === '') {
opts[id] = true;
if (id[0] == '!') {
opts[id.substr(1)] = false;
} else {
opts[id] = true;
}
}

@@ -312,10 +317,17 @@ }

// a is the most specific padding value, e.g. paddingleft
// b is the next most specific value, e.g. paddingwidth
// c is the general padding value.
// s is the scale, either scalex or scaley
function padding(a, b, c, s) {
if (a != null) {
return a*s;
a = a >>> 0;
return a*s >>> 0;
}
if (b != null) {
return b*s;
b = b >>> 0;
return b*s >>> 0;
}
return c*s || 0;
c = c >>> 0;
return (c*s >>> 0) || 0;
}

@@ -422,3 +434,3 @@ }

// The drawing interface is just needed for the pre-init() calls.
// Don't need to fixup the options - drawing specific.
// Don't need to fixup the drawing specific options.
var drawing = DrawingBuiltin();

@@ -425,0 +437,0 @@ drawing.setopts(options);

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 too big to display

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

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 too big to display

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 too big to display

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