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

@bettercorp/tools

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bettercorp/tools - npm Package Compare versions

Comparing version 2.1.28 to 2.1.29-rc

2

lib/Tools.d.ts

@@ -9,2 +9,3 @@ import * as MOMENT from "moment";

ip = "ip",
email = "email",
custom = "custom"

@@ -19,2 +20,3 @@ }

ip: RegExp;
email: RegExp;
};

@@ -21,0 +23,0 @@ static cleanString(objectToClean: any): string;

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

CleanStringStrength["ip"] = "ip";
CleanStringStrength["email"] = "email";
CleanStringStrength["custom"] = "custom";

@@ -41,2 +42,5 @@ })(CleanStringStrength = exports.CleanStringStrength || (exports.CleanStringStrength = {}));

break;
case CleanStringStrength.email:
regx = Tools.regexes.email;
break;
case CleanStringStrength.custom:

@@ -569,2 +573,3 @@ regx = customRegex;

ip: /(?![.0-9:%/])[\W_]/g,
email: /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/g
};

@@ -571,0 +576,0 @@ Tools.arrays = {

2

package.json

@@ -20,3 +20,3 @@ {

"main": "lib/index.js",
"version": "2.1.28",
"version": "2.1.29-rc",
"devDependencies": {

@@ -23,0 +23,0 @@ "@types/crypto-js": "^4.1.1",

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