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

m-validate

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m-validate - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

15

m-validate.js

@@ -61,6 +61,15 @@ var Localization = require('i18n-2');

if (splitedResponse.length > 1) {
(response[fieldName])[rule] = this.i18n.__(
splitedResponse[0] + ': %d',
parseInt(splitedResponse[1], 10)
var res = this.i18n.__n(
splitedResponse[0] + ': %f',
Number(splitedResponse[1])
);
if (!res) {
res = this.i18n.__(
splitedResponse[0] + ': %f',
Number(splitedResponse[1])
);
}
(response[fieldName])[rule] = res;
} else {

@@ -67,0 +76,0 @@ (response[fieldName])[rule] = this.i18n

2

package.json
{
"name": "m-validate",
"version": "2.1.2",
"version": "2.2.0",
"description": "NodeJS simple validation functions",

@@ -5,0 +5,0 @@ "main": "m-validate.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