synapse-react-client 3.1.50 → 3.1.51

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.js CHANGED
@@ -27668,6 +27668,9 @@ function hex2ascii(inputString) {
27668
27668
  return str;
27669
27669
  }
27670
27670
  function hashCode(str) {
27671
+ if (str == null) {
27672
+ str = "";
27673
+ }
27671
27674
  let hash2 = 0;
27672
27675
  for (let i = 0, len = str.length; i < len; i++) {
27673
27676
  const chr = str.charCodeAt(i);
@@ -30843,7 +30846,7 @@ var KeyFactory = class {
30843
30846
  */
30844
30847
  getKey(...args) {
30845
30848
  return [
30846
- this.accessToken === void 0 ? this.accessToken : btoa(String(hashCode(this.accessToken))),
30849
+ this.accessToken == null ? this.accessToken : btoa(String(hashCode(this.accessToken))),
30847
30850
  ...removeTrailingUndefinedElements(args)
30848
30851
  ];
30849
30852
  }
package/dist/index.mjs CHANGED
@@ -27535,6 +27535,9 @@ function hex2ascii(inputString) {
27535
27535
  return str;
27536
27536
  }
27537
27537
  function hashCode(str) {
27538
+ if (str == null) {
27539
+ str = "";
27540
+ }
27538
27541
  let hash2 = 0;
27539
27542
  for (let i = 0, len = str.length; i < len; i++) {
27540
27543
  const chr = str.charCodeAt(i);
@@ -30713,7 +30716,7 @@ var KeyFactory = class {
30713
30716
  */
30714
30717
  getKey(...args) {
30715
30718
  return [
30716
- this.accessToken === void 0 ? this.accessToken : btoa(String(hashCode(this.accessToken))),
30719
+ this.accessToken == null ? this.accessToken : btoa(String(hashCode(this.accessToken))),
30717
30720
  ...removeTrailingUndefinedElements(args)
30718
30721
  ];
30719
30722
  }
@@ -61211,7 +61211,7 @@ Please use another name.` : (0, _utils.formatMuiErrorMessage)(18));
61211
61211
  "package.json"(exports2, module2) {
61212
61212
  module2.exports = {
61213
61213
  name: "synapse-react-client",
61214
- version: "3.1.50",
61214
+ version: "3.1.51",
61215
61215
  private: false,
61216
61216
  main: "./dist/index.js",
61217
61217
  module: "./dist/index.mjs",
@@ -106415,6 +106415,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
106415
106415
  return str.substring(0, maxLength) + suffix;
106416
106416
  }
106417
106417
  function hashCode(str) {
106418
+ if (str == null) {
106419
+ str = "";
106420
+ }
106418
106421
  let hash4 = 0;
106419
106422
  for (let i4 = 0, len = str.length; i4 < len; i4++) {
106420
106423
  const chr = str.charCodeAt(i4);
@@ -106546,7 +106549,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${key}Cha
106546
106549
  */
106547
106550
  getKey(...args) {
106548
106551
  return [
106549
- this.accessToken === void 0 ? this.accessToken : btoa(String(hashCode(this.accessToken))),
106552
+ this.accessToken == null ? this.accessToken : btoa(String(hashCode(this.accessToken))),
106550
106553
  ...removeTrailingUndefinedElements(args)
106551
106554
  ];
106552
106555
  }