New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-multi-email

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-multi-email - npm Package Compare versions

Comparing version 1.0.20 to 1.0.21

12

dist/commonjs/ReactMultiEmail.js

@@ -90,8 +90,2 @@ "use strict";

var isEmail_1 = require("./isEmail");
var initialEmailAddress = function (emails) {
if (typeof emails === 'undefined')
return [];
var validEmails = emails.filter(function (email) { return (0, isEmail_1.isEmail)(email); });
return validEmails;
};
function ReactMultiEmail(props) {

@@ -105,2 +99,8 @@ var _this = this;

var _l = __read(React.useState(false), 2), spinning = _l[0], setSpinning = _l[1];
var initialEmailAddress = function (emails) {
if (typeof emails === 'undefined')
return [];
var validEmails = emails.filter(function (email) { return validateEmail ? validateEmail(email) : (0, isEmail_1.isEmail)(email); });
return validEmails;
};
var findEmailAddress = React.useCallback(function (value, isEnter) { return __awaiter(_this, void 0, void 0, function () {

@@ -107,0 +107,0 @@ var validEmails, inputValue, re, isEmail, addEmails, setArr, arr, validateResult, validateResultWithDisplayName, email, validateResult, validateResultWithDisplayName, email;

@@ -38,8 +38,2 @@ "use strict";

const isEmail_1 = require("./isEmail");
const initialEmailAddress = (emails) => {
if (typeof emails === 'undefined')
return [];
const validEmails = emails.filter(email => (0, isEmail_1.isEmail)(email));
return validEmails;
};
function ReactMultiEmail(props) {

@@ -52,2 +46,8 @@ const { id, style, className = '', noClass, placeholder, autoFocus, allowDisplayName = false, stripDisplayName = false, allowDuplicate = false, delimiter = `[${allowDisplayName ? '' : ' '},;]`, initialInputValue = '', inputClassName, autoComplete, getLabel, enable, onDisabled, validateEmail, onChange, onChangeInput, onFocus, onBlur, onKeyDown, onKeyUp, spinner, disableOnBlurValidation = false, } = props;

const [spinning, setSpinning] = React.useState(false);
const initialEmailAddress = (emails) => {
if (typeof emails === 'undefined')
return [];
const validEmails = emails.filter(email => validateEmail ? validateEmail(email) : (0, isEmail_1.isEmail)(email));
return validEmails;
};
const findEmailAddress = React.useCallback((value, isEnter) => __awaiter(this, void 0, void 0, function* () {

@@ -54,0 +54,0 @@ var _a, _b;

{
"name": "react-multi-email",
"version": "1.0.20",
"version": "1.0.21",
"jsnext:main": "dist/es6/index.js",

@@ -5,0 +5,0 @@ "module": "dist/es6/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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