@stream-io/node-sdk 0.1.6 → 0.1.7
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/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamCall.d.ts +1 -1
- package/package.json +1 -1
- package/src/StreamClient.ts +1 -0
package/dist/index.cjs.js
CHANGED
|
@@ -8275,7 +8275,7 @@ class StreamCall {
|
|
|
8275
8275
|
return this.apiClient.endCall(Object.assign({}, this.baseRequest));
|
|
8276
8276
|
};
|
|
8277
8277
|
this.get = (request) => {
|
|
8278
|
-
return this.apiClient.getCall(Object.assign(Object.assign({}, request), this.baseRequest));
|
|
8278
|
+
return this.apiClient.getCall(Object.assign(Object.assign({}, (request || {})), this.baseRequest));
|
|
8279
8279
|
};
|
|
8280
8280
|
this.getOrCreate = (videoGetOrCreateCallRequest) => {
|
|
8281
8281
|
return this.apiClient.getOrCreateCall(Object.assign(Object.assign({}, this.baseRequest), { videoGetOrCreateCallRequest: videoGetOrCreateCallRequest || {} }));
|
|
@@ -8619,12 +8619,12 @@ class StreamClient {
|
|
|
8619
8619
|
},
|
|
8620
8620
|
basePath: (options === null || options === void 0 ? void 0 : options.basePath) || this.options.basePath,
|
|
8621
8621
|
headers: {
|
|
8622
|
-
"X-Stream-Client": "stream-node-" + "0.1.
|
|
8622
|
+
"X-Stream-Client": "stream-node-" + "0.1.6",
|
|
8623
8623
|
},
|
|
8624
8624
|
middleware: [
|
|
8625
8625
|
{
|
|
8626
8626
|
pre: (context) => {
|
|
8627
|
-
context.init.headers = Object.assign(Object.assign({}, context.init.headers), { "x-client-request-id": uuid.v4() });
|
|
8627
|
+
context.init.headers = Object.assign(Object.assign({}, context.init.headers), { "x-client-request-id": uuid.v4(), "Accept-Encoding": "gzip" });
|
|
8628
8628
|
return Promise.resolve(context);
|
|
8629
8629
|
},
|
|
8630
8630
|
},
|