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

react-otpcode-input

Package Overview
Dependencies
Maintainers
1
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.1.13 to 0.1.14

5

index.d.ts

@@ -6,6 +6,9 @@ /// <reference types="react" />

numberOfInputs: number;
onChange: () => void;
value: string;
autoFocus?: boolean;
}
class OtpInput extends React.Component<OtpInputProps, any> {}
const OtpInput: React.FunctionComponent<OtpInputProps>;
export default OtpInput;
}

14

index.js

@@ -12,5 +12,13 @@ "use strict";

///@ts-check
var OtpInput = function OtpInput() {
return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement("div", null, "OTP"));
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
var OtpInput = function OtpInput(_ref) {
var numberOfInputs = _ref.numberOfInputs,
onChange = _ref.onChange,
value = _ref.value,
props = _objectWithoutProperties(_ref, ["numberOfInputs", "onChange", "value"]);
return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement("div", null, numberOfInputs), _react["default"].createElement("div", null, "OTP"));
};

@@ -17,0 +25,0 @@

@@ -5,5 +5,6 @@ ///@ts-check

const OtpInput = () => {
const OtpInput = ({ numberOfInputs, onChange, value, ...props }) => {
return (
<>
<div>{numberOfInputs}</div>
<div>OTP</div>

@@ -10,0 +11,0 @@ </>

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