@stream-io/node-sdk 0.7.60 → 0.7.62
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 +2 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +3 -4
- package/dist/index.es.mjs.map +1 -1
- package/package.json +3 -4
- package/src/ApiClient.ts +2 -2
package/dist/index.es.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import jwt from 'jsonwebtoken';
|
|
2
|
-
import crypto from 'crypto';
|
|
2
|
+
import crypto, { randomUUID } from 'crypto';
|
|
3
3
|
import zlib from 'zlib';
|
|
4
|
-
import { v4 } from 'uuid';
|
|
5
4
|
|
|
6
5
|
function JWTUserToken(apiSecret, payload) {
|
|
7
6
|
// make sure we return a clear error when jwt is shimmed (ie. browser build)
|
|
@@ -8148,11 +8147,11 @@ class ApiClient {
|
|
|
8148
8147
|
});
|
|
8149
8148
|
}
|
|
8150
8149
|
url += `?${encodedParams}`;
|
|
8151
|
-
const clientRequestId =
|
|
8150
|
+
const clientRequestId = randomUUID();
|
|
8152
8151
|
const headers = {
|
|
8153
8152
|
Authorization: this.apiConfig.token,
|
|
8154
8153
|
'stream-auth-type': 'jwt',
|
|
8155
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
8154
|
+
'X-Stream-Client': 'stream-node-' + "0.7.62",
|
|
8156
8155
|
'Accept-Encoding': 'gzip',
|
|
8157
8156
|
'x-client-request-id': clientRequestId,
|
|
8158
8157
|
};
|