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