postman-runtime 7.50.0 → 7.51.1

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.
@@ -441,7 +441,7 @@ class Requester extends EventEmitter {
441
441
  responseTime,
442
442
  response;
443
443
 
444
- if (err) {
444
+ if (err && !err.res) {
445
445
  // bubble up http errors
446
446
  // @todo - Should we send an empty sdk Response here?
447
447
  //
@@ -449,6 +449,15 @@ class Requester extends EventEmitter {
449
449
  return onEnd(err, undefined, history);
450
450
  }
451
451
 
452
+ // If the error has a response attached, use it to populate the response instead of treating
453
+ // it as a crash.
454
+ if (err && err.res) {
455
+ res = err.res;
456
+
457
+ if (Buffer.isBuffer(err.res.body)) {
458
+ resBody = err.res.body;
459
+ }
460
+ }
452
461
 
453
462
  // Calculate the time taken for us to get the response.
454
463
  responseTime = Date.now() - startTime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-runtime",
3
- "version": "7.50.0",
3
+ "version": "7.51.1",
4
4
  "description": "Underlying library of executing Postman Collections",
5
5
  "author": "Postman Inc.",
6
6
  "license": "Apache-2.0",
@@ -49,14 +49,14 @@
49
49
  "httpntlm": "1.8.13",
50
50
  "jose": "5.10.0",
51
51
  "js-sha512": "0.9.0",
52
- "lodash": "4.17.21",
52
+ "lodash": "4.17.23",
53
53
  "mime-types": "2.1.35",
54
- "node-forge": "1.3.1",
54
+ "node-forge": "1.3.3",
55
55
  "node-oauth1": "1.3.0",
56
56
  "performance-now": "2.1.0",
57
57
  "postman-collection": "5.2.0",
58
- "postman-request": "2.88.1-postman.46",
59
- "postman-sandbox": "6.2.2",
58
+ "postman-request": "2.88.1-postman.48",
59
+ "postman-sandbox": "6.4.0",
60
60
  "postman-url-encoder": "3.0.8",
61
61
  "serialised-error": "1.1.3",
62
62
  "strip-json-comments": "3.1.1",
@@ -79,7 +79,7 @@
79
79
  "eslint-plugin-security": "^2.1.1",
80
80
  "express": "^4.17.2",
81
81
  "graphql": "^16.10.0",
82
- "js-yaml": "^4.1.0",
82
+ "js-yaml": "^4.1.1",
83
83
  "karma": "^6.4.4",
84
84
  "karma-browserify": "^8.1.0",
85
85
  "karma-chrome-launcher": "^3.2.0",