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

captcha-image

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

captcha-image - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

5

index.js
class Captcha {
constructor(font, align, baseline, width, height, bgColor, color) {
constructor(font, align, baseline, width, height, bgColor, color, length) {
this.font = font;

@@ -10,2 +10,3 @@ this.align = align;

this.bgColor = bgColor;
this.length = length;
this.createImage = () => {

@@ -33,3 +34,3 @@ const captcha = document.createElement('canvas');

let count = 0;
while (count < 6) {
while (count < length) {
newWord += getCharacter();

@@ -36,0 +37,0 @@ count++;

2

package.json
{
"name": "captcha-image",
"version": "1.2.4",
"version": "1.2.5",
"description": "A simple captcha image generator.",

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

@@ -27,2 +27,3 @@ # Captcha Image Generator

| color / String | #222 |
| length / Number / Length of text | 7 |

@@ -55,3 +56,4 @@ ## Events

'#eee',
'#111'
'#111',
6
).createImage();

@@ -58,0 +60,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