@magic-xpa/engine 4.1200.0-dev4120.71 → 4.1200.0-dev4120.79

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.
@@ -5790,8 +5790,7 @@ class HttpClientAsync extends HttpClientBase {
5790
5790
  async sendRequestToServer(httpMethod, urlString, httpHeaders, requestContent, contentFromServer) {
5791
5791
  let contents = requestContent;
5792
5792
  let responseType = "text";
5793
- if (requestContent instanceof Uint8Array) {
5794
- contents = requestContent.buffer;
5793
+ if (requestContent instanceof ArrayBuffer) {
5795
5794
  responseType = "arraybuffer";
5796
5795
  }
5797
5796
  let httpResponse = await this.httpClient.request(RequestMethod[httpMethod], urlString, { headers: httpHeaders, responseType: responseType, observe: "response", body: contents }).toPromise();
@@ -5891,7 +5890,6 @@ class HttpManager {
5891
5890
  Logger.Instance.WriteServerToLog("*************************************************************************************************");
5892
5891
  isError.value = false;
5893
5892
  Logger.Instance.WriteServerToLog(requestedURL);
5894
- requestContent = requestContent instanceof ArrayBuffer ? this.arrayBufferToString(requestContent) : requestContent;
5895
5893
  HttpManager.LogAccessToServer("", requestContent);
5896
5894
  response = await this.getHttpClient().GetContent(requestedURL, requestContent, requestContentType, useCache);
5897
5895
  Debug.Assert(response !== null);
@@ -5930,13 +5928,6 @@ class HttpManager {
5930
5928
  // );
5931
5929
  }
5932
5930
  }
5933
- // <summary>
5934
- // Converts an ArrayBuffer to a UTF-8 encoded string.
5935
- // </summary>
5936
- arrayBufferToString(arrayBuffer) {
5937
- const decoder = new TextDecoder('utf-8');
5938
- return decoder.decode(arrayBuffer);
5939
- }
5940
5931
  /// <summary>Check if an HTTP response is an error response.
5941
5932
  /// <param name="httpResponse">response returned to an HTTP request.</param>
5942
5933
  /// <returns>if the response contains the error indicator - the error indicator is truncated and the remaining is returned.
@@ -5953,6 +5944,7 @@ class HttpManager {
5953
5944
  if (!NString.IsNullOrEmpty(msg)) {
5954
5945
  msg = msg + "; accessing server ...";
5955
5946
  }
5947
+ requestContent = requestContent instanceof ArrayBuffer ? new TextDecoder('utf-8').decode(requestContent) : requestContent;
5956
5948
  if (requestContent === null) {
5957
5949
  if (!NString.IsNullOrEmpty(msg)) {
5958
5950
  Logger.Instance.WriteServerToLog(msg);
@@ -38254,7 +38246,7 @@ class UniqueIDUtils {
38254
38246
  // Timestamp will be the new unique identifier for webclient
38255
38247
  let date = new Date();
38256
38248
  let timeStamp = date.toDateString() + date.toTimeString() + date.getMilliseconds(); // get the time stamp
38257
- UniqueIDUtils.id = HashUtils.GetHashCode(timeStamp).toString() + '_'; // get hash code of timestamp
38249
+ UniqueIDUtils.id = HashUtils.GetHashCode(timeStamp).toString(); // get hash code of timestamp
38258
38250
  }
38259
38251
  return UniqueIDUtils.id;
38260
38252
  }
@@ -39344,7 +39336,7 @@ class CommandsTable {
39344
39336
  }
39345
39337
  }
39346
39338
 
39347
- let CurrentClientVersion = '4.1200.0-dev4120.71';
39339
+ let CurrentClientVersion = '4.1200.0-dev4120.79';
39348
39340
 
39349
39341
  // @dynamic
39350
39342
  class ClientManager {
@@ -39607,7 +39599,7 @@ class ClientManager {
39607
39599
  LastFocusedManager.Instance.LastActionTime = Misc.getSystemMilliseconds();
39608
39600
  RemoteCommandsProcessor.ShouldScrambleAndUnscrambleMessages = true;
39609
39601
  // TODO: How to get Process.GetCurrentProcess().Id?
39610
- this._globalUniqueSessionId = UniqueIDUtils.GetUniqueMachineID() + "_"; // + Process.GetCurrentProcess().Id;
39602
+ this._globalUniqueSessionId = UniqueIDUtils.GetUniqueMachineID(); // + Process.GetCurrentProcess().Id;
39611
39603
  this.RegisterDelegates();
39612
39604
  }
39613
39605
  /// <summary> Initialize the data needed by the gui library