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

joi

Package Overview
Dependencies
Maintainers
4
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

joi - npm Package Compare versions

Comparing version 2.6.0 to 2.7.0

7

lib/any.js

@@ -495,2 +495,9 @@ // Load modules

internals.Any.prototype.validateCallback = function (object, options, callback) { // Not actually async, just callback interface
var err = this.validate(object, options);
return callback(err);
};
internals.Any.prototype.describe = function () {

@@ -497,0 +504,0 @@

2

package.json
{
"name": "joi",
"description": "Object schema validation",
"version": "2.6.0",
"version": "2.7.0",
"repository": "git://github.com/spumko/joi",

@@ -6,0 +6,0 @@ "main": "index",

@@ -244,2 +244,15 @@ // Load modules

describe('#validateCallback', function () {
it('validates using callback interface', function (done) {
var schema = Joi.number();
schema.validateCallback(4, {}, function (err) {
expect(err).to.not.exist;
done();
});
});
});
describe('#description', function () {

@@ -246,0 +259,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