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 11.4.0 to 12.0.0

2

lib/errors.js

@@ -123,3 +123,3 @@ 'use strict';

const normalized = internals.stringify(value, wrapArrays);
return (isSecure ? Hoek.escapeHtml(normalized) : normalized);
return (isSecure && this.options.escapeHtml ? Hoek.escapeHtml(normalized) : normalized);
});

@@ -126,0 +126,0 @@ }

@@ -23,3 +23,4 @@ 'use strict';

strip: Joi.boolean(),
noDefaults: Joi.boolean()
noDefaults: Joi.boolean(),
escapeHtml: Joi.boolean()
}).strict();

@@ -28,3 +28,4 @@ 'use strict';

strip: false,
noDefaults: false
noDefaults: false,
escapeHtml: false

@@ -31,0 +32,0 @@ // context: null

{
"name": "joi",
"description": "Object schema validation",
"version": "11.4.0",
"version": "12.0.0",
"homepage": "https://github.com/hapijs/joi",

@@ -6,0 +6,0 @@ "repository": "git://github.com/hapijs/joi",

@@ -29,3 +29,3 @@ ![joi Logo](https://raw.github.com/hapijs/joi/master/images/joi.png)

# API
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v11.4.0/API.md).
See the detailed [API Reference](https://github.com/hapijs/joi/blob/v12.0.0/API.md).

@@ -32,0 +32,0 @@ # Example

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