box-node-sdk 2.8.0 → 2.8.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [2.8.1](https://github.com/box/box-node-sdk/compare/v2.8.0...v2.8.1) (2023-01-05)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Fix `getReadStream` delay reading ([#790](https://github.com/box/box-node-sdk/issues/790)) ([6bfc1ee](https://github.com/box/box-node-sdk/commit/6bfc1eebeb9a31606ff96127eeb1ad03d2f13d9c))
11
+
5
12
  ## [2.8.0](https://github.com/box/box-node-sdk/compare/v2.7.2...v2.8.0) (2022-12-21)
6
13
 
7
14
 
@@ -10,6 +10,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  // ------------------------------------------------------------------------------
11
11
  var bluebird_1 = require("bluebird");
12
12
  var errors_1 = __importDefault(require("./util/errors"));
13
+ var stream_1 = require("stream");
13
14
  var APIRequest = require('./api-request');
14
15
  // ------------------------------------------------------------------------------
15
16
  // Private
@@ -60,7 +61,17 @@ var APIRequestManager = /** @class */ (function () {
60
61
  // Make the request
61
62
  var apiRequest = new APIRequest(requestConfig, this.eventBus);
62
63
  apiRequest.execute();
63
- return apiRequest.getResponseStream();
64
+ var stream = apiRequest.getResponseStream();
65
+ // The request is asynchronous, so we need to wait for the stream to be
66
+ // available before we can pipe it to the pass-through stream.
67
+ // If the stream is undefined, then the request failed and we should
68
+ // propagate the error.
69
+ if (stream) {
70
+ var passThrough = new stream_1.PassThrough();
71
+ stream.pipe(passThrough);
72
+ return passThrough;
73
+ }
74
+ return stream;
64
75
  };
65
76
  return APIRequestManager;
66
77
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"api-request-manager.js","sourceRoot":"","sources":["../src/api-request-manager.ts"],"names":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,CAAC;YACtC,OAAO,EAAE,OAAO;SAChB,CAAC,CAAC;QAEH,mBAAmB;QACnB,IAAI,UAAU,GAAG,IAAI,UAAU,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC9D,UAAU,CAAC,OAAO,EAAE,CAAC;QACrB,IAAI,MAAM,GAAG,UAAU,CAAC,iBAAiB,EAAE,CAAC;QAE5C,uEAAuE;QACvE,8DAA8D;QAC9D,oEAAoE;QACpE,uBAAuB;QACvB,IAAI,MAAM,EAAE;YACX,IAAI,WAAW,GAAG,IAAI,oBAAW,EAAE,CAAC;YACpC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACzB,OAAO,WAAW,CAAC;SACnB;QACD,OAAO,MAAM,CAAC;IACf,CAAC;IACF,wBAAC;AAAD,CAAC,AAxDD,IAwDC;AAMD,iBAAS,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "box-node-sdk",
3
3
  "author": "Box <oss@box.com>",
4
- "version": "2.8.0",
4
+ "version": "2.8.1",
5
5
  "description": "Official SDK for Box Plaform APIs",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -37,7 +37,7 @@
37
37
  "@types/bluebird": "^3.5.35",
38
38
  "@types/node": "^15.3.1",
39
39
  "ajv": "^6.12.3",
40
- "bluebird": "^3.7.1",
40
+ "bluebird": "^3.7.2",
41
41
  "http-status": "^1.4.1",
42
42
  "jsonwebtoken": "^8.5.1",
43
43
  "merge-options": "^1.0.1",
@@ -59,14 +59,14 @@
59
59
  "@types/uuid": "^8.3.0",
60
60
  "better-docs": "^2.3.2",
61
61
  "chai": "^4.2.0",
62
- "doctoc": "^2.0.1",
63
- "eslint": "^4.19.1",
62
+ "doctoc": "^2.2.1",
63
+ "eslint": "^6.8.0",
64
64
  "eslint-plugin-jest": "^23.20.0",
65
- "eslint-plugin-node": "^6.0.1",
66
- "eslint-plugin-promise": "^3.8.0",
65
+ "eslint-plugin-node": "^11.1.0",
66
+ "eslint-plugin-promise": "^6.1.1",
67
67
  "eslint-plugin-unicorn": "^4.0.3",
68
68
  "istanbul": "^0.4.3",
69
- "jest": "^27.3.0",
69
+ "jest": "^27.5.1",
70
70
  "jsdoc": "^3.6.3",
71
71
  "jsonlint": "^1.6.3",
72
72
  "jsonlint2": "^1.7.1",
@@ -75,7 +75,6 @@
75
75
  "mocha": "^6.0.0",
76
76
  "mockery": "^2.1.0",
77
77
  "nock": "^9.6.1",
78
- "npm-force-resolutions": "0.0.3",
79
78
  "npm-upgrade": "^3.0.0",
80
79
  "nyc": "^14.0.0",
81
80
  "prettier": "^2.3.2",
@@ -83,16 +82,12 @@
83
82
  "shelljs-nodecli": "^0.1.1",
84
83
  "sinon": "^7.5.0",
85
84
  "standard-version": "^9.3.2",
86
- "ts-jest": "^27.0.7",
85
+ "ts-jest": "^27.1.4",
87
86
  "ts-node": "^10.2.0",
88
87
  "typescript": "^4.2.4"
89
88
  },
90
89
  "files": [
91
90
  "config",
92
91
  "lib"
93
- ],
94
- "resolutions": {
95
- "handlebars": "4.5.3",
96
- "minimist": "1.2.5"
97
- }
92
+ ]
98
93
  }