You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

postman-collection

Package Overview
Dependencies
Maintainers
6
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.5.1-beta.2 to 3.5.1

27

lib/collection/cookie.js

@@ -224,9 +224,14 @@ var _ = require('../util').lodash,

/**
* Converts the Cookie to a single Set-Cookie header string.
*
* @returns {String}
*/
toString: function () {
var str = Cookie.unparseSingle(this);
if (this.expires instanceof Date) {
if (this.expires && this.expires instanceof Date) {
// check for valid date
if (!Number.isNaN(this.expires.getTime())) {
str += '; Expires=' + this.expires.toGMTString();
str += '; Expires=' + this.expires.toUTCString();
}

@@ -294,2 +299,8 @@ }

/**
* Stringifies an Array or {@link PropertyList} of Cookies into a single string.
*
* @param {[Cookie]} cookies - List of cookie definition object
* @returns {String}
*/
unparse: function (cookies) {

@@ -303,2 +314,8 @@ if (!_.isArray(cookies) && !PropertyList.isPropertyList(cookies)) {

/**
* Unparses a single Cookie.
*
* @param {Cookie} cookie - Cookie definition object
* @returns {String}
*/
unparseSingle: function (cookie) {

@@ -356,2 +373,8 @@ if (!_.isObject(cookie)) { return E; }

/**
* Converts the Cookie to a single Set-Cookie header string.
*
* @param {Cookie} cookie - Cookie definition object
* @returns {String}
*/
stringify: function (cookie) {

@@ -358,0 +381,0 @@ return Cookie.prototype.toString.call(cookie);

24

package.json

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

"author": "Postman Labs <help@getpostman.com>",
"version": "3.5.1-beta.2",
"version": "3.5.1",
"keywords": [

@@ -42,4 +42,4 @@ "postman"

"liquid-json": "0.3.1",
"lodash": "4.17.11",
"marked": "0.6.3",
"lodash": "4.17.15",
"marked": "0.7.0",
"mime-format": "2.0.0",

@@ -49,3 +49,3 @@ "mime-types": "2.1.24",

"sanitize-html": "1.20.1",
"semver": "6.2.0",
"semver": "6.3.0",
"uuid": "3.3.2"

@@ -60,23 +60,23 @@ },

"chalk": "2.4.2",
"dependency-check": "3.3.0",
"dependency-check": "4.1.0",
"eslint": "5.16.0",
"eslint-plugin-jsdoc": "8.1.0",
"eslint-plugin-lodash": "5.1.0",
"eslint-plugin-mocha": "5.3.0",
"eslint-plugin-mocha": "6.0.0",
"eslint-plugin-security": "1.4.0",
"istanbul": "0.4.5",
"js-yaml": "3.13.1",
"jsdoc": "3.6.2",
"jsdoc": "3.6.3",
"jsdoc-to-markdown": "5.0.0",
"karma": "3.1.4",
"karma-browserify": "6.0.0",
"karma-chrome-launcher": "2.2.0",
"karma-browserify": "6.1.0",
"karma-chrome-launcher": "3.0.0",
"karma-mocha": "1.3.0",
"karma-mocha-reporter": "2.2.5",
"mocha": "6.1.4",
"mocha": "6.2.0",
"mustache": "3.0.1",
"parse-gitignore": "1.0.1",
"postman-jsdoc-theme": "0.0.3",
"postman-request": "2.88.1-postman.12",
"puppeteer": "1.18.0",
"postman-request": "2.88.1-postman.13",
"puppeteer": "1.19.0",
"require-all": "3.0.0",

@@ -83,0 +83,0 @@ "schema-compiler": "0.0.3",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc