Socket
Socket
Sign inDemoInstall

mysql-validator

Package Overview
Dependencies
2
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.5 to 0.1.6

5

lib/validator.js

@@ -8,3 +8,3 @@

exports.check = function (value, type) {
var type = dataType.get(type),
var type = dataType.get(type)||{},
func = name(type.name);

@@ -49,2 +49,5 @@ return func(value, type);

break;
default:
func = function () {return null}
break;
}

@@ -51,0 +54,0 @@ return func;

4

package.json
{
"name": "mysql-validator",
"version": "0.1.5",
"version": "0.1.6",
"description": "MySql data type validation.",

@@ -25,3 +25,3 @@ "keywords": [

"devDependencies": {
"mysql": "2.0.0-alpha2",
"mysql": "2.1.1",
"mocha": "*",

@@ -28,0 +28,0 @@ "should": "*",

@@ -37,6 +37,7 @@

for (var i=0; i < tests.length; i++) {
var err = validator.check(tests[i], type);
var err = validator.check(tests[i], type),
value = rows[i][type].toString('utf8');
// print
console.log('\t'+
(!err ? rows[i][type].green : rows[i][type].red),
(!err ? value.green : value.red),
tests[i].yellow,

@@ -43,0 +44,0 @@ (!err ? 'valid'.green : err.message.red)

@@ -35,3 +35,4 @@

function (err, rows) {
rows[0].date.should.equal('2012-11-01');
if (err) return done(err);
rows[0].date.toString('utf8').should.equal('2012-11-01');
done();

@@ -38,0 +39,0 @@ });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc