postman-collection
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -38,3 +38,3 @@ var _ = require('../../util').lodash, | ||
// Since AWS v4 requires a content type header to be set, add one. | ||
mode = _.get(request, 'data.mode'); | ||
mode = _.get(request, 'body.mode'); | ||
request.addHeader({ | ||
@@ -56,3 +56,3 @@ key: 'Content-Type', | ||
method: request.method, | ||
body: request.data ? request.data.toString() : undefined, | ||
body: request.body ? request.body.toString() : undefined, | ||
headers: request.getHeaders() | ||
@@ -59,0 +59,0 @@ }); |
@@ -74,7 +74,7 @@ var _ = require('../../util').lodash, | ||
// http://oauth.net/core/1.0a/#anchor13 | ||
bodyParams: (request.data && | ||
request.data.mode === RequestBody.MODES.urlencoded && | ||
request.data.urlencoded && | ||
request.data.urlencoded.count && | ||
request.data.urlencoded.count()) ? request.data.urlencoded.map(function (formParam) { | ||
bodyParams: (request.body && | ||
request.body.mode === RequestBody.MODES.urlencoded && | ||
request.body.urlencoded && | ||
request.body.urlencoded.count && | ||
request.body.urlencoded.count()) ? request.body.urlencoded.map(function (formParam) { | ||
return { | ||
@@ -105,4 +105,4 @@ key: formParam.key, | ||
if (/PUT|POST/.test(request.method) && | ||
(request.data && request.data.mode === RequestBody.MODES.urlencoded)) { | ||
request.data.urlencoded.add([].concat(signatureParams)); | ||
(request.body && request.body.mode === RequestBody.MODES.urlencoded)) { | ||
request.body.urlencoded.add([].concat(signatureParams)); | ||
} | ||
@@ -109,0 +109,0 @@ else { |
@@ -160,3 +160,3 @@ var _ = require('../util').lodash, | ||
* | ||
* @returns {{url: (*|string), method: *, header: (undefined|*), data: *, auth: *}} | ||
* @returns {{url: (*|string), method: *, header: (undefined|*), body: *, auth: *}} | ||
*/ | ||
@@ -163,0 +163,0 @@ toJSON: function () { |
@@ -5,3 +5,3 @@ { | ||
"author": "Postman Labs <help@getpostman.com>", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "postman" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package