postman-runtime 7.49.1 → 7.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,7 +85,10 @@ var dns = require('dns'),
85
85
  removeRefererHeader: 'removeRefererHeaderOnRedirect',
86
86
 
87
87
  // Select the HTTP protocol version to be used. Valid options are http1/http2/auto
88
- protocolVersion: 'protocolVersion'
88
+ protocolVersion: 'protocolVersion',
89
+
90
+ // disable cookie jar
91
+ disableCookies: 'disableCookies'
89
92
  },
90
93
 
91
94
  /**
@@ -484,7 +487,7 @@ module.exports = {
484
487
  }
485
488
 
486
489
  // set cookie jar if not disabled
487
- if (!protocolProfileBehavior.disableCookies) {
490
+ if (!options.disableCookies) {
488
491
  options.jar = defaultOpts.cookieJar || true;
489
492
  }
490
493
 
@@ -316,7 +316,11 @@ function dryRun (request, options, done) {
316
316
  implicitCacheControl = options.implicitCacheControl,
317
317
  implicitTraceHeader = options.implicitTraceHeader,
318
318
  disabledSystemHeaders = _.get(options.protocolProfileBehavior, 'disabledSystemHeaders') || {},
319
- disableCookies = _.get(options.protocolProfileBehavior, 'disableCookies');
319
+
320
+ // TODO: Unify the logic to read ppb properties with core.js
321
+ disableCookies = Object.hasOwn(options.protocolProfileBehavior || {}, 'disableCookies') ?
322
+ options.protocolProfileBehavior.disableCookies :
323
+ options.disableCookies;
320
324
 
321
325
  async.waterfall([
322
326
  function setContentTypeHeader (next) {
@@ -22,6 +22,7 @@ RequesterPool = function (options, callback) {
22
22
  keepAlive: _.get(options, 'requester.keepAlive', true),
23
23
  agents: _.get(options, 'requester.agents'), // http(s).Agent instances
24
24
  cookieJar: _.get(options, 'requester.cookieJar'), // default set later in this constructor
25
+ disableCookies: _.get(options, 'requester.disableCookies', false),
25
26
  strictSSL: _.get(options, 'requester.strictSSL'),
26
27
  maxResponseSize: _.get(options, 'requester.maxResponseSize'),
27
28
  protocolVersion: _.get(options, 'requester.protocolVersion'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-runtime",
3
- "version": "7.49.1",
3
+ "version": "7.50.0",
4
4
  "description": "Underlying library of executing Postman Collections",
5
5
  "author": "Postman Inc.",
6
6
  "license": "Apache-2.0",