@e-mc/request 0.7.22 → 0.7.23

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.
@@ -298,6 +298,11 @@ class HttpAdapter {
298
298
  }
299
299
  });
300
300
  }
301
+ if (opts.trailers) {
302
+ this.client.once('trailers', (trailers) => {
303
+ opts.trailers.call(this.client, trailers);
304
+ });
305
+ }
301
306
  this.client.once('end', () => {
302
307
  if (this.closed || this.aborted) {
303
308
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/request",
3
- "version": "0.7.22",
3
+ "version": "0.7.23",
4
4
  "description": "Request constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/e-mc#readme",
22
22
  "dependencies": {
23
- "@e-mc/module": "0.7.22",
24
- "@e-mc/types": "0.7.22",
23
+ "@e-mc/module": "0.7.23",
24
+ "@e-mc/types": "0.7.23",
25
25
  "combined-stream": "^1.0.8",
26
26
  "js-yaml": "^4.1.0",
27
27
  "which": "^2.0.2"