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.3 to 0.2.4

1

index.js

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

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

@@ -112,0 +113,0 @@ onChange(newOtp);

3

lib/index.js

@@ -73,5 +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) {

@@ -78,0 +79,0 @@ onComplete(otp);

{
"name": "react-otpcode-input",
"version": "0.2.3",
"version": "0.2.4",
"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