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

@webiny/validation

Package Overview
Dependencies
Maintainers
1
Versions
566
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webiny/validation - npm Package Compare versions

Comparing version 3.0.1 to 4.0.0-beta.0

7

package.json
{
"name": "@webiny/validation",
"version": "3.0.1",
"version": "4.0.0-beta.0",
"main": "index.js",

@@ -32,3 +32,4 @@ "repository": {

"publishConfig": {
"access": "public"
"access": "public",
"directory": "dist"
},

@@ -41,3 +42,3 @@ "scripts": {

},
"gitHead": "170cd06dc00a635adc3ae88370f18056116fd9b1"
"gitHead": "49bc7f5ad6bfc3b635510635000bda96948d0641"
}

@@ -181,7 +181,7 @@ "use strict";

__parseValidateProperty(validators) {
let validate = validators.split(",");
const validate = validators.split(",");
const parsedValidators = {};
validate.forEach(v => {
let params = (0, _trim2.default)(v).split(":");
let vName = params.shift();
const params = (0, _trim2.default)(v).split(":");
const vName = params.shift();
parsedValidators[vName] = params;

@@ -188,0 +188,0 @@ });

@@ -26,3 +26,6 @@ "use strict";

var _default = value => {
if (!value) return;
if (!value) {
return;
}
value = value + "";

@@ -34,3 +37,6 @@

if (/[^0-9-\s]+/.test(value)) throw new _validationError.default("Credit card number invalid.");
if (/[^0-9-\s]+/.test(value)) {
throw new _validationError.default("Credit card number invalid.");
}
let nCheck = 0;

@@ -37,0 +43,0 @@ let nDigit = 0;

@@ -26,3 +26,6 @@ "use strict";

var _default = value => {
if (!value) return;
if (!value) {
return;
}
value = value + ""; // eslint-disable-next-line

@@ -29,0 +32,0 @@

@@ -27,3 +27,6 @@ "use strict";

var _default = (value, params) => {
if (!value) return;
if (!value) {
return;
}
value = value + ""; // Intentionally put '==' instead of '===' because passed parameter for this validator is always sent inside a string (eg. "eq:test").

@@ -30,0 +33,0 @@ // eslint-disable-next-line

@@ -27,3 +27,5 @@ "use strict";

var _default = (value, params) => {
if (!value) return;
if (!value) {
return;
}

@@ -30,0 +32,0 @@ if (parseFloat(value) > parseFloat(params[0])) {

@@ -27,3 +27,5 @@ "use strict";

var _default = (value, params) => {
if (!value) return;
if (!value) {
return;
}

@@ -30,0 +32,0 @@ if (parseFloat(value) >= parseFloat(params[0])) {

@@ -14,3 +14,6 @@ "use strict";

var _default = (value, params) => {
if (!value) return;
if (!value) {
return;
}
value = value + "";

@@ -17,0 +20,0 @@

@@ -15,3 +15,5 @@ "use strict";

var _default = value => {
if (!value) return;
if (!value) {
return;
}

@@ -18,0 +20,0 @@ if ((0, _isInteger2.default)(value)) {

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

var _default = value => {
if (!value) return;
if (!value) {
return;
}

@@ -16,0 +18,0 @@ try {

@@ -13,3 +13,6 @@ "use strict";

var _default = (value, params) => {
if (!value) return;
if (!value) {
return;
}
value = value + "";

@@ -16,0 +19,0 @@

@@ -13,3 +13,6 @@ "use strict";

var _default = (value, params) => {
if (!value) return;
if (!value) {
return;
}
value = value + "";

@@ -16,0 +19,0 @@

@@ -21,3 +21,6 @@ "use strict";

var _default = (value, params) => {
if (!value) return;
if (!value) {
return;
}
let lengthOfValue = null;

@@ -24,0 +27,0 @@

@@ -21,3 +21,6 @@ "use strict";

var _default = (value, params) => {
if (!value) return;
if (!value) {
return;
}
let lengthOfValue = null;

@@ -24,0 +27,0 @@

@@ -23,3 +23,5 @@ "use strict";

var _default = value => {
if (!value && !(0, _isNaN2.default)(value)) return;
if (!value && !(0, _isNaN2.default)(value)) {
return;
}

@@ -26,0 +28,0 @@ if ((0, _isNumber2.default)(value) && !(0, _isNaN2.default)(value)) {

@@ -13,3 +13,6 @@ "use strict";

var _default = (value, params = []) => {
if (!value) return;
if (!value) {
return;
}
value = value + "";

@@ -16,0 +19,0 @@ const length = params[0] || 6;

@@ -13,3 +13,6 @@ "use strict";

var _default = value => {
if (!value) return;
if (!value) {
return;
}
value = value + "";

@@ -16,0 +19,0 @@

@@ -22,3 +22,6 @@ "use strict";

var _default = (value, params) => {
if (!value) return;
if (!value) {
return;
}
value = value + "";

@@ -25,0 +28,0 @@

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

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

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

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

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