javonet-nodejs-sdk 2.6.11 → 2.6.12
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.
|
@@ -486,20 +486,10 @@ class InvocationContext {
|
|
|
486
486
|
this.#buildCommand(localCommand)
|
|
487
487
|
);
|
|
488
488
|
await localInvCtx.execute();
|
|
489
|
-
const resolve = (item) => {
|
|
490
|
-
return item?.commandType === import_CommandType.CommandType.Reference ? new InvocationContext(
|
|
491
|
-
this.#runtimeName,
|
|
492
|
-
this.#connectionData,
|
|
493
|
-
item
|
|
494
|
-
) : item;
|
|
495
|
-
};
|
|
496
489
|
const respCommand = localInvCtx.#responseCommand;
|
|
497
|
-
if (!respCommand) {
|
|
490
|
+
if (!respCommand || !respCommand.payload || respCommand.payload.length === 0) {
|
|
498
491
|
return [];
|
|
499
492
|
}
|
|
500
|
-
if (respCommand.payload) {
|
|
501
|
-
return respCommand.payload.map((item) => resolve(item));
|
|
502
|
-
}
|
|
503
493
|
return respCommand.payload || [];
|
|
504
494
|
}
|
|
505
495
|
/**
|
|
@@ -166,7 +166,7 @@ class InvocationContext {
|
|
|
166
166
|
throw ExceptionThrower.throwException(this.#responseCommand)
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
// Process ValueForUpdate commands
|
|
169
|
+
// Process ValueForUpdate commands in response payload
|
|
170
170
|
this.#responseCommand = this.#processUpdateInvocationContextCommands(this.#responseCommand)
|
|
171
171
|
|
|
172
172
|
if (this.#responseCommand.commandType === CommandType.CreateClassInstance) {
|
|
@@ -176,7 +176,7 @@ class InvocationContext {
|
|
|
176
176
|
}
|
|
177
177
|
return new InvocationContext(this.#runtimeName, this.#connectionData, this.#responseCommand, true)
|
|
178
178
|
} finally {
|
|
179
|
-
//
|
|
179
|
+
// Release all locks in reverse order
|
|
180
180
|
for (let i = releases.length - 1; i >= 0; i--) {
|
|
181
181
|
try { releases[i]() } catch { /* ignore */ }
|
|
182
182
|
}
|
|
@@ -536,24 +536,12 @@ class InvocationContext {
|
|
|
536
536
|
|
|
537
537
|
await localInvCtx.execute()
|
|
538
538
|
|
|
539
|
-
const resolve = (/** @type {any} */ item) => {
|
|
540
|
-
return item?.commandType === CommandType.Reference ?
|
|
541
|
-
new InvocationContext(
|
|
542
|
-
this.#runtimeName,
|
|
543
|
-
this.#connectionData,
|
|
544
|
-
item
|
|
545
|
-
) : item
|
|
546
|
-
}
|
|
547
|
-
|
|
548
539
|
const respCommand = localInvCtx.#responseCommand
|
|
549
|
-
if (!respCommand) {
|
|
540
|
+
if (!respCommand || !respCommand.payload || respCommand.payload.length === 0) {
|
|
550
541
|
return []
|
|
551
542
|
}
|
|
552
543
|
|
|
553
|
-
|
|
554
|
-
return respCommand.payload.map((/** @type {any} */ item) => resolve(item))
|
|
555
|
-
}
|
|
556
|
-
|
|
544
|
+
// Return a shallow copy of the payload, mirroring the C# logic of copying to an object[]
|
|
557
545
|
return respCommand.payload || []
|
|
558
546
|
}
|
|
559
547
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "javonet-nodejs-sdk",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.12",
|
|
4
4
|
"description": "Javonet allows you to reference and use modules or packages written in (Java/Kotlin/Groovy/Clojure, C#/VB.NET, Ruby, Perl, Python, JavaScript/TypeScript) like they were created in your technology. It works on Linux/Windows and MacOS for applications created in JVM, CLR/Netcore, Perl, Python, Ruby, NodeJS, C++ or GoLang and gives you unparalleled freedom and flexibility with native performance in building your mixed-technologies products. Let it be accessing best AI or cryptography libraries, devices SDKs, legacy client modules, internal custom packages or anything from public repositories available on NPM, Nuget, PyPI, Maven/Gradle, RubyGems or GitHub. Get free from programming languages barriers today! For more information check out our guides at https://www.javonet.com/guides/v2/",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "SdNCenter Sp. z o. o.",
|