New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gpix

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gpix - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

1

dist/lib/idinamic.d.ts

@@ -5,3 +5,2 @@ export interface IDinamic {

setReceiverZipCode(zipCode: string): void;
setDescription(description: string): void;
setLocation(location: string): void;

@@ -8,0 +7,0 @@ getBRCode(): string;

8

dist/lib/pix.js

@@ -110,6 +110,6 @@ "use strict";

//#region Merchant Account Information - PIX
var descricao_transacao = this._normalizeText(this._description || '');
var description = this._normalizeText(this._description || '');
var extra = 14 + 8;
if (descricao_transacao) {
extra += 4 + descricao_transacao.length;
if (description) {
extra += 4 + description.length;
}

@@ -133,3 +133,3 @@ if (this._key) {

if (this._description) {
lines.push("\t02" + this._rightPad(descricao_transacao.length) + " " + descricao_transacao);
lines.push("\t02" + this._rightPad(description.length) + " " + description);
}

@@ -136,0 +136,0 @@ //#endregion

@@ -6,3 +6,3 @@ export interface IDinamic {

setReceiverZipCode(zipCode: string): void;
setDescription(description: string): void;
// setDescription(description: string): void;
setLocation(location: string): void;

@@ -9,0 +9,0 @@

@@ -97,6 +97,6 @@ import { CRC } from "./crc/crc";

//#region Merchant Account Information - PIX
let descricao_transacao = this._normalizeText(this._description || '')
let description = this._normalizeText(this._description || '')
let extra = 14 + 8;
if(descricao_transacao) {
extra += 4 + descricao_transacao.length
if(description) {
extra += 4 + description.length
}

@@ -120,3 +120,3 @@

if(this._description) {
lines.push(`\t02${this._rightPad(descricao_transacao.length)} ${descricao_transacao}`)
lines.push(`\t02${this._rightPad(description.length)} ${description}`)
}

@@ -123,0 +123,0 @@

{
"name": "gpix",
"version": "1.1.0",
"description": "Biblioteca escrita em nodejs para gerar br-code e qr-code do PIX.",
"version": "1.1.1",
"description": "Library written in nodejs to generate PIX br-code and qr-code.",
"main": "index.js",

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

@@ -23,7 +23,7 @@ # GPIX

pix.setReceiverCity('Rio Preto')
pix.setReceiverZipCode('15082131') // opcional
pix.setReceiverZipCode('15082131') // optional
pix.setKey('fcba8826-cbff-46e2-8c40-1b39896402a8')
pix.setIdentificator('123') // opcional
pix.setDescription('Donation with defined amount - GPIX') // opcional
pix.setAmount(5.0) // opcional
pix.setIdentificator('123') // optional
pix.setDescription('Donation with defined amount - GPIX') // optional
pix.setAmount(5.0) // optional

@@ -60,3 +60,3 @@ console.log('\nDonation with defined amount - GPIX >>>>\n', pix.getBRCode())

pix.setDescription('Free Donation / QRCODE - GPIX') // opcional
pix.setDescription('Free Donation / QRCODE - GPIX') // optional

@@ -80,2 +80,2 @@

Hiago Silva Souza <<hiasilva@gmail.com>> | https://hiago.me/
Hiago Silva Souza <<hiasilva@gmail.com>> | https://hiago.me/
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