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

@alkimia/utilities

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alkimia/utilities - npm Package Compare versions

Comparing version 1.0.31 to 1.0.33

4

package.json
{
"name": "@alkimia/utilities",
"version": "1.0.31",
"version": "1.0.33",
"description": "This README would normally document whatever steps are necessary to get your application up and running.",

@@ -15,3 +15,3 @@ "main": "index.js",

"keywords": [],
"author": "",
"author": "InterSides",
"license": "ISC",

@@ -18,0 +18,0 @@ "bugs": {

@@ -192,9 +192,10 @@

isValidPassword (passwordFieldInput) {
if(this.isNonemptyString(passwordFieldInput)){
return !!passwordFieldInput.match(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\^$*.\[\]{}\(\)?\-“!@#%&\/,><\’:;|_~`])\S{8,99}$/);
}
else{
return false
}
/**
*
* @param {string} password
* @return {boolean}
*/
isValidPassword:function(password){
const PASSWORD_REGEX = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\^$*.[\]{}()?\-"!@#%&/,><':;|_~`])\S{8,99}$/;
return PASSWORD_REGEX.test(password);
},

@@ -205,12 +206,8 @@

*
* @param emailFieldInput
* @param {string} email
* @return {boolean}
*/
isValidEmail (emailFieldInput) {
if(this.isNonemptyString(emailFieldInput)){
return !!emailFieldInput.match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
}
else{
return false;
}
isValidEmail:function(email){
const EMAIL_REGEX = /^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i;
return EMAIL_REGEX.test(email);
},

@@ -220,2 +217,12 @@

*
* @param {string} token
* @return {boolean}
*/
isValidJWT:function(token){
const JWT_REGEX = /^(?:[\w-]*\.){2}[\w-]*$/;
return JWT_REGEX.test(token);
},
/**
*
* @param {string} _val

@@ -222,0 +229,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