Socket
Socket
Sign inDemoInstall

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qqqqqqqqqqqqqqqqqqqqqqqqqqqqqq - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

2

package.json
{
"name": "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",
"version": "1.1.4",
"version": "1.1.5",
"description": "Image manipulation for discord bot or other app",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -42,2 +42,7 @@ const Canvas = require('canvas')

},
bonus: {
value: 0,
text_color: '#ACAEB2',
value_color: '#FFFFFF'
},
currency: ''

@@ -188,2 +193,13 @@ }

setBonus(value = 0, textColor = '#ACAEB2', valueColor = '#FFFFFF') {
if (typeof value !== 'number') throw new TypeError('Bank value needs to be number!')
if (typeof textColor !== 'string') throw new TypeError('Bank text color needs to be string!')
if (typeof valueColor !== 'string') throw new TypeError('Bank value color needs to be string!')
this.data.bonus.value = value;
this.data.bonus.text_color = textColor
this.data.bonus.value_color = valueColor;
return this;
}
/**

@@ -256,2 +272,4 @@ *

ctx.fillStyle = this.data.bank.value_color
ctx.fillText(CurrencyFormat(this.data.bonus.value), 675, 782)
ctx.fillStyle = this.data.bonus.value_color
ctx.fillText(this.data.currency + CurrencyFormat(this.data.bank.value), 599, 782)

@@ -258,0 +276,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