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

postman-collection

Package Overview
Dependencies
Maintainers
5
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 3.6.6 to 3.6.7

2

lib/collection/cookie.js
var _ = require('../util').lodash,
PropertyBase = require('./property-base').PropertyBase,
PropertyList = require('./property-list').PropertyList,

@@ -229,2 +230,3 @@ E = '',

catch (error) {
// istanbul ignore next
return this.value;

@@ -231,0 +233,0 @@ }

var _ = require('../util').lodash,
Property = require('./property').Property,
PropertyBase = require('./property-base').PropertyBase,

@@ -47,2 +48,18 @@ FormParam;

return this.value; // can be multiple types, so just return whatever we have instead of being too clever
},
/**
* Convert the form-param to JSON compatible plain object.
*
* @returns {Object}
*/
toJSON: function () {
var obj = PropertyBase.toJSON(this);
// remove value from file param because it is non-serializable ReadStream
if (obj.type === 'file') {
_.unset(obj, 'value');
}
return obj;
}

@@ -49,0 +66,0 @@ });

6

lib/collection/request-auth.js

@@ -77,4 +77,6 @@ var _ = require('../util').lodash,

if (!_.isObject(options)) { return; }
// validate type parameter and/or choose default from existing type.
if (!RequestAuth.isValidType(type)) { type = this.type; }
// choose default from existing type if not provided
if (!type) { type = this.type; }
// validate type parameter and return in case type is not valid.
if (!RequestAuth.isValidType(type)) { return; }

@@ -81,0 +83,0 @@ var parameters = this[type];

@@ -213,2 +213,16 @@ var _ = require('../util').lodash,

return _.isEmpty(data); // catch all for remaining data modes
},
/**
* Convert the request body to JSON compatible plain object
*
* @returns {Object}
*/
toJSON: function () {
var obj = PropertyBase.toJSON(this);
// make sure that file content is removed because it is non-serializable ReadStream
_.unset(obj, 'file.content');
return obj;
}

@@ -215,0 +229,0 @@ });

@@ -14,3 +14,3 @@ {

"type": "array",
"item": {
"items": {
"type": "string",

@@ -17,0 +17,0 @@ "description": "An Url match pattern string"

@@ -5,3 +5,3 @@ {

"author": "Postman Labs <help@getpostman.com>",
"version": "3.6.6",
"version": "3.6.7",
"keywords": [

@@ -8,0 +8,0 @@ "postman"

Sorry, the diff of this file is not supported yet

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