stream-chat 9.22.0 → 9.22.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.
@@ -14605,7 +14605,7 @@ var StreamChat = class _StreamChat {
14605
14605
  if (this.userAgent) {
14606
14606
  return this.userAgent;
14607
14607
  }
14608
- const version = "9.22.0";
14608
+ const version = "9.22.1";
14609
14609
  const clientBundle = "node-cjs";
14610
14610
  let userAgentString = "";
14611
14611
  if (this.sdkIdentifier) {
@@ -30,6 +30,12 @@ var require_https = __commonJS({
30
30
  }
31
31
  });
32
32
 
33
+ // (disabled):node_modules/jsonwebtoken/index.js
34
+ var require_jsonwebtoken = __commonJS({
35
+ "(disabled):node_modules/jsonwebtoken/index.js"() {
36
+ }
37
+ });
38
+
33
39
  // (disabled):crypto
34
40
  var require_crypto = __commonJS({
35
41
  "(disabled):crypto"() {
@@ -9866,8 +9872,8 @@ var StableWSConnection = class {
9866
9872
  };
9867
9873
 
9868
9874
  // src/signing.ts
9875
+ var import_jsonwebtoken = __toESM(require_jsonwebtoken());
9869
9876
  var import_crypto = __toESM(require_crypto());
9870
- import jwt from "jsonwebtoken";
9871
9877
  function JWTUserToken(apiSecret, userId, extraData = {}, jwtOptions = {}) {
9872
9878
  if (typeof userId !== "string") {
9873
9879
  throw new TypeError("userId should be a string");
@@ -9876,7 +9882,7 @@ function JWTUserToken(apiSecret, userId, extraData = {}, jwtOptions = {}) {
9876
9882
  user_id: userId,
9877
9883
  ...extraData
9878
9884
  };
9879
- if (jwt == null || jwt.sign == null) {
9885
+ if (import_jsonwebtoken.default == null || import_jsonwebtoken.default.sign == null) {
9880
9886
  throw Error(
9881
9887
  `Unable to find jwt crypto, if you are getting this error is probably because you are trying to generate tokens on browser or React Native (or other environment where crypto functions are not available). Please Note: token should only be generated server-side.`
9882
9888
  );
@@ -9888,7 +9894,7 @@ function JWTUserToken(apiSecret, userId, extraData = {}, jwtOptions = {}) {
9888
9894
  if (payload.iat) {
9889
9895
  opts.noTimestamp = false;
9890
9896
  }
9891
- return jwt.sign(payload, apiSecret, opts);
9897
+ return import_jsonwebtoken.default.sign(payload, apiSecret, opts);
9892
9898
  }
9893
9899
  function JWTServerToken(apiSecret, jwtOptions = {}) {
9894
9900
  const payload = {
@@ -9898,7 +9904,7 @@ function JWTServerToken(apiSecret, jwtOptions = {}) {
9898
9904
  { algorithm: "HS256", noTimestamp: true },
9899
9905
  jwtOptions
9900
9906
  );
9901
- return jwt.sign(payload, apiSecret, opts);
9907
+ return import_jsonwebtoken.default.sign(payload, apiSecret, opts);
9902
9908
  }
9903
9909
  function UserFromToken(token) {
9904
9910
  const fragments = token.split(".");
@@ -14439,7 +14445,7 @@ var StreamChat = class _StreamChat {
14439
14445
  if (this.userAgent) {
14440
14446
  return this.userAgent;
14441
14447
  }
14442
- const version = "9.22.0";
14448
+ const version = "9.22.1";
14443
14449
  const clientBundle = "browser-esm";
14444
14450
  let userAgentString = "";
14445
14451
  if (this.sdkIdentifier) {