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

postman-collection

Package Overview
Dependencies
Maintainers
2
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postman-collection - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

4

lib/collection/request-auth/awsv4.js

@@ -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"

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