javonet-ruby-sdk 2.6.6 → 2.6.8

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 (248) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/javonet-ruby-sdk/Binaries/Clr/JavonetClrRuntime.dll +0 -0
  4. data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
  5. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
  6. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
  7. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.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/libJavonetRubyRuntimeNative.so +0 -0
  14. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
  15. data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
  16. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetActivationService.dylib +0 -0
  17. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetCppRuntimeNative.dylib +0 -0
  18. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetGoRuntimeNative.dylib +0 -0
  19. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetJvmRuntimeNative.dylib +0 -0
  20. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetNetcoreRuntimeNative.dylib +0 -0
  21. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetPythonRuntimeNative.dylib +0 -0
  22. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetRubyRuntimeNative.dylib +0 -0
  23. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetTcpClient.dylib +0 -0
  24. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libJavonetTcpTlsClient.dylib +0 -0
  25. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/libUtils.dylib +0 -0
  26. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/ARM64/version.txt +1 -1
  27. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
  28. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
  29. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
  30. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
  31. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
  32. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs2218RuntimeNative.dylib +0 -0
  33. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
  34. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
  35. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPhp848RuntimeNative.dylib +0 -0
  36. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPhpRuntimeNative.dylib +0 -0
  37. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
  38. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
  39. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
  40. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
  41. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
  42. data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
  43. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Configs.dll +0 -0
  44. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
  45. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
  46. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
  47. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
  48. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
  49. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPhpRuntimeNative.dll +0 -0
  50. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
  51. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
  52. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
  53. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
  54. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
  55. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/version.txt +0 -0
  56. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Configs.dll +0 -0
  57. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
  58. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
  59. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
  60. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
  61. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
  62. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
  63. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs2218RuntimeNative.dll +0 -0
  64. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
  65. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
  66. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPhp848RuntimeNative.dll +0 -0
  67. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPhpRuntimeNative.dll +0 -0
  68. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPython2RuntimeNative.dll +0 -0
  69. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
  70. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
  71. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
  72. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
  73. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
  74. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
  75. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Configs.dll +0 -0
  76. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
  77. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
  78. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
  79. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
  80. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
  81. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
  82. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPhpRuntimeNative.dll +0 -0
  83. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPython2RuntimeNative.dll +0 -0
  84. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
  85. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
  86. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
  87. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Utils.dll +0 -0
  88. data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
  89. data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
  90. data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Plugins.dll +0 -0
  91. data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
  92. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/Handler.cjs +2 -7
  93. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/LoadLibraryHandler.cjs +26 -12
  94. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/PassDelegateHandler.cjs +2 -2
  95. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/interpreter/Interpreter.cjs +27 -92
  96. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/CommandSerializer.cjs +3 -8
  97. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/receiver/Receiver.cjs +6 -6
  98. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/Activator.cjs +44 -0
  99. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/ActivatorDetails.cjs +13 -3
  100. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/ConfigRuntimeFactory.cjs +9 -0
  101. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/InvocationContext.cjs +52 -200
  102. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/Javonet.cjs +3 -11
  103. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/RuntimeContext.cjs +11 -57
  104. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/configuration/ConfigSourceResolver.cjs +43 -21
  105. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/ComplexTypeResolver.cjs +84 -45
  106. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/Handler.d.ts +2 -1
  107. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/PassDelegateHandler.d.ts +2 -2
  108. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/interpreter/Interpreter.d.ts +2 -9
  109. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/CommandSerializer.d.ts +3 -3
  110. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/receiver/Receiver.d.ts +4 -4
  111. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/Activator.d.ts +12 -0
  112. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/ActivatorDetails.d.ts +5 -3
  113. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/ConfigRuntimeFactory.d.ts +7 -0
  114. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/InvocationContext.d.ts +11 -34
  115. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/Javonet.d.ts +3 -1
  116. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/RuntimeContext.d.ts +4 -3
  117. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/configuration/ConfigSourceResolver.d.ts +21 -4
  118. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/ComplexTypeResolver.d.ts +21 -5
  119. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Primitives.d.ts +5 -0
  120. data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Primitives.cjs +201 -0
  121. 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
  122. 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
  123. 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
  124. 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
  125. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
  126. 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
  127. 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
  128. 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
  129. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
  130. 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
  131. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +96 -96
  132. data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/LoadLibraryHandler.pm +108 -11
  133. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
  134. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
  135. 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
  136. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
  137. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
  138. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +24 -24
  139. data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/LoadLibraryHandler.pm +108 -11
  140. data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/handler/LoadLibraryHandler.php +56 -21
  141. data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/interpreter/Interpreter.php +2 -2
  142. data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/protocol/CommandDeserializer.php +219 -106
  143. data/lib/javonet-ruby-sdk/Binaries/Php/javonet/core/protocol/CommandSerializer.php +55 -13
  144. data/lib/javonet-ruby-sdk/Binaries/Php/javonet/utils/Command.php +27 -9
  145. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
  146. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
  147. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
  148. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetTypeHandler.py +2 -2
  149. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/LoadLibraryHandler.py +54 -14
  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__/ResolveInstanceHandler.cpython-312.pyc +0 -0
  198. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/RetrieveArrayHandler.cpython-312.pyc +0 -0
  199. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
  200. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
  201. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
  202. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
  203. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
  204. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
  205. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
  206. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  207. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
  208. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
  209. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
  210. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
  211. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
  212. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
  213. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
  214. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
  215. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  216. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
  217. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
  218. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/LazyModuleLoader.py +8 -11
  219. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
  220. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
  221. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
  222. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
  223. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/LazyModuleLoader.cpython-312.pyc +0 -0
  224. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
  225. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
  226. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
  227. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
  228. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/TypesHandler.cpython-312.pyc +0 -0
  229. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/UtilsConst.cpython-312.pyc +0 -0
  230. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  231. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
  232. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
  233. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
  234. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/ExceptionSerializer.py +1 -1
  235. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
  236. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionThrower.cpython-312.pyc +0 -0
  237. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/JavonetException.cpython-312.pyc +0 -0
  238. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
  239. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/messageHelper/__pycache__/MessageHelper.cpython-312.pyc +0 -0
  240. data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/messageHelper/__pycache__/__init__.cpython-312.pyc +0 -0
  241. data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
  242. data/lib/javonet-ruby-sdk/core/handler/load_library_handler.rb +22 -9
  243. data/lib/javonet-ruby-sdk/core/interpreter/interpreter.rb +1 -1
  244. data/lib/javonet-ruby-sdk/core/receiver/receiver_new.rb +3 -3
  245. data/lib/javonet-ruby-sdk/sdk/config_runtime_factory.rb +8 -0
  246. data/lib/javonet-ruby-sdk/utils/exceptions/exception_serializer.rb +0 -1
  247. data/lib/javonet-ruby-sdk/utils/runtime_logger.rb +3 -0
  248. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc4db9be4d5355239f2f3075f5e4b69df7138dd6ba981a041158c112f7de3108
4
- data.tar.gz: 9dd14af19a2cc86ff283ab90354867737d4bd00dc9d026217a2b877a289b5cfd
3
+ metadata.gz: 64594a08282eb8db907b43ea836c9ebf444e2fe9c9aaaf436294952c0977de40
4
+ data.tar.gz: d9bbd4889a2363b1a87d132884d10c51838ecf4387e661f4e87751fd3e0bcc96
5
5
  SHA512:
6
- metadata.gz: 8b94c624e8e3ae5b186ae61b993993ec8c578492ee98a6b63bb59a6ecf4e2682d55e439796f3e9fc2f66094c15faf306cc7d3cbe128db3baf0c095c739ae9548
7
- data.tar.gz: b7d342b393b165dc3f31cf13c25a5288dc52c8c28d572e3f6185da8e96b30b20d8c63e0e41526bcae6bedb6baa902a23ce14ee68b61b31fa10766d54c1090a0e
6
+ metadata.gz: c4ca5e21b95637ee70e302546bb72b9981cf56f2f622640fa714e1706d05c97c7c7552474cdc927beeb5d9709d6b462b36d7ffb601222467be93c988050114a7
7
+ data.tar.gz: 0b840b8e096f32d1a11c86ad7afd9dc0ce23f0fc3eb3161deb3eb1efb2f431f360756d032d6ae10d435f6d950b503ac8843e6cb3c43eb39cadd438c31945c959
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.6.8
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.6.8
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.6.8
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.6.8
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.6.8
@@ -1 +1 @@
1
- '2.6.6'
1
+ '2.6.8'
@@ -1 +1 @@
1
- '2.6.6'
1
+ '2.6.8'
@@ -142,18 +142,13 @@ class Handler {
142
142
  }
143
143
  /**
144
144
  * @param {Command} command
145
+ * @returns {Promise<Command> | Command}
145
146
  */
146
147
  handleCommand(command) {
147
148
  try {
148
149
  if (command.commandType === import_CommandType.CommandType.RetrieveArray) {
149
150
  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
- }
151
+ return import_Command.Command.createArrayResponse(responseArray, command.runtimeName);
157
152
  }
158
153
  const response = handlers[command.commandType].handleCommand(command);
159
154
  return this.parseCommand(response, command.runtimeName);
@@ -23,10 +23,10 @@ __export(LoadLibraryHandler_exports, {
23
23
  module.exports = __toCommonJS(LoadLibraryHandler_exports);
24
24
  var import_Runtime = require("../../utils/Runtime.cjs");
25
25
  var import_AbstractHandler = require("./AbstractHandler.cjs");
26
- var import_fs = require("fs");
27
- var import_path = require("path");
28
26
  const import_meta = {};
29
- const dynamicImport = (0, import_Runtime.getRequire)(import_meta.url);
27
+ let _existsSync = null;
28
+ let _resolve = null;
29
+ const requireDynamic = (0, import_Runtime.getRequire)(import_meta.url);
30
30
  class LoadLibraryHandler extends import_AbstractHandler.AbstractHandler {
31
31
  requiredParametersCount = 1;
32
32
  /** @type {string[]} */
@@ -41,24 +41,38 @@ 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
  }
49
- const absolutePath = (0, import_path.resolve)(lib);
50
- if (!(0, import_fs.existsSync)(lib) && !(0, import_fs.existsSync)(absolutePath)) {
49
+ if (!_existsSync) {
50
+ const { existsSync } = requireDynamic("fs");
51
+ _existsSync = existsSync;
52
+ }
53
+ if (!_resolve) {
54
+ const { resolve } = requireDynamic("path");
55
+ _resolve = resolve;
56
+ }
57
+ const absolutePath = _resolve ? _resolve(lib) : lib;
58
+ const candidatePaths = [lib, absolutePath];
59
+ const existingPath = candidatePaths.find((p) => _existsSync && _existsSync(p));
60
+ if (!existingPath) {
51
61
  throw new Error(`Cannot load module: Library not found: ${lib}`);
52
62
  }
53
- 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(/[/\\]/);
54
68
  let libraryName = pathArray.length > 1 ? pathArray[pathArray.length - 1] : pathArray[0];
55
- libraryName = libraryName.replace(".js", "");
69
+ libraryName = libraryName.replace(/\.js$/i, "");
56
70
  let moduleExports;
57
71
  try {
58
- moduleExports = dynamicImport(lib);
59
- LoadLibraryHandler.loadedLibraries.push(lib);
72
+ moduleExports = requireDynamic(normalizedPath);
73
+ LoadLibraryHandler.loadedLibraries.push(normalizedPath);
60
74
  } catch (error) {
61
- throw Error("Cannot load module: " + lib + "\n" + error);
75
+ throw new Error("Cannot load module: " + normalizedPath + "\n" + error);
62
76
  }
63
77
  global[libraryName] = moduleExports;
64
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
  /**
@@ -32,10 +32,7 @@ var import_Handler = require("../handler/Handler.cjs");
32
32
  const import_meta = {};
33
33
  let _Receiver;
34
34
  let _Transmitter;
35
- let _TransmitterWebsocket = null;
36
- if (!_TransmitterWebsocket) {
37
- _TransmitterWebsocket = (0, import_Runtime.isNodejsRuntime)() ? import_TransmitterWebsocket.TransmitterWebsocket : import_TransmitterWebsocketBrowser.TransmitterWebsocketBrowser;
38
- }
35
+ let _TransmitterWebsocket = (0, import_Runtime.isNodejsRuntime)() ? import_TransmitterWebsocket.TransmitterWebsocket : import_TransmitterWebsocketBrowser.TransmitterWebsocketBrowser;
39
36
  const requireDynamic = (0, import_Runtime.getRequire)(import_meta.url);
40
37
  class Interpreter {
41
38
  /** @type {Handler | null} */
@@ -51,40 +48,40 @@ class Interpreter {
51
48
  *
52
49
  * @param {Command} command
53
50
  * @param {IConnectionData} connectionData
54
- * @returns
51
+ * @returns {Promise<Command>}
55
52
  */
56
- async executeAsync(command, connectionData) {
53
+ async execute(command, connectionData) {
57
54
  try {
58
55
  let messageByteArray = new import_CommandSerializer.CommandSerializer().serialize(command, connectionData);
56
+ if (!(messageByteArray instanceof Uint8Array)) {
57
+ throw new Error("Serialized message is not Uint8Array");
58
+ }
59
59
  let responseByteArray = void 0;
60
- if (connectionData.connectionType === import_ConnectionType.ConnectionType.WEB_SOCKET) {
61
- const _response = await _TransmitterWebsocket?.sendCommand(
62
- await messageByteArray,
63
- connectionData
60
+ if (!(0, import_Runtime.isNodejsRuntime)() && connectionData.connectionType === import_ConnectionType.ConnectionType.IN_MEMORY) {
61
+ throw new Error(
62
+ "Nodejs Core Error: inMemory is only allowed in Nodejs runtime, not in browser"
64
63
  );
65
- if (_response) {
66
- const command2 = new import_CommandDeserializer.CommandDeserializer(_response).deserialize();
67
- return command2;
68
- } else {
69
- throw new Error("Response not received from TransmitterWebsocket");
64
+ }
65
+ if (command.runtimeName === import_RuntimeName.RuntimeName.Nodejs && connectionData.connectionType === import_ConnectionType.ConnectionType.IN_MEMORY) {
66
+ if (!_Receiver) {
67
+ const { Receiver } = require("../receiver/Receiver.cjs");
68
+ _Receiver = Receiver;
70
69
  }
71
- } else {
72
- if (!(0, import_Runtime.isNodejsRuntime)()) {
73
- throw new Error("InMemory is only allowed in Nodejs runtime");
70
+ if (!_Receiver) {
71
+ throw new Error("Nodejs Core Error: Receiver is undefined");
74
72
  }
75
- if (command.runtimeName === import_RuntimeName.RuntimeName.Nodejs) {
76
- if (!_Receiver) {
77
- const { Receiver } = require("../receiver/Receiver.cjs");
78
- _Receiver = Receiver;
79
- }
80
- responseByteArray = await _Receiver?.sendCommand(await messageByteArray);
81
- } else {
82
- if (!_Transmitter) {
83
- const { Transmitter } = require("../transmitter/Transmitter.cjs");
84
- _Transmitter = Transmitter;
85
- }
86
- responseByteArray = await _Transmitter?.sendCommand(await messageByteArray);
73
+ responseByteArray = await _Receiver.sendCommand(messageByteArray);
74
+ } else if (connectionData.connectionType === import_ConnectionType.ConnectionType.IN_MEMORY || connectionData.connectionType === import_ConnectionType.ConnectionType.TCP) {
75
+ if (!_Transmitter) {
76
+ const { Transmitter } = require("../transmitter/Transmitter.cjs");
77
+ _Transmitter = Transmitter;
87
78
  }
79
+ if (!_Transmitter) {
80
+ throw new Error("Nodejs Core Error: Transmitter is undefined");
81
+ }
82
+ responseByteArray = await _Transmitter.sendCommand(messageByteArray);
83
+ } else if (connectionData.connectionType === import_ConnectionType.ConnectionType.WEB_SOCKET) {
84
+ responseByteArray = await _TransmitterWebsocket.sendCommand(messageByteArray, connectionData);
88
85
  }
89
86
  if (!responseByteArray) {
90
87
  throw new Error("No response received from Transmitter");
@@ -94,68 +91,6 @@ class Interpreter {
94
91
  throw error;
95
92
  }
96
93
  }
97
- /**
98
- *
99
- * @param {Command} command
100
- * @param {IConnectionData} connectionData
101
- * @returns {Command | Promise<Command>}
102
- */
103
- execute(command, connectionData) {
104
- try {
105
- let messageByteArray = new import_CommandSerializer.CommandSerializer().serialize(command, connectionData);
106
- let responseByteArray = void 0;
107
- if (connectionData.connectionType === import_ConnectionType.ConnectionType.WEB_SOCKET) {
108
- throw new Error("Not supported");
109
- } else {
110
- if (!(0, import_Runtime.isNodejsRuntime)()) {
111
- throw new Error("InMemory is only allowed in Nodejs runtime");
112
- }
113
- if (command.runtimeName === import_RuntimeName.RuntimeName.Nodejs && connectionData.connectionType === import_ConnectionType.ConnectionType.IN_MEMORY) {
114
- if (!_Receiver) {
115
- const { Receiver } = require("../receiver/Receiver.cjs");
116
- _Receiver = Receiver;
117
- }
118
- if (!_Receiver) {
119
- throw new Error("Receiver is undefined");
120
- }
121
- if (messageByteArray instanceof Uint8Array) {
122
- responseByteArray = _Receiver.sendCommand(messageByteArray);
123
- } else {
124
- responseByteArray = messageByteArray.then((resolvedMessage) => {
125
- return _Receiver.sendCommand(resolvedMessage);
126
- });
127
- }
128
- } else {
129
- if (!_Transmitter) {
130
- const { Transmitter } = require("../transmitter/Transmitter.cjs");
131
- _Transmitter = Transmitter;
132
- }
133
- if (!_Transmitter) {
134
- throw new Error("Transmitter is undefined");
135
- }
136
- if (messageByteArray instanceof Uint8Array) {
137
- responseByteArray = _Transmitter.sendCommand(messageByteArray);
138
- } else {
139
- responseByteArray = messageByteArray.then((resolvedMessage) => {
140
- return _Transmitter.sendCommand(resolvedMessage);
141
- });
142
- }
143
- }
144
- if (!responseByteArray) {
145
- throw new Error("No response received from Transmitter");
146
- }
147
- if (responseByteArray instanceof Promise) {
148
- return responseByteArray.then((resolvedResponse) => {
149
- return new import_CommandDeserializer.CommandDeserializer(resolvedResponse).deserialize();
150
- });
151
- } else {
152
- return new import_CommandDeserializer.CommandDeserializer(responseByteArray).deserialize();
153
- }
154
- }
155
- } catch (error) {
156
- throw error;
157
- }
158
- }
159
94
  /**
160
95
  *
161
96
  * @param {Uint8Array} messageByteArray
@@ -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
  }
@@ -39,11 +39,11 @@ class Receiver {
39
39
  }
40
40
  /**
41
41
  * @param {Uint8Array} messageByteArray
42
- * @returns {Promise<Uint8Array> | Uint8Array}
42
+ * @returns {Promise<Uint8Array>}
43
43
  */
44
- static sendCommand(messageByteArray) {
44
+ static async sendCommand(messageByteArray) {
45
45
  try {
46
- let command = new import_Interpreter.Interpreter().process(messageByteArray);
46
+ let command = await new import_Interpreter.Interpreter().process(messageByteArray);
47
47
  return new import_CommandSerializer.CommandSerializer().serialize(command, this.connectionData);
48
48
  } catch (error) {
49
49
  const exceptionCommand = import_ExceptionSerializer.ExceptionSerializer.serializeException(
@@ -55,13 +55,13 @@ class Receiver {
55
55
  }
56
56
  /**
57
57
  * @param {Uint8Array} messageByteArray
58
- * @returns {Promise<Uint8Array> | Uint8Array}
58
+ * @returns {Promise<Uint8Array>}
59
59
  */
60
- static heartBeat(messageByteArray) {
60
+ static async heartBeat(messageByteArray) {
61
61
  let response = new Uint8Array(2);
62
62
  response[0] = messageByteArray[11];
63
63
  response[1] = messageByteArray[12] - 2;
64
- return response;
64
+ return Promise.resolve(response);
65
65
  }
66
66
  }
67
67
  // Annotate the CommonJS export names for ESM import in node:
@@ -0,0 +1,44 @@
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 Activator_exports = {};
20
+ __export(Activator_exports, {
21
+ Activator: () => Activator
22
+ });
23
+ module.exports = __toCommonJS(Activator_exports);
24
+ class Activator {
25
+ /**
26
+ * Create a new instance of a type
27
+ * @param {Function} Type - The constructor function/class
28
+ * @param {any[] | any} args - The arguments to pass to the constructor
29
+ * @returns {any} The new instance
30
+ */
31
+ static createInstance(Type, args) {
32
+ if (args == null) {
33
+ args = [];
34
+ }
35
+ if (!Array.isArray(args)) {
36
+ args = [args];
37
+ }
38
+ return new Type(...args);
39
+ }
40
+ }
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ Activator
44
+ });