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

react-otpcode-input

Package Overview
Dependencies
Maintainers
2
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-otpcode-input - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

3

index.js

@@ -110,3 +110,2 @@ "use strict";

var newOtp = otp + key;
console.log(newOtp);
setActiveIndex(activeIndex + 1);

@@ -116,3 +115,3 @@ onChange(newOtp);

if (newOtp.length === numberOfInputs) {
onComplete(otp);
onComplete(newOtp);
}

@@ -119,0 +118,0 @@ }

@@ -73,8 +73,6 @@ import React, { useState, useEffect, useRef } from "react";

const newOtp = otp + key;
console.log(newOtp);
setActiveIndex(activeIndex + 1);
onChange(newOtp);
if (newOtp.length === numberOfInputs) {
onComplete(otp);
onComplete(newOtp);
}

@@ -81,0 +79,0 @@ }

{
"name": "react-otpcode-input",
"version": "0.2.4",
"version": "0.2.5",
"description": "OTP Input Component",

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

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