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

parrot-middleware

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parrot-middleware - npm Package Compare versions

Comparing version 4.1.1 to 5.0.0-alpha.0

5

lib/ParrotMiddleware.js

@@ -72,5 +72,10 @@ 'use strict';

var body = response.body,
contentType = response.contentType,
status = response.status;
res.status(status);
if (contentType) {
res.type(contentType);
}
if (_rollupPluginBabelHelpers.typeof(body) === 'object') {

@@ -77,0 +82,0 @@ res.json(body);

6

package.json
{
"name": "parrot-middleware",
"version": "4.1.1",
"version": "5.0.0-alpha.0",
"contributors": [

@@ -25,3 +25,3 @@ "Jack Cross <jack.cross1@aexp.com>",

"express": "^4.16.2",
"parrot-core": "^4.1.1"
"parrot-core": "^5.0.0-alpha.0"
},

@@ -35,3 +35,3 @@ "devDependencies": {

},
"gitHead": "e5cad42dc49b806962a60c0070471a1508925542"
"gitHead": "bca64f0e941b1c39f54d53e44067d32564513db3"
}

@@ -13,3 +13,3 @@ # parrot-middleware

Add a file to the root of your project called [`scenarios.js`](/americanexpress/parrot/blob/master/SCENARIOS.md):
Add a file to the root of your project called [`scenarios.js`](/americanexpress/parrot/blob/main/SCENARIOS.md):

@@ -40,2 +40,15 @@ ```js

],
'has more ships with any mime type': [
{
request: '/ship_log',
response: {
contentType: 'text/plain',
body: [
'# Ship Log',
"* name: 'The Jolly Roger', captain: 'Captain Hook'",
"* name: 'The Black Pearl', captain: 'Jack Sparrow'",
].join('\n'),
},
},
],
'has a server error': [

@@ -42,0 +55,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