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

hapi

Package Overview
Dependencies
Maintainers
1
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi - npm Package Compare versions

Comparing version 17.3.0 to 17.3.1

4

lib/response.js

@@ -295,3 +295,5 @@ 'use strict';

Hoek.assert(this.request.method === 'post' || this.request.method === 'put', 'Cannot create resource on GET');
Hoek.assert(this.request.method === 'post' ||
this.request.method === 'put' ||
this.request.method === 'patch', 'Cannot return 201 status codes for ' + this.request.method.toUpperCase());

@@ -298,0 +300,0 @@ this.statusCode = 201;

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

const schema = statusSchema || request.route.settings.response.schema;
const schema = statusSchema !== undefined ? statusSchema : request.route.settings.response.schema;
if (schema === null) {

@@ -146,0 +146,0 @@ return; // No rules

@@ -5,3 +5,3 @@ {

"homepage": "http://hapijs.com",
"version": "17.3.0",
"version": "17.3.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

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