javonet-ruby-sdk 2.6.7 → 2.6.10

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.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/javonet-ruby-sdk/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
  4. data/lib/javonet-ruby-sdk/Binaries/Clr/JavonetClrRuntime.dll +0 -0
  5. data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
  6. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
  7. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
  8. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
  9. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/version.txt +1 -1
  10. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
  11. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
  12. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejs2218RuntimeNative.so +0 -0
  13. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
  14. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
  15. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetActivationService.dylib +0 -0
  16. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetJvmRuntimeNative.dylib +0 -0
  17. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libUtils.dylib +0 -0
  18. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/version.txt +1 -1
  19. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
  20. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
  21. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs2218RuntimeNative.dylib +0 -0
  22. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
  23. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
  24. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Configs.dll +0 -0
  25. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
  26. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
  27. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
  28. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
  29. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
  30. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPhpRuntimeNative.dll +0 -0
  31. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
  32. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
  33. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
  34. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
  35. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
  36. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/version.txt +0 -0
  37. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Configs.dll +0 -0
  38. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
  39. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
  40. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
  41. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
  42. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
  43. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
  44. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs2218RuntimeNative.dll +0 -0
  45. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
  46. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
  47. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPhp848RuntimeNative.dll +0 -0
  48. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPhpRuntimeNative.dll +0 -0
  49. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPython2RuntimeNative.dll +0 -0
  50. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
  51. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
  52. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
  53. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
  54. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
  55. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
  56. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Configs.dll +0 -0
  57. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
  58. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
  59. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
  60. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
  61. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
  62. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
  63. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPhpRuntimeNative.dll +0 -0
  64. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPython2RuntimeNative.dll +0 -0
  65. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
  66. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
  67. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
  68. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Utils.dll +0 -0
  69. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
  70. data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
  71. data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Plugins.dll +0 -0
  72. data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
  73. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/Handler.cjs +51 -18
  74. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeInstanceMethodHandler.cjs +1 -1
  75. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeStaticMethodHandler.cjs +1 -1
  76. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/LoadLibraryHandler.cjs +15 -9
  77. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/PassDelegateHandler.cjs +2 -2
  78. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/RegisterForUpdateHandler.cjs +60 -0
  79. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ValueForUpdateHandler.cjs +36 -0
  80. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/interpreter/Interpreter.cjs +11 -33
  81. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/CommandSerializer.cjs +3 -8
  82. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/receiver/Receiver.cjs +6 -6
  83. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/Activator.cjs +44 -0
  84. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/ActivatorDetails.cjs +13 -3
  85. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/ConfigRuntimeFactory.cjs +9 -0
  86. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/InvocationContext.cjs +140 -62
  87. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/Javonet.cjs +3 -0
  88. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/RuntimeContext.cjs +9 -9
  89. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/configuration/ConfigSourceResolver.cjs +43 -21
  90. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/ComplexTypeResolver.cjs +84 -34
  91. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/Handler.d.ts +9 -1
  92. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/PassDelegateHandler.d.ts +2 -2
  93. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/RegisterForUpdateHandler.d.ts +17 -0
  94. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ValueForUpdateHandler.d.ts +7 -0
  95. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/interpreter/Interpreter.d.ts +2 -2
  96. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/CommandSerializer.d.ts +3 -3
  97. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/receiver/Receiver.d.ts +4 -4
  98. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/Activator.d.ts +12 -0
  99. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/ActivatorDetails.d.ts +5 -3
  100. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/ConfigRuntimeFactory.d.ts +7 -0
  101. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/InvocationContext.d.ts +20 -22
  102. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/Javonet.d.ts +2 -1
  103. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/RuntimeContext.d.ts +4 -3
  104. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/configuration/ConfigSourceResolver.d.ts +21 -4
  105. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/ComplexTypeResolver.d.ts +21 -5
  106. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/CommandType.d.ts +2 -0
  107. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Primitives.d.ts +5 -0
  108. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/CommandType.cjs +3 -1
  109. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Primitives.cjs +201 -0
  110. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
  111. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
  112. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
  113. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
  114. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
  115. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
  116. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
  117. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
  118. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
  119. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
  120. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +86 -86
  121. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/LoadLibraryHandler.pm +108 -11
  122. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/RegisterForUpdateHandler.pm +29 -0
  123. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/PerlHandler.pm +16 -9
  124. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/PerlCommandType.pm +2 -1
  125. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
  126. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
  127. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
  128. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
  129. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
  130. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +24 -24
  131. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/LoadLibraryHandler.pm +108 -11
  132. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/RegisterForUpdateHandler.pm +29 -0
  133. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/PerlHandler.pm +16 -9
  134. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/PerlCommandType.pm +2 -1
  135. data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/handler/LoadLibraryHandler.php +56 -21
  136. data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/interpreter/Interpreter.php +2 -2
  137. data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/protocol/CommandDeserializer.php +219 -106
  138. data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/protocol/CommandSerializer.php +55 -13
  139. data/lib/javonet-ruby-sdk/Binaries/Php/javonet/utils/Command.php +27 -9
  140. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
  141. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
  142. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
  143. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/AsOutHandler.py +1 -1
  144. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/CreateClassInstanceHandler.py +0 -2
  145. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetTypeHandler.py +2 -2
  146. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/Handler.py +26 -1
  147. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/LoadLibraryHandler.py +54 -14
  148. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/RegisterForUpdateHandler.py +38 -0
  149. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/ValueForUpdateHandler.py +6 -0
  150. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
  151. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
  152. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AddEventListenerHandler.cpython-312.pyc +0 -0
  153. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
  154. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
  155. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
  156. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
  157. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayReferenceHandler.cpython-312.pyc +0 -0
  158. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
  159. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AsOutHandler.cpython-312.pyc +0 -0
  160. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AsRefHandler.cpython-312.pyc +0 -0
  161. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
  162. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ConvertTypeHandler.cpython-312.pyc +0 -0
  163. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
  164. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CreateNullHandler.cpython-312.pyc +0 -0
  165. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
  166. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
  167. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
  168. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ExceptionHandler.cpython-312.pyc +0 -0
  169. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GenerateLibHandler.cpython-312.pyc +0 -0
  170. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetAsyncOperationResultHandler.cpython-312.pyc +0 -0
  171. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
  172. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
  173. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
  174. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetGlobalFieldHandler.cpython-312.pyc +0 -0
  175. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
  176. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
  177. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetKwargHandler.cpython-312.pyc +0 -0
  178. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetModuleHandler.cpython-312.pyc +0 -0
  179. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetRefValueHandler.cpython-312.pyc +0 -0
  180. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetResultTypeHandler.cpython-312.pyc +0 -0
  181. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
  182. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
  183. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
  184. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
  185. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
  186. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/HeartBeatHandler.cpython-312.pyc +0 -0
  187. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
  188. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeGenericMethodHandler.cpython-312.pyc +0 -0
  189. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeGenericStaticMethodHandler.cpython-312.pyc +0 -0
  190. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeGlobalFunctionHandler.cpython-312.pyc +0 -0
  191. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
  192. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
  193. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
  194. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/OptimizeHandler.cpython-312.pyc +0 -0
  195. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
  196. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PluginWrapperHandler.cpython-312.pyc +0 -0
  197. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/RegisterForUpdateHandler.cpython-312.pyc +0 -0
  198. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
  199. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/RetrieveArrayHandler.cpython-312.pyc +0 -0
  200. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
  201. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
  202. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueForUpdateHandler.cpython-312.pyc +0 -0
  203. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
  204. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
  205. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
  206. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
  207. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
  208. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  209. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
  210. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
  211. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
  212. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
  213. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
  214. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
  215. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
  216. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
  217. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  218. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
  219. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
  220. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/CommandType.py +3 -1
  221. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/LazyModuleLoader.py +8 -11
  222. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
  223. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
  224. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
  225. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
  226. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/LazyModuleLoader.cpython-312.pyc +0 -0
  227. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
  228. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
  229. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
  230. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
  231. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/TypesHandler.cpython-312.pyc +0 -0
  232. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/UtilsConst.cpython-312.pyc +0 -0
  233. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  234. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
  235. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
  236. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
  237. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/ExceptionSerializer.py +1 -1
  238. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
  239. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionThrower.cpython-312.pyc +0 -0
  240. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/JavonetException.cpython-312.pyc +0 -0
  241. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
  242. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/messageHelper/__pycache__/MessageHelper.cpython-312.pyc +0 -0
  243. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/messageHelper/__pycache__/__init__.cpython-312.pyc +0 -0
  244. data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
  245. data/lib/javonet-ruby-sdk/core/handler/handler.rb +50 -9
  246. data/lib/javonet-ruby-sdk/core/handler/load_library_handler.rb +22 -9
  247. data/lib/javonet-ruby-sdk/core/handler/register_for_update_handler.rb +28 -0
  248. data/lib/javonet-ruby-sdk/core/handler/value_for_update_handler.rb +11 -0
  249. data/lib/javonet-ruby-sdk/sdk/config_runtime_factory.rb +8 -0
  250. data/lib/javonet-ruby-sdk/utils/command_type.rb +6 -0
  251. data/lib/javonet-ruby-sdk/utils/exceptions/exception_serializer.rb +0 -1
  252. metadata +18 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 466353207c739c6ba5c4d38e2a53bb28042cffdd78575f29b26e0ad8a81da1b4
4
- data.tar.gz: 79b9909c9c744c49079fee11f843675ff775e23f0dd13ca986b74aee7e516986
3
+ metadata.gz: bd483c1827f1c74cb5fc63d48819267cf05fa9dad0be8776a602be8da4461048
4
+ data.tar.gz: 2fe10b5e45c087b9642d47d9ec7dd8cb422113a2a7c9b2a6f5ee5fa608849d4d
5
5
  SHA512:
6
- metadata.gz: c77ba581bee1edcd67a550280b4e949314bf4443ea02c59665ef354ddbebf79945031467c398678449d7285b0565daa9349048b7b09d861592e78f46d82671dd
7
- data.tar.gz: 224d457dd4dfaf531ce71c061dd3ac6923ed20f45ac16a759d87af0fd5711bb241f6ec89b79aca6d4489bfe376f9b28b2052da41d30938bd7c251f2587ceb415
6
+ metadata.gz: 2adb3e843603f22ddb1656865fe6a9038856c40fe128a9db8590f4368afba23d4552b9bed5dcc8b5508f3567f683367c454a195327ba446bfa346ec9b0d43cae
7
+ data.tar.gz: 1f2166306bc0ba00930878fffe6434dcbe6819995268e12599911f48d5e54b20a9b499d82d84c635f6762c14915c8c6298d1ab209e6b6557006bbfebf01dea3c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.6.7
1
+ 2.6.10
@@ -1 +1 @@
1
- 2.6.7
1
+ 2.6.10
@@ -1 +1 @@
1
- 2.6.7
1
+ 2.6.10
@@ -1 +1 @@
1
- 2.6.7
1
+ 2.6.10
@@ -1 +1 @@
1
- 2.6.7
1
+ 2.6.10
@@ -1 +1 @@
1
- '2.6.7'
1
+ '2.6.10'
@@ -1 +1 @@
1
- '2.6.7'
1
+ '2.6.10'
@@ -22,6 +22,11 @@ __export(Handler_exports, {
22
22
  handlers: () => handlers
23
23
  });
24
24
  module.exports = __toCommonJS(Handler_exports);
25
+ var import_CommandType = require("../../utils/CommandType.cjs");
26
+ var import_Command = require("../../utils/Command.cjs");
27
+ var import_TypesHandler = require("../../utils/TypesHandler.cjs");
28
+ var import_ExceptionSerializer = require("../../utils/exception/ExceptionSerializer.cjs");
29
+ var import_AbstractHandler = require("./AbstractHandler.cjs");
25
30
  var import_ReferencesCache = require("../referenceCache/ReferencesCache.cjs");
26
31
  var import_ValueHandler = require("./ValueHandler.cjs");
27
32
  var import_LoadLibraryHandler = require("./LoadLibraryHandler.cjs");
@@ -71,11 +76,8 @@ var import_GetAsyncOperationResultHandler = require("./GetAsyncOperationResultHa
71
76
  var import_AsKwargsHandler = require("./AsKwargsHandler.cjs");
72
77
  var import_GetResultTypeHandler = require("./GetResultTypeHandler.cjs");
73
78
  var import_GetGlobalFieldHandler = require("./GetGlobalFieldHandler.cjs");
74
- var import_CommandType = require("../../utils/CommandType.cjs");
75
- var import_Command = require("../../utils/Command.cjs");
76
- var import_TypesHandler = require("../../utils/TypesHandler.cjs");
77
- var import_ExceptionSerializer = require("../../utils/exception/ExceptionSerializer.cjs");
78
- var import_AbstractHandler = require("./AbstractHandler.cjs");
79
+ var import_RegisterForUpdateHandler = require("./RegisterForUpdateHandler.cjs");
80
+ var import_ValueForUpdateHandler = require("./ValueForUpdateHandler.cjs");
79
81
  const handlers = {
80
82
  [import_CommandType.CommandType.Value]: new import_ValueHandler.ValueHandler(),
81
83
  [import_CommandType.CommandType.LoadLibrary]: new import_LoadLibraryHandler.LoadLibraryHandler(),
@@ -124,7 +126,9 @@ const handlers = {
124
126
  [import_CommandType.CommandType.GetAsyncOperationResult]: new import_GetAsyncOperationResultHandler.GetAsyncOperationResultHandler(),
125
127
  [import_CommandType.CommandType.AsKwargs]: new import_AsKwargsHandler.AsKwargsHandler(),
126
128
  [import_CommandType.CommandType.GetResultType]: new import_GetResultTypeHandler.GetResultTypeHandler(),
127
- [import_CommandType.CommandType.GetGlobalField]: new import_GetGlobalFieldHandler.GetGlobalFieldHandler()
129
+ [import_CommandType.CommandType.GetGlobalField]: new import_GetGlobalFieldHandler.GetGlobalFieldHandler(),
130
+ [import_CommandType.CommandType.RegisterForUpdate]: new import_RegisterForUpdateHandler.RegisterForUpdateHandler(),
131
+ [import_CommandType.CommandType.ValueForUpdate]: new import_ValueForUpdateHandler.ValueForUpdateHandler()
128
132
  };
129
133
  class Handler {
130
134
  /**
@@ -142,25 +146,30 @@ class Handler {
142
146
  }
143
147
  /**
144
148
  * @param {Command} command
149
+ * @returns {Promise<Command> | Command}
145
150
  */
146
151
  handleCommand(command) {
147
152
  try {
148
153
  if (command.commandType === import_CommandType.CommandType.RetrieveArray) {
149
154
  const responseArray = handlers[import_CommandType.CommandType.Reference].handleCommand(command.payload[0]);
150
- if (responseArray instanceof Promise) {
151
- return responseArray.then((resolvedResponseArray) => {
152
- return import_Command.Command.createArrayResponse(resolvedResponseArray, command.runtimeName);
153
- });
154
- } else {
155
- return import_Command.Command.createArrayResponse(responseArray, command.runtimeName);
156
- }
155
+ return import_Command.Command.createArrayResponse(responseArray, command.runtimeName);
157
156
  }
158
157
  const response = handlers[command.commandType].handleCommand(command);
159
158
  return this.parseCommand(response, command.runtimeName);
160
159
  } catch (e) {
161
- return import_ExceptionSerializer.ExceptionSerializer.serializeException(e, command);
160
+ return Handler.resolveException(e, command);
162
161
  }
163
162
  }
163
+ /**
164
+ * Prefer innerException (or cause) when available.
165
+ * @param {any} error
166
+ * @param {Command} command
167
+ * @returns {Command}
168
+ */
169
+ static resolveException(error, command) {
170
+ const inner = error?.cause;
171
+ return import_ExceptionSerializer.ExceptionSerializer.serializeException(inner ?? error, command);
172
+ }
164
173
  /**
165
174
  * @param {any} response
166
175
  * @param {RuntimeName} runtimeName
@@ -172,13 +181,37 @@ class Handler {
172
181
  return this.parseCommand(resolvedResponse, runtimeName);
173
182
  });
174
183
  }
184
+ let responseCommand;
175
185
  if (import_TypesHandler.TypesHandler.isPrimitiveOrNullOrUndefined(response)) {
176
- return import_Command.Command.createResponse(response, runtimeName);
186
+ responseCommand = import_Command.Command.createResponse(response, runtimeName);
177
187
  } else {
178
- let cache = import_ReferencesCache.ReferencesCache.getInstance();
179
- let uuid = cache.cacheReference(response);
180
- return import_Command.Command.createReference(uuid, runtimeName);
188
+ const refCache = import_ReferencesCache.ReferencesCache.getInstance();
189
+ const uuid = refCache.cacheReference(response);
190
+ responseCommand = import_Command.Command.createReference(uuid, runtimeName);
191
+ }
192
+ const invocationContexts = import_RegisterForUpdateHandler.RegisterForUpdateHandler._invocationContexts.Value;
193
+ if (invocationContexts && invocationContexts.size > 0) {
194
+ const refCache = import_ReferencesCache.ReferencesCache.getInstance();
195
+ for (const [contextKey, instance] of invocationContexts.entries()) {
196
+ const instanceGuid = refCache.cacheReference(instance);
197
+ const updateContextCommand = new import_Command.Command(
198
+ runtimeName,
199
+ import_CommandType.CommandType.ValueForUpdate,
200
+ [
201
+ contextKey.toString(),
202
+ instanceGuid
203
+ ]
204
+ );
205
+ if (typeof responseCommand.addArgToPayload === "function") {
206
+ responseCommand = responseCommand.addArgToPayload(updateContextCommand);
207
+ } else {
208
+ responseCommand.payload = responseCommand.payload || [];
209
+ responseCommand.payload.push(updateContextCommand);
210
+ }
211
+ }
212
+ invocationContexts.clear();
181
213
  }
214
+ return responseCommand;
182
215
  }
183
216
  }
184
217
  // Annotate the CommonJS export names for ESM import in node:
@@ -44,7 +44,7 @@ class InvokeInstanceMethodHandler extends import_AbstractHandler.AbstractHandler
44
44
  let methods = Object.getOwnPropertyNames(instance.__proto__).filter(function(property) {
45
45
  return typeof instance.__proto__[property] === "function";
46
46
  });
47
- let message = `Method ${methodName} not found in object. Available methods:
47
+ let message = `Method ${methodName} not found in object ${instance.constructor.name}. Available methods:
48
48
  `;
49
49
  methods.forEach((methodIter) => {
50
50
  message += `${methodIter}
@@ -44,7 +44,7 @@ class InvokeStaticMethodHandler extends import_AbstractHandler.AbstractHandler {
44
44
  let methods = Object.getOwnPropertyNames(type).filter(function(property) {
45
45
  return typeof type[property] === "function";
46
46
  });
47
- let message = `Method ${methodName} not found in class. Available methods:
47
+ let message = `Method ${methodName} not found in class ${type.name}. Available methods:
48
48
  `;
49
49
  methods.forEach((methodIter) => {
50
50
  message += `${methodIter}
@@ -41,8 +41,8 @@ class LoadLibraryHandler extends import_AbstractHandler.AbstractHandler {
41
41
  if (command.payload.length < this.requiredParametersCount) {
42
42
  throw new Error("Load Library parameters mismatch");
43
43
  }
44
- let { payload } = command;
45
- let [lib] = payload;
44
+ const { payload } = command;
45
+ const [lib] = payload;
46
46
  if (!lib) {
47
47
  throw new Error("Cannot load module: Library path is required but was not provided");
48
48
  }
@@ -54,19 +54,25 @@ class LoadLibraryHandler extends import_AbstractHandler.AbstractHandler {
54
54
  const { resolve } = requireDynamic("path");
55
55
  _resolve = resolve;
56
56
  }
57
- const absolutePath = _resolve?.(lib);
58
- if (!_existsSync?.(lib ?? "") && !_existsSync?.(absolutePath ?? "")) {
57
+ const absolutePath = _resolve ? _resolve(lib) : lib;
58
+ const candidatePaths = [lib, absolutePath];
59
+ const existingPath = candidatePaths.find((p) => _existsSync && _existsSync(p));
60
+ if (!existingPath) {
59
61
  throw new Error(`Cannot load module: Library not found: ${lib}`);
60
62
  }
61
- let pathArray = lib.split(/[/\\]/);
63
+ const normalizedPath = _resolve ? _resolve(existingPath) : existingPath;
64
+ if (LoadLibraryHandler.loadedLibraries.includes(normalizedPath)) {
65
+ return 0;
66
+ }
67
+ const pathArray = normalizedPath.split(/[/\\]/);
62
68
  let libraryName = pathArray.length > 1 ? pathArray[pathArray.length - 1] : pathArray[0];
63
- libraryName = libraryName.replace(".js", "");
69
+ libraryName = libraryName.replace(/\.js$/i, "");
64
70
  let moduleExports;
65
71
  try {
66
- moduleExports = requireDynamic(lib);
67
- LoadLibraryHandler.loadedLibraries.push(lib);
72
+ moduleExports = requireDynamic(normalizedPath);
73
+ LoadLibraryHandler.loadedLibraries.push(normalizedPath);
68
74
  } catch (error) {
69
- throw Error("Cannot load module: " + lib + "\n" + error);
75
+ throw new Error("Cannot load module: " + normalizedPath + "\n" + error);
70
76
  }
71
77
  global[libraryName] = moduleExports;
72
78
  for (const [key, value] of Object.entries(moduleExports)) {
@@ -110,9 +110,9 @@ class PassDelegateHandler extends import_AbstractHandler.AbstractHandler {
110
110
  /**
111
111
  * Creates a method call to execute the command.
112
112
  * @param {Command} command - The command object.
113
- * @returns {any} The response object.
113
+ * @returns {Promise<any>} The response object.
114
114
  */
115
- createExecuteCall(command) {
115
+ async createExecuteCall(command) {
116
116
  return this.interpreter?.execute(command, new import_InMemoryConnectionData.InMemoryConnectionData());
117
117
  }
118
118
  /**
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var RegisterForUpdateHandler_exports = {};
20
+ __export(RegisterForUpdateHandler_exports, {
21
+ RegisterForUpdateHandler: () => RegisterForUpdateHandler
22
+ });
23
+ module.exports = __toCommonJS(RegisterForUpdateHandler_exports);
24
+ var import_AbstractHandler = require("./AbstractHandler.cjs");
25
+ class RegisterForUpdateHandler extends import_AbstractHandler.AbstractHandler {
26
+ requiredParametersCount = 2;
27
+ /* type {Map<string, any>} */
28
+ static _invocationContexts = { Value: /* @__PURE__ */ new Map() };
29
+ /**
30
+ * Ensure context map exists and return it.
31
+ * @returns {Map<string, any>}
32
+ */
33
+ static getOrCreateContextMap() {
34
+ const container = RegisterForUpdateHandler._invocationContexts;
35
+ if (!container.Value) {
36
+ container.Value = /* @__PURE__ */ new Map();
37
+ }
38
+ return container.Value;
39
+ }
40
+ /**
41
+ * @param {any} command
42
+ * @returns {any}
43
+ */
44
+ process(command) {
45
+ if (command.payload.length < this.requiredParametersCount) {
46
+ throw new Error("RegisterForUpdateHandler parameters mismatch");
47
+ }
48
+ const objectToRegister = command.payload[0];
49
+ const guidToRegister = command.payload.length > 1 && typeof command.payload[1] === "string" ? command.payload[1] : "";
50
+ const contextMap = RegisterForUpdateHandler.getOrCreateContextMap();
51
+ if (!contextMap.has(guidToRegister)) {
52
+ contextMap.set(guidToRegister, objectToRegister);
53
+ }
54
+ return objectToRegister;
55
+ }
56
+ }
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ RegisterForUpdateHandler
60
+ });
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var ValueForUpdateHandler_exports = {};
20
+ __export(ValueForUpdateHandler_exports, {
21
+ ValueForUpdateHandler: () => ValueForUpdateHandler
22
+ });
23
+ module.exports = __toCommonJS(ValueForUpdateHandler_exports);
24
+ var import_AbstractHandler = require("./AbstractHandler.cjs");
25
+ class ValueForUpdateHandler extends import_AbstractHandler.AbstractHandler {
26
+ /**
27
+ * @param {any} command
28
+ */
29
+ process(command) {
30
+ throw new Error(`${this.constructor.name} is not implemented in Node.js`);
31
+ }
32
+ }
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ ValueForUpdateHandler
36
+ });
@@ -48,17 +48,19 @@ class Interpreter {
48
48
  *
49
49
  * @param {Command} command
50
50
  * @param {IConnectionData} connectionData
51
- * @returns {Command | Promise<Command>}
51
+ * @returns {Promise<Command>}
52
52
  */
53
- execute(command, connectionData) {
53
+ async execute(command, connectionData) {
54
54
  try {
55
55
  let messageByteArray = new import_CommandSerializer.CommandSerializer().serialize(command, connectionData);
56
- if (!(messageByteArray instanceof Uint8Array) && !(messageByteArray instanceof Promise)) {
57
- throw new Error("Serialized message is neither Uint8Array nor Promise<Uint8Array>");
56
+ if (!(messageByteArray instanceof Uint8Array)) {
57
+ throw new Error("Serialized message is not Uint8Array");
58
58
  }
59
59
  let responseByteArray = void 0;
60
60
  if (!(0, import_Runtime.isNodejsRuntime)() && connectionData.connectionType === import_ConnectionType.ConnectionType.IN_MEMORY) {
61
- throw new Error("Nodejs Core Error: inMemory is only allowed in Nodejs runtime, not in browser");
61
+ throw new Error(
62
+ "Nodejs Core Error: inMemory is only allowed in Nodejs runtime, not in browser"
63
+ );
62
64
  }
63
65
  if (command.runtimeName === import_RuntimeName.RuntimeName.Nodejs && connectionData.connectionType === import_ConnectionType.ConnectionType.IN_MEMORY) {
64
66
  if (!_Receiver) {
@@ -68,13 +70,7 @@ class Interpreter {
68
70
  if (!_Receiver) {
69
71
  throw new Error("Nodejs Core Error: Receiver is undefined");
70
72
  }
71
- if (messageByteArray instanceof Promise) {
72
- responseByteArray = messageByteArray.then((resolvedMessage) => {
73
- return _Receiver.sendCommand(resolvedMessage);
74
- });
75
- } else if (messageByteArray instanceof Uint8Array) {
76
- responseByteArray = _Receiver.sendCommand(messageByteArray);
77
- }
73
+ responseByteArray = await _Receiver.sendCommand(messageByteArray);
78
74
  } else if (connectionData.connectionType === import_ConnectionType.ConnectionType.IN_MEMORY || connectionData.connectionType === import_ConnectionType.ConnectionType.TCP) {
79
75
  if (!_Transmitter) {
80
76
  const { Transmitter } = require("../transmitter/Transmitter.cjs");
@@ -83,32 +79,14 @@ class Interpreter {
83
79
  if (!_Transmitter) {
84
80
  throw new Error("Nodejs Core Error: Transmitter is undefined");
85
81
  }
86
- if (messageByteArray instanceof Uint8Array) {
87
- responseByteArray = _Transmitter.sendCommand(messageByteArray);
88
- } else {
89
- responseByteArray = messageByteArray.then((resolvedMessage) => {
90
- return _Transmitter.sendCommand(resolvedMessage);
91
- });
92
- }
82
+ responseByteArray = await _Transmitter.sendCommand(messageByteArray);
93
83
  } else if (connectionData.connectionType === import_ConnectionType.ConnectionType.WEB_SOCKET) {
94
- if (messageByteArray instanceof Uint8Array) {
95
- responseByteArray = _TransmitterWebsocket.sendCommand(messageByteArray, connectionData);
96
- } else {
97
- responseByteArray = messageByteArray.then((resolvedMessage) => {
98
- return _TransmitterWebsocket.sendCommand(resolvedMessage, connectionData);
99
- });
100
- }
84
+ responseByteArray = await _TransmitterWebsocket.sendCommand(messageByteArray, connectionData);
101
85
  }
102
86
  if (!responseByteArray) {
103
87
  throw new Error("No response received from Transmitter");
104
88
  }
105
- if (responseByteArray instanceof Promise) {
106
- return responseByteArray.then((resolvedResponse) => {
107
- return new import_CommandDeserializer.CommandDeserializer(resolvedResponse).deserialize();
108
- });
109
- } else {
110
- return new import_CommandDeserializer.CommandDeserializer(responseByteArray).deserialize();
111
- }
89
+ return new import_CommandDeserializer.CommandDeserializer(responseByteArray).deserialize();
112
90
  } catch (error) {
113
91
  throw error;
114
92
  }
@@ -30,21 +30,16 @@ var import_TypesHandler = require("../../utils/TypesHandler.cjs");
30
30
  class CommandSerializer {
31
31
  /**
32
32
  * Serializes the root command with connection data and optional runtime version.
33
- * @param {Promise<Command> | Command} rootCommand
33
+ * @param {Command} rootCommand
34
34
  * @param {IConnectionData} connectionData
35
35
  * @param {number} runtimeVersion
36
- * @returns {Promise<Uint8Array> | Uint8Array}
36
+ * @returns {Uint8Array}
37
37
  */
38
38
  serialize(rootCommand, connectionData, runtimeVersion = 0) {
39
39
  const buffers = [];
40
- if (rootCommand instanceof Promise) {
41
- return rootCommand.then((resolvedCommand) => {
42
- return this.serialize(resolvedCommand, connectionData, runtimeVersion);
43
- });
44
- }
45
40
  buffers.push(Uint8Array.of(rootCommand.runtimeName, runtimeVersion));
46
41
  if (connectionData) {
47
- buffers.push(connectionData.serializeConnectionData());
42
+ buffers.push(Uint8Array.from(connectionData.serializeConnectionData()));
48
43
  } else {
49
44
  buffers.push(Uint8Array.of(0, 0, 0, 0, 0, 0, 0));
50
45
  }