New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bootme-request

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bootme-request - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

18

index.js

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

.allow(['get', 'post', 'put', 'delete'])
.required(),
.default('get'),
contentType: Joi.string()

@@ -52,3 +52,17 @@ .lowercase()

async validateResult(value) {
return Joi.validate(value, Joi.object().required())
switch (this.config.contentType) {
case 'text':
return Joi.validate(value, Joi.string().required())
case 'json':
return Joi.validate(
value,
Joi.any()
.allow(Joi.object(), Joi.array())
.required()
)
case 'response':
return Joi.validate(value, Joi.object().required())
default:
break
}
}

@@ -55,0 +69,0 @@ /**

4

package.json
{
"name": "bootme-request",
"version": "0.0.13",
"version": "0.0.14",
"description": "Task to fire a HTTP Request",

@@ -20,3 +20,3 @@ "main": "index.js",

"dependencies": {
"bootme": "^0.0.16",
"bootme": "^0.0.17",
"joi": "^13.0.1",

@@ -23,0 +23,0 @@ "r2": "^2.0.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