parrot-middleware
Advanced tools
Comparing version 4.1.1 to 5.0.0-alpha.0
@@ -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); |
{ | ||
"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 @@ { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
22992
186
185
2
+ Addedparrot-core@5.3.0(transitive)
+ Addedpath-to-regexp@8.2.0(transitive)
- Removedparrot-core@4.1.1(transitive)
- Removedpath-to-regexp@2.4.0(transitive)
Updatedparrot-core@^5.0.0-alpha.0