@magic-xpa/engine 4.1100.0-dev4110.204 → 4.1100.0-dev4110.207
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/src/ClientManager.mjs +9 -4
- package/esm2022/src/CurrentClientVersion.mjs +2 -2
- package/esm2022/src/bridge/MagicBridge.mjs +3 -3
- package/esm2022/src/remote/RemoteCommandsProcessor.mjs +25 -27
- package/fesm2022/magic-xpa-engine.mjs +33 -30
- package/fesm2022/magic-xpa-engine.mjs.map +1 -1
- package/package.json +4 -4
- package/src/ClientManager.d.ts +1 -1
- package/src/bridge/MagicBridge.d.ts +1 -1
@@ -5507,34 +5507,32 @@ class RemoteCommandsProcessor extends CommandsProcessorBase {
|
|
5507
5507
|
reqBuf = null;
|
5508
5508
|
else {
|
5509
5509
|
reqBuf = await this.PrepareRequest(sendingInstruction === CommandsProcessorBase_SendingInstruction.TASKS_AND_COMMANDS);
|
5510
|
-
|
5511
|
-
|
5512
|
-
|
5513
|
-
|
5514
|
-
|
5515
|
-
|
5516
|
-
|
5517
|
-
|
5518
|
-
|
5519
|
-
|
5520
|
-
|
5521
|
-
|
5522
|
-
|
5523
|
-
|
5524
|
-
|
5525
|
-
|
5526
|
-
|
5527
|
-
|
5528
|
-
|
5529
|
-
|
5530
|
-
changes = new StringBuilder(scrambledChanges);
|
5531
|
-
}
|
5532
|
-
changes.Insert(0, XMLConstants.MG_TAG_OPEN);
|
5533
|
-
changes.Append(XMLConstants.MG_TAG_XML_END_TAGGED);
|
5534
|
-
buffer.Append(changes.ToString());
|
5510
|
+
let changes = new StringBuilder();
|
5511
|
+
let buffer = new StringBuilder();
|
5512
|
+
if (!RemoteCommandsProcessor.IsSessionReInitializing)
|
5513
|
+
buffer.Append(reqBuf);
|
5514
|
+
if (RemoteCommandsProcessor.IsSessionReInitializing) {
|
5515
|
+
globalParamsString = this.RestoreSessionReInitializingDataFromLocalStorage(ConstInterface.GLOBAL_PARAM_LIST);
|
5516
|
+
envVarsString = this.RestoreSessionReInitializingDataFromLocalStorage(ConstInterface.ENV_VAR_LIST);
|
5517
|
+
}
|
5518
|
+
else {
|
5519
|
+
globalParamsString = AccessHelper.globalParams.mirrorToXML();
|
5520
|
+
envVarsString = AccessHelper.envParamsTable.mirrorToXML();
|
5521
|
+
}
|
5522
|
+
changes.Append(globalParamsString);
|
5523
|
+
changes.Append(envVarsString);
|
5524
|
+
if (changes.Length > 0) {
|
5525
|
+
changes.Insert(0, "<" + ConstInterface.MG_TAG_ENV_CHANGES + ">");
|
5526
|
+
changes.Append("</" + ConstInterface.MG_TAG_ENV_CHANGES + ">");
|
5527
|
+
if (RemoteCommandsProcessor.ShouldScrambleAndUnscrambleMessages) {
|
5528
|
+
let scrambledChanges = Scrambler.Scramble(changes.ToString());
|
5529
|
+
changes = new StringBuilder(scrambledChanges);
|
5535
5530
|
}
|
5536
|
-
|
5531
|
+
changes.Insert(0, XMLConstants.MG_TAG_OPEN);
|
5532
|
+
changes.Append(XMLConstants.MG_TAG_XML_END_TAGGED);
|
5533
|
+
buffer.Append(changes.ToString());
|
5537
5534
|
}
|
5535
|
+
reqBuf = buffer.ToString();
|
5538
5536
|
}
|
5539
5537
|
let requestStatus = new RefParam(RequestStatus.Handled);
|
5540
5538
|
let respBuf = null;
|
@@ -29591,7 +29589,7 @@ class CommandsTable {
|
|
29591
29589
|
}
|
29592
29590
|
}
|
29593
29591
|
|
29594
|
-
let CurrentClientVersion = '4.1100.0-dev4110.
|
29592
|
+
let CurrentClientVersion = '4.1100.0-dev4110.207';
|
29595
29593
|
|
29596
29594
|
class ClientManager {
|
29597
29595
|
static _instance = null;
|
@@ -29825,7 +29823,12 @@ class ClientManager {
|
|
29825
29823
|
AccessHelper.languageData = LanguageData.Instance;
|
29826
29824
|
AccessHelper.environment = Environment.Instance;
|
29827
29825
|
}
|
29828
|
-
static Main(httpClient) {
|
29826
|
+
static Main(httpClient, args) {
|
29827
|
+
let val;
|
29828
|
+
args.forEach((value, key) => {
|
29829
|
+
val = new ExpVal(StorageAttribute.ALPHA, false, value);
|
29830
|
+
GlobalParams.Instance.setValue(key, new MirrorExpVal(val), true);
|
29831
|
+
});
|
29829
29832
|
ClientManager.StartExecution(httpClient);
|
29830
29833
|
Logger.Instance.Flush();
|
29831
29834
|
}
|
@@ -29994,8 +29997,8 @@ function getGuiEventObj(eventType, controlName, line, fromButton = false) {
|
|
29994
29997
|
}
|
29995
29998
|
|
29996
29999
|
class MagicBridge {
|
29997
|
-
static Initialize(httpClient) {
|
29998
|
-
ClientManager.Main(httpClient);
|
30000
|
+
static Initialize(httpClient, args) {
|
30001
|
+
ClientManager.Main(httpClient, args);
|
29999
30002
|
}
|
30000
30003
|
static async TerminateMagic() {
|
30001
30004
|
await ClientManager.StopExecution();
|