javonet-nodejs-sdk 2.5.7 → 2.5.9

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 (609) hide show
  1. package/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
  2. package/Binaries/Clr/JavonetClrRuntime.dll +0 -0
  3. package/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
  4. package/Binaries/Native/Linux/ARM64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
  5. package/Binaries/Native/Linux/ARM64/NetVersionLatest.runtimeconfig.json +2 -2
  6. package/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
  7. package/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
  8. package/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
  9. package/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
  10. package/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
  11. package/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
  12. package/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
  13. package/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
  14. package/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
  15. package/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
  16. package/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
  17. package/Binaries/Native/Linux/ARM64/version.txt +1 -1
  18. package/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +30 -18
  19. package/Binaries/Native/Linux/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
  20. package/Binaries/Native/Linux/X64/NetVersionLatest.runtimeconfig.json +2 -2
  21. package/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
  22. package/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
  23. package/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
  24. package/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
  25. package/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
  26. package/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
  27. package/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
  28. package/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
  29. package/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
  30. package/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
  31. package/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
  32. package/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
  33. package/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
  34. package/Binaries/Native/Linux/X64/libUtils.so +0 -0
  35. package/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
  36. package/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
  37. package/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
  38. package/Binaries/Native/Linux/X64/version.txt +1 -1
  39. package/Binaries/Native/MacOs/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
  40. package/Binaries/Native/MacOs/X64/NetVersionLatest.runtimeconfig.json +2 -2
  41. package/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
  42. package/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
  43. package/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
  44. package/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
  45. package/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
  46. package/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
  47. package/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
  48. package/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
  49. package/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
  50. package/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
  51. package/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
  52. package/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
  53. package/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
  54. package/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
  55. package/Binaries/Native/MacOs/X64/libpython3.11.dylib +0 -0
  56. package/Binaries/Native/MacOs/X64/version.txt +1 -1
  57. package/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
  58. package/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
  59. package/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
  60. package/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
  61. package/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
  62. package/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
  63. package/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
  64. package/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
  65. package/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
  66. package/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
  67. package/Binaries/Native/Windows/ARM64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
  68. package/Binaries/Native/Windows/ARM64/NetVersionLatest.runtimeconfig.json +2 -2
  69. package/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
  70. package/Binaries/Native/Windows/ARM64/version.txt +0 -0
  71. package/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
  72. package/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
  73. package/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
  74. package/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
  75. package/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
  76. package/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
  77. package/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
  78. package/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
  79. package/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
  80. package/Binaries/Native/Windows/X64/JavonetPerlRuntimeNativeAuxiliary.dll +0 -0
  81. package/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
  82. package/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
  83. package/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
  84. package/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
  85. package/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
  86. package/Binaries/Native/Windows/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
  87. package/Binaries/Native/Windows/X64/NetVersionLatest.runtimeconfig.json +2 -2
  88. package/Binaries/Native/Windows/X64/Utils.dll +0 -0
  89. package/Binaries/Native/Windows/X64/version.txt +1 -1
  90. package/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
  91. package/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
  92. package/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
  93. package/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
  94. package/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
  95. package/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
  96. package/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
  97. package/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
  98. package/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
  99. package/Binaries/Native/Windows/X86/NetVersion90LatestPatch.runtimeconfig.json +10 -0
  100. package/Binaries/Native/Windows/X86/NetVersionLatest.runtimeconfig.json +2 -2
  101. package/Binaries/Native/Windows/X86/Utils.dll +0 -0
  102. package/Binaries/Native/Windows/X86/version.txt +1 -1
  103. package/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
  104. package/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
  105. package/Binaries/Nodejs/index.js +64 -0
  106. package/Binaries/Nodejs/{core → lib/core}/generator/handler/AbstractGeneratorHandler.js +0 -1
  107. package/Binaries/Nodejs/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +27 -0
  108. package/Binaries/Nodejs/lib/core/generator/handler/GeneratorHandler.js +38 -0
  109. package/Binaries/Nodejs/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +26 -0
  110. package/Binaries/Nodejs/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +24 -0
  111. package/Binaries/Nodejs/lib/core/generator/handler/GetTypeGeneratorHandler.js +39 -0
  112. package/Binaries/Nodejs/lib/core/generator/handler/Handlers.js +58 -0
  113. package/Binaries/Nodejs/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +33 -0
  114. package/Binaries/Nodejs/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
  115. package/Binaries/Nodejs/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +35 -0
  116. package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +15 -0
  117. package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassInstanceHandler.js +4 -5
  118. package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassNameHandler.js +10 -12
  119. package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedMethodNameHandler.js +9 -12
  120. package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +9 -0
  121. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedBodyHandler.js +18 -0
  122. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +29 -0
  123. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +21 -0
  124. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +31 -0
  125. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +21 -0
  126. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +33 -0
  127. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
  128. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +39 -0
  129. package/Binaries/Nodejs/lib/core/generator/internal/CommonGenerator.js +39 -0
  130. package/Binaries/Nodejs/lib/core/generator/internal/NodejsStringBuilder.js +17 -0
  131. package/Binaries/Nodejs/{core → lib/core}/generator/internal/SharedHandlerType.js +2 -2
  132. package/Binaries/Nodejs/{core → lib/core}/generator/utils/StringUtils.js +2 -2
  133. package/Binaries/Nodejs/{core → lib/core}/handler/AbstractHandler.js +12 -12
  134. package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetItemHandler.js +3 -4
  135. package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetRankHandler.js +5 -7
  136. package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetSizeHandler.js +3 -4
  137. package/Binaries/Nodejs/{core → lib/core}/handler/ArrayHandler.js +2 -3
  138. package/Binaries/Nodejs/{core → lib/core}/handler/ArraySetItemHandler.js +4 -5
  139. package/Binaries/Nodejs/{core → lib/core}/handler/CastingHandler.js +3 -3
  140. package/Binaries/Nodejs/lib/core/handler/CreateClassInstanceHandler.js +36 -0
  141. package/Binaries/Nodejs/{core → lib/core}/handler/DestructReferenceHandler.js +3 -4
  142. package/Binaries/Nodejs/{core → lib/core}/handler/EnableNamespaceHandler.js +8 -11
  143. package/Binaries/Nodejs/{core → lib/core}/handler/EnableTypeHandler.js +8 -10
  144. package/Binaries/Nodejs/lib/core/handler/GetGlobalStaticFieldHandler.js +37 -0
  145. package/Binaries/Nodejs/lib/core/handler/GetInstanceFieldHandler.js +35 -0
  146. package/Binaries/Nodejs/lib/core/handler/GetStaticFieldHandler.js +36 -0
  147. package/Binaries/Nodejs/lib/core/handler/GetTypeHandler.js +63 -0
  148. package/Binaries/Nodejs/{core → lib/core}/handler/Handler.js +12 -11
  149. package/Binaries/Nodejs/lib/core/handler/InvokeGlobalMethodHandler.js +43 -0
  150. package/Binaries/Nodejs/lib/core/handler/InvokeInstanceMethodHandler.js +38 -0
  151. package/Binaries/Nodejs/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
  152. package/Binaries/Nodejs/lib/core/handler/InvokeStaticMethodHandler.js +38 -0
  153. package/Binaries/Nodejs/{core → lib/core}/handler/LoadLibraryHandler.js +9 -2
  154. package/Binaries/Nodejs/lib/core/handler/ResolveReferenceHandler.js +13 -0
  155. package/Binaries/Nodejs/lib/core/handler/SetGlobalStaticFieldHandler.js +38 -0
  156. package/Binaries/Nodejs/lib/core/handler/SetInstanceFieldHandler.js +35 -0
  157. package/Binaries/Nodejs/lib/core/handler/SetStaticFieldHandler.js +33 -0
  158. package/Binaries/Nodejs/{core → lib/core}/handler/ValueHandler.js +3 -5
  159. package/Binaries/Nodejs/lib/core/interpreter/Interpreter.js +142 -0
  160. package/Binaries/Nodejs/{core → lib/core}/namespaceCache/NamespaceCache.js +12 -12
  161. package/Binaries/Nodejs/{core → lib/core}/protocol/CommandDeserializer.js +43 -48
  162. package/Binaries/Nodejs/{core → lib/core}/protocol/CommandSerializer.js +4 -5
  163. package/Binaries/Nodejs/{core → lib/core}/protocol/TypeDeserializer.js +17 -15
  164. package/Binaries/Nodejs/{core → lib/core}/protocol/TypeSerializer.js +6 -7
  165. package/Binaries/Nodejs/lib/core/receiver/Receiver.js +32 -0
  166. package/Binaries/Nodejs/{core → lib/core}/receiver/ReceiverNative.js +3 -3
  167. package/Binaries/Nodejs/{core → lib/core}/referenceCache/ReferencesCache.js +4 -4
  168. package/Binaries/Nodejs/{core → lib/core}/transmitter/Transmitter.js +2 -3
  169. package/Binaries/Nodejs/lib/core/transmitter/TransmitterWebsocket.js +33 -0
  170. package/Binaries/Nodejs/lib/core/transmitter/TransmitterWrapper.js +34 -0
  171. package/Binaries/Nodejs/{core → lib/core}/typeCache/TypeCache.js +12 -12
  172. package/Binaries/Nodejs/lib/core/webSocketClient/WebSocketClient.js +131 -0
  173. package/Binaries/Nodejs/lib/declarations.d.ts +64 -0
  174. package/Binaries/Nodejs/lib/sdk/ConfigRuntimeFactory.js +145 -0
  175. package/{lib → Binaries/Nodejs/lib}/sdk/InvocationContext.js +454 -522
  176. package/Binaries/Nodejs/lib/sdk/Javonet.js +89 -0
  177. package/Binaries/Nodejs/lib/sdk/RuntimeContext.js +266 -0
  178. package/Binaries/Nodejs/lib/sdk/RuntimeFactory.js +78 -0
  179. package/Binaries/Nodejs/lib/sdk/tools/JsonFileResolver.js +101 -0
  180. package/Binaries/Nodejs/lib/sdk/tools/SdkExceptionHelper.js +79 -0
  181. package/Binaries/Nodejs/lib/utils/Command.js +69 -0
  182. package/Binaries/Nodejs/{utils → lib/utils}/CommandType.js +6 -2
  183. package/Binaries/Nodejs/lib/utils/ConnectionType.js +8 -0
  184. package/Binaries/Nodejs/{utils → lib/utils}/ExceptionType.js +6 -3
  185. package/Binaries/Nodejs/lib/utils/RuntimeLogger.js +30 -0
  186. package/Binaries/Nodejs/{utils → lib/utils}/RuntimeName.js +6 -3
  187. package/Binaries/Nodejs/lib/utils/RuntimeNameHandler.js +34 -0
  188. package/Binaries/Nodejs/lib/utils/StringEncodingMode.js +9 -0
  189. package/Binaries/Nodejs/{utils → lib/utils}/Type.js +5 -2
  190. package/Binaries/Nodejs/{utils → lib/utils}/connectionData/IConnectionData.js +4 -6
  191. package/Binaries/Nodejs/lib/utils/connectionData/InMemoryConnectionData.js +35 -0
  192. package/Binaries/Nodejs/lib/utils/connectionData/TcpConnectionData.js +77 -0
  193. package/Binaries/Nodejs/lib/utils/connectionData/WsConnectionData.js +50 -0
  194. package/Binaries/Nodejs/{utils → lib/utils}/exception/ExceptionSerializer.js +24 -31
  195. package/{lib → Binaries/Nodejs/lib}/utils/exception/ExceptionThrower.js +95 -89
  196. package/Binaries/Nodejs/lib/utils/uuid/REGEX.js +2 -0
  197. package/Binaries/Nodejs/lib/utils/uuid/rng.js +12 -0
  198. package/Binaries/Nodejs/lib/utils/uuid/stringify.js +51 -0
  199. package/Binaries/Nodejs/lib/utils/uuid/v4.js +27 -0
  200. package/Binaries/Nodejs/lib/utils/uuid/validate.js +6 -0
  201. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Attribute-Util-1.07/install.json +1 -1
  202. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Capture-Tiny-0.48/install.json +1 -1
  203. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-0.25/install.json +1 -1
  204. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-XS-0.10/install.json +1 -1
  205. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Clone-0.47/install.json +1 -1
  206. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-Cmp-0.010/install.json +1 -1
  207. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-OptList-0.114/install.json +1 -1
  208. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-UUID-1.227/install.json +1 -1
  209. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-GlobalDestruction-0.14/install.json +1 -1
  210. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-OverloadInfo-0.007/install.json +1 -1
  211. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-StackTrace-2.05/install.json +1 -1
  212. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Dist-CheckConflicts-0.11/install.json +1 -1
  213. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Eval-Closure-0.14/install.json +1 -1
  214. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Config-0.010/install.json +1 -1
  215. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Helpers-0.028/install.json +1 -1
  216. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-InstallPaths-0.014/install.json +1 -1
  217. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-CheckLib-0.31/install.json +1 -1
  218. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-Platypus-2.09/install.json +1 -1
  219. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/File-Which-1.27/install.json +1 -1
  220. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/IPC-System-Simple-1.30/install.json +1 -1
  221. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/MRO-Compat-0.15/install.json +1 -1
  222. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-0.4234/install.json +1 -1
  223. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-Tiny-0.051/install.json +1 -1
  224. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Implementation-0.09/install.json +1 -1
  225. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-0.016/install.json +1 -1
  226. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-Conflicts-0.003/install.json +1 -1
  227. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Moose-2.2207/install.json +1 -1
  228. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Nice-Try-v1.3.15/install.json +1 -1
  229. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-1.279/install.json +1 -1
  230. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-XS-0.910/install.json +1 -1
  231. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-DeprecationManager-0.18/install.json +1 -1
  232. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-0.40/install.json +1 -1
  233. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-XS-0.30/install.json +1 -1
  234. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Params-Util-1.102/install.json +1 -1
  235. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Path-Tiny-0.146/install.json +1 -1
  236. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-List-Utils-1.68/install.json +1 -1
  237. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
  238. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scope-Guard-0.21/install.json +1 -1
  239. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-0.991/install.json +1 -1
  240. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-Progressive-0.001013/install.json +1 -1
  241. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Install-0.929/install.json +1 -1
  242. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Task-Weaken-1.06/install.json +1 -1
  243. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Fatal-0.017/install.json +1 -1
  244. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Try-Tiny-0.32/install.json +1 -1
  245. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Want-0.29/install.json +1 -1
  246. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/aliased-0.34/install.json +1 -1
  247. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/autobox-v3.0.2/install.json +1 -1
  248. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
  249. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
  250. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
  251. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
  252. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
  253. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
  254. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
  255. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
  256. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
  257. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +90 -90
  258. package/Binaries/Perl/Linux/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
  259. package/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +10 -0
  260. package/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
  261. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Attribute-Util-1.07/install.json +1 -1
  262. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-Cmp-0.010/install.json +1 -1
  263. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-UUID-1.227/install.json +1 -1
  264. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Nice-Try-v1.3.15/install.json +1 -1
  265. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-1.279/install.json +1 -1
  266. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-XS-0.910/install.json +1 -1
  267. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
  268. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Test-Fatal-0.017/install.json +1 -1
  269. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Want-0.29/install.json +1 -1
  270. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/autobox-v3.0.2/install.json +1 -1
  271. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
  272. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
  273. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
  274. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
  275. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
  276. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +19 -19
  277. package/Binaries/Perl/Windows/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
  278. package/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +10 -0
  279. package/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
  280. package/Binaries/Python/javonet/core/handler/GetInstanceFieldHandler.py +1 -1
  281. package/Binaries/Python/javonet/core/handler/GetTypeHandler.py +7 -4
  282. package/Binaries/Python/javonet/core/receiver/Receiver.py +3 -4
  283. package/Binaries/Python/javonet/utils/RuntimeLogger.py +1 -1
  284. package/Binaries/Ruby/Linux/X64/core/handler/get_instance_field_handler.rb +3 -3
  285. package/Binaries/Ruby/Linux/X64/core/handler/get_static_field_handler.rb +2 -2
  286. package/Binaries/Ruby/Linux/X64/core/handler/get_type_handler.rb +29 -18
  287. package/Binaries/Ruby/Linux/X64/core/handler/load_library_handler.rb +8 -0
  288. package/Binaries/Ruby/Linux/X64/core/handler/set_instance_field_handler.rb +7 -3
  289. package/Binaries/Ruby/Linux/X64/core/handler/set_static_field_handler.rb +2 -2
  290. package/Binaries/Ruby/MacOs/X64/core/handler/get_instance_field_handler.rb +3 -3
  291. package/Binaries/Ruby/MacOs/X64/core/handler/get_static_field_handler.rb +2 -2
  292. package/Binaries/Ruby/MacOs/X64/core/handler/get_type_handler.rb +29 -18
  293. package/Binaries/Ruby/MacOs/X64/core/handler/load_library_handler.rb +8 -0
  294. package/Binaries/Ruby/MacOs/X64/core/handler/set_instance_field_handler.rb +7 -3
  295. package/Binaries/Ruby/MacOs/X64/core/handler/set_static_field_handler.rb +2 -2
  296. package/Binaries/Ruby/Windows/X64/core/handler/get_instance_field_handler.rb +3 -3
  297. package/Binaries/Ruby/Windows/X64/core/handler/get_static_field_handler.rb +2 -2
  298. package/Binaries/Ruby/Windows/X64/core/handler/get_type_handler.rb +29 -18
  299. package/Binaries/Ruby/Windows/X64/core/handler/load_library_handler.rb +8 -0
  300. package/Binaries/Ruby/Windows/X64/core/handler/set_instance_field_handler.rb +7 -3
  301. package/Binaries/Ruby/Windows/X64/core/handler/set_static_field_handler.rb +2 -2
  302. package/Binaries/version.txt +1 -1
  303. package/README.md +1 -1
  304. package/dist/Javonet.d.ts +4368 -0
  305. package/dist/index.js +64 -0
  306. package/dist/lib/core/generator/handler/AbstractGeneratorHandler.js +11 -0
  307. package/dist/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +27 -0
  308. package/dist/lib/core/generator/handler/GeneratorHandler.js +38 -0
  309. package/dist/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +26 -0
  310. package/dist/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +24 -0
  311. package/dist/lib/core/generator/handler/GetTypeGeneratorHandler.js +39 -0
  312. package/dist/lib/core/generator/handler/Handlers.js +58 -0
  313. package/dist/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +33 -0
  314. package/dist/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
  315. package/dist/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +35 -0
  316. package/dist/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +15 -0
  317. package/dist/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +12 -0
  318. package/dist/lib/core/generator/handler/shared/SharedClassNameHandler.js +44 -0
  319. package/dist/lib/core/generator/handler/shared/SharedMethodNameHandler.js +42 -0
  320. package/dist/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +9 -0
  321. package/dist/lib/core/generator/handler/shared/body/SharedBodyHandler.js +18 -0
  322. package/dist/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +29 -0
  323. package/dist/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +21 -0
  324. package/dist/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +31 -0
  325. package/dist/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +21 -0
  326. package/dist/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +33 -0
  327. package/dist/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
  328. package/dist/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +39 -0
  329. package/dist/lib/core/generator/internal/CommonGenerator.js +39 -0
  330. package/dist/lib/core/generator/internal/NodejsStringBuilder.js +17 -0
  331. package/dist/lib/core/generator/internal/SharedHandlerType.js +10 -0
  332. package/dist/lib/core/generator/utils/StringUtils.js +7 -0
  333. package/dist/lib/core/handler/AbstractHandler.js +41 -0
  334. package/dist/lib/core/handler/ArrayGetItemHandler.js +38 -0
  335. package/dist/lib/core/handler/ArrayGetRankHandler.js +28 -0
  336. package/dist/lib/core/handler/ArrayGetSizeHandler.js +29 -0
  337. package/dist/lib/core/handler/ArrayHandler.js +18 -0
  338. package/dist/lib/core/handler/ArraySetItemHandler.js +43 -0
  339. package/dist/lib/core/handler/CastingHandler.js +10 -0
  340. package/dist/lib/core/handler/CreateClassInstanceHandler.js +36 -0
  341. package/dist/lib/core/handler/DestructReferenceHandler.js +19 -0
  342. package/dist/lib/core/handler/EnableNamespaceHandler.js +34 -0
  343. package/dist/lib/core/handler/EnableTypeHandler.js +35 -0
  344. package/dist/lib/core/handler/GetGlobalStaticFieldHandler.js +37 -0
  345. package/dist/lib/core/handler/GetInstanceFieldHandler.js +35 -0
  346. package/dist/lib/core/handler/GetStaticFieldHandler.js +36 -0
  347. package/dist/lib/core/handler/GetTypeHandler.js +63 -0
  348. package/dist/lib/core/handler/Handler.js +91 -0
  349. package/dist/lib/core/handler/InvokeGlobalMethodHandler.js +43 -0
  350. package/dist/lib/core/handler/InvokeInstanceMethodHandler.js +38 -0
  351. package/dist/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
  352. package/dist/lib/core/handler/InvokeStaticMethodHandler.js +38 -0
  353. package/dist/lib/core/handler/LoadLibraryHandler.js +48 -0
  354. package/dist/lib/core/handler/ResolveReferenceHandler.js +13 -0
  355. package/dist/lib/core/handler/SetGlobalStaticFieldHandler.js +38 -0
  356. package/dist/lib/core/handler/SetInstanceFieldHandler.js +35 -0
  357. package/dist/lib/core/handler/SetStaticFieldHandler.js +33 -0
  358. package/dist/lib/core/handler/ValueHandler.js +13 -0
  359. package/dist/lib/core/interpreter/Interpreter.js +142 -0
  360. package/dist/lib/core/namespaceCache/NamespaceCache.js +39 -0
  361. package/{lib → dist/lib}/core/protocol/CommandDeserializer.js +43 -48
  362. package/{lib → dist/lib}/core/protocol/CommandSerializer.js +4 -5
  363. package/{lib → dist/lib}/core/protocol/TypeDeserializer.js +17 -15
  364. package/{lib → dist/lib}/core/protocol/TypeSerializer.js +6 -7
  365. package/dist/lib/core/receiver/Receiver.js +32 -0
  366. package/dist/lib/core/receiver/ReceiverNative.js +13 -0
  367. package/dist/lib/core/referenceCache/ReferencesCache.js +30 -0
  368. package/dist/lib/core/transmitter/Transmitter.js +21 -0
  369. package/dist/lib/core/transmitter/TransmitterWebsocket.js +33 -0
  370. package/dist/lib/core/transmitter/TransmitterWrapper.js +34 -0
  371. package/dist/lib/core/typeCache/TypeCache.js +39 -0
  372. package/dist/lib/core/webSocketClient/WebSocketClient.js +131 -0
  373. package/dist/lib/declarations.d.ts +64 -0
  374. package/dist/lib/sdk/ConfigRuntimeFactory.js +145 -0
  375. package/dist/lib/sdk/InvocationContext.js +454 -0
  376. package/dist/lib/sdk/Javonet.js +89 -0
  377. package/dist/lib/sdk/RuntimeContext.js +266 -0
  378. package/dist/lib/sdk/RuntimeFactory.js +78 -0
  379. package/dist/lib/sdk/tools/JsonFileResolver.js +101 -0
  380. package/dist/lib/sdk/tools/SdkExceptionHelper.js +79 -0
  381. package/dist/lib/utils/Command.js +69 -0
  382. package/{lib → dist/lib}/utils/CommandType.js +6 -2
  383. package/dist/lib/utils/ConnectionType.js +8 -0
  384. package/{lib → dist/lib}/utils/ExceptionType.js +6 -3
  385. package/dist/lib/utils/RuntimeLogger.js +30 -0
  386. package/dist/lib/utils/RuntimeName.js +14 -0
  387. package/dist/lib/utils/RuntimeNameHandler.js +34 -0
  388. package/dist/lib/utils/StringEncodingMode.js +9 -0
  389. package/{lib → dist/lib}/utils/Type.js +5 -2
  390. package/{lib → dist/lib}/utils/connectionData/IConnectionData.js +4 -6
  391. package/dist/lib/utils/connectionData/InMemoryConnectionData.js +35 -0
  392. package/dist/lib/utils/connectionData/TcpConnectionData.js +77 -0
  393. package/dist/lib/utils/connectionData/WsConnectionData.js +50 -0
  394. package/{lib → dist/lib}/utils/exception/ExceptionSerializer.js +24 -31
  395. package/{Binaries/Nodejs → dist/lib}/utils/exception/ExceptionThrower.js +95 -89
  396. package/dist/lib/utils/uuid/REGEX.js +2 -0
  397. package/dist/lib/utils/uuid/rng.js +12 -0
  398. package/dist/lib/utils/uuid/stringify.js +51 -0
  399. package/dist/lib/utils/uuid/v4.js +27 -0
  400. package/dist/lib/utils/uuid/validate.js +6 -0
  401. package/lib/core/generator/handler/AbstractGeneratorHandler.js +0 -1
  402. package/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +20 -10
  403. package/lib/core/generator/handler/GeneratorHandler.js +22 -14
  404. package/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +19 -11
  405. package/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +18 -11
  406. package/lib/core/generator/handler/GetTypeGeneratorHandler.js +25 -12
  407. package/lib/core/generator/handler/Handlers.js +32 -25
  408. package/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +26 -11
  409. package/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
  410. package/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +27 -12
  411. package/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +8 -4
  412. package/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +4 -5
  413. package/lib/core/generator/handler/shared/SharedClassNameHandler.js +10 -12
  414. package/lib/core/generator/handler/shared/SharedMethodNameHandler.js +9 -12
  415. package/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +3 -4
  416. package/lib/core/generator/handler/shared/body/SharedBodyHandler.js +11 -7
  417. package/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +21 -16
  418. package/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +11 -9
  419. package/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +21 -17
  420. package/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +13 -12
  421. package/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +24 -18
  422. package/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
  423. package/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +29 -21
  424. package/lib/core/generator/internal/CommonGenerator.js +23 -10
  425. package/lib/core/generator/internal/NodejsStringBuilder.js +5 -6
  426. package/lib/core/generator/internal/SharedHandlerType.js +2 -2
  427. package/lib/core/generator/utils/StringUtils.js +2 -2
  428. package/lib/core/handler/AbstractHandler.js +12 -12
  429. package/lib/core/handler/ArrayGetItemHandler.js +3 -4
  430. package/lib/core/handler/ArrayGetRankHandler.js +5 -7
  431. package/lib/core/handler/ArrayGetSizeHandler.js +3 -4
  432. package/lib/core/handler/ArrayHandler.js +2 -3
  433. package/lib/core/handler/ArraySetItemHandler.js +4 -5
  434. package/lib/core/handler/CastingHandler.js +3 -3
  435. package/lib/core/handler/CreateClassInstanceHandler.js +29 -31
  436. package/lib/core/handler/DestructReferenceHandler.js +3 -4
  437. package/lib/core/handler/EnableNamespaceHandler.js +8 -11
  438. package/lib/core/handler/EnableTypeHandler.js +8 -10
  439. package/lib/core/handler/GetGlobalStaticFieldHandler.js +28 -30
  440. package/lib/core/handler/GetInstanceFieldHandler.js +28 -28
  441. package/lib/core/handler/GetStaticFieldHandler.js +28 -28
  442. package/lib/core/handler/GetTypeHandler.js +30 -14
  443. package/lib/core/handler/Handler.js +12 -11
  444. package/lib/core/handler/InvokeGlobalMethodHandler.js +36 -40
  445. package/lib/core/handler/InvokeInstanceMethodHandler.js +31 -33
  446. package/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
  447. package/lib/core/handler/InvokeStaticMethodHandler.js +31 -33
  448. package/lib/core/handler/LoadLibraryHandler.js +9 -2
  449. package/lib/core/handler/ResolveReferenceHandler.js +4 -5
  450. package/lib/core/handler/SetGlobalStaticFieldHandler.js +29 -35
  451. package/lib/core/handler/SetInstanceFieldHandler.js +28 -28
  452. package/lib/core/handler/SetStaticFieldHandler.js +26 -26
  453. package/lib/core/handler/ValueHandler.js +3 -5
  454. package/lib/core/namespaceCache/NamespaceCache.js +12 -12
  455. package/lib/core/receiver/Receiver.js +15 -9
  456. package/lib/core/receiver/ReceiverNative.js +3 -3
  457. package/lib/core/referenceCache/ReferencesCache.js +4 -4
  458. package/lib/core/transmitter/Transmitter.js +2 -3
  459. package/lib/core/transmitter/TransmitterWebsocket.js +33 -0
  460. package/lib/core/transmitter/TransmitterWrapper.js +13 -7
  461. package/lib/core/typeCache/TypeCache.js +12 -12
  462. package/lib/core/webSocketClient/WebSocketClient.js +105 -107
  463. package/lib/sdk/ConfigRuntimeFactory.js +57 -52
  464. package/lib/sdk/Javonet.js +28 -32
  465. package/lib/sdk/RuntimeContext.js +118 -122
  466. package/lib/sdk/RuntimeFactory.js +10 -10
  467. package/lib/sdk/tools/JsonFileResolver.js +55 -37
  468. package/lib/sdk/tools/SdkExceptionHelper.js +33 -31
  469. package/lib/utils/RuntimeLogger.js +12 -9
  470. package/lib/utils/connectionData/TcpConnectionData.js +38 -30
  471. package/lib/utils/uuid/REGEX.js +2 -1
  472. package/lib/utils/uuid/rng.js +8 -8
  473. package/lib/utils/uuid/stringify.js +36 -36
  474. package/lib/utils/uuid/v4.js +17 -17
  475. package/lib/utils/uuid/validate.js +3 -3
  476. package/package.json +78 -41
  477. package/.prettierrc +0 -12
  478. package/Binaries/Nodejs/core/generator/handler/CreateInstanceGeneratorHandler.js +0 -17
  479. package/Binaries/Nodejs/core/generator/handler/GeneratorHandler.js +0 -30
  480. package/Binaries/Nodejs/core/generator/handler/GetInstanceFieldGeneratorHandler.js +0 -18
  481. package/Binaries/Nodejs/core/generator/handler/GetStaticFieldGeneratorHandler.js +0 -17
  482. package/Binaries/Nodejs/core/generator/handler/GetTypeGeneratorHandler.js +0 -26
  483. package/Binaries/Nodejs/core/generator/handler/Handlers.js +0 -51
  484. package/Binaries/Nodejs/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +0 -18
  485. package/Binaries/Nodejs/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +0 -20
  486. package/Binaries/Nodejs/core/generator/handler/shared/SharedArgumentNameHandler.js +0 -11
  487. package/Binaries/Nodejs/core/generator/handler/shared/SharedReturnTypeHandler.js +0 -10
  488. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedBodyHandler.js +0 -14
  489. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +0 -24
  490. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +0 -19
  491. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +0 -27
  492. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +0 -20
  493. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +0 -27
  494. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +0 -31
  495. package/Binaries/Nodejs/core/generator/internal/CommonGenerator.js +0 -26
  496. package/Binaries/Nodejs/core/generator/internal/NodejsStringBuilder.js +0 -18
  497. package/Binaries/Nodejs/core/handler/CreateClassInstanceHandler.js +0 -38
  498. package/Binaries/Nodejs/core/handler/GetGlobalStaticFieldHandler.js +0 -39
  499. package/Binaries/Nodejs/core/handler/GetInstanceFieldHandler.js +0 -35
  500. package/Binaries/Nodejs/core/handler/GetStaticFieldHandler.js +0 -36
  501. package/Binaries/Nodejs/core/handler/GetTypeHandler.js +0 -47
  502. package/Binaries/Nodejs/core/handler/InvokeGlobalMethodHandler.js +0 -47
  503. package/Binaries/Nodejs/core/handler/InvokeInstanceMethodHandler.js +0 -40
  504. package/Binaries/Nodejs/core/handler/InvokeStaticMethodHandler.js +0 -40
  505. package/Binaries/Nodejs/core/handler/ResolveReferenceHandler.js +0 -14
  506. package/Binaries/Nodejs/core/handler/SetGlobalStaticFieldHandler.js +0 -44
  507. package/Binaries/Nodejs/core/handler/SetInstanceFieldHandler.js +0 -35
  508. package/Binaries/Nodejs/core/handler/SetStaticFieldHandler.js +0 -33
  509. package/Binaries/Nodejs/core/interpreter/Interpreter.js +0 -65
  510. package/Binaries/Nodejs/core/receiver/Receiver.js +0 -26
  511. package/Binaries/Nodejs/core/transmitter/TransmitterWrapper.js +0 -28
  512. package/Binaries/Nodejs/core/webSocketClient/WebSocketClient.js +0 -133
  513. package/Binaries/Nodejs/utils/Command.js +0 -66
  514. package/Binaries/Nodejs/utils/ConnectionType.js +0 -5
  515. package/Binaries/Nodejs/utils/RuntimeLogger.js +0 -27
  516. package/Binaries/Nodejs/utils/RuntimeNameHandler.js +0 -30
  517. package/Binaries/Nodejs/utils/StringEncodingMode.js +0 -6
  518. package/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js +0 -28
  519. package/Binaries/Nodejs/utils/connectionData/TcpConnectionData.js +0 -69
  520. package/Binaries/Nodejs/utils/connectionData/WsConnectionData.js +0 -33
  521. package/Binaries/Nodejs/utils/uuid/REGEX.js +0 -1
  522. package/Binaries/Nodejs/utils/uuid/rng.js +0 -12
  523. package/Binaries/Nodejs/utils/uuid/stringify.js +0 -51
  524. package/Binaries/Nodejs/utils/uuid/v4.js +0 -27
  525. package/Binaries/Nodejs/utils/uuid/validate.js +0 -6
  526. package/Binaries/Perl/Linux/X64/deps/lib/perl5/Dist/CheckConflicts.pm +0 -361
  527. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Dist/CheckConflicts/.packlist +0 -2
  528. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/config.pl +0 -99
  529. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/include/ffi_platypus_bundle.h +0 -33
  530. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/include/ffi_platypus_config.h +0 -40
  531. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
  532. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/bin/dlrun +0 -0
  533. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/probe.pl +0 -300
  534. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/src/dlrun.c +0 -105
  535. package/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
  536. package/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
  537. package/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
  538. package/Binaries/Python/javonet/core/generator/__pycache__/__init__.cpython-312.pyc +0 -0
  539. package/Binaries/Python/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-312.pyc +0 -0
  540. package/Binaries/Python/javonet/core/generator/internal/__pycache__/__init__.cpython-312.pyc +0 -0
  541. package/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
  542. package/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
  543. package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
  544. package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
  545. package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
  546. package/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
  547. package/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
  548. package/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
  549. package/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
  550. package/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
  551. package/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
  552. package/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
  553. package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
  554. package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
  555. package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
  556. package/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
  557. package/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
  558. package/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
  559. package/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
  560. package/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
  561. package/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
  562. package/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
  563. package/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
  564. package/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
  565. package/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
  566. package/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
  567. package/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
  568. package/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
  569. package/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
  570. package/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
  571. package/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
  572. package/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
  573. package/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
  574. package/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
  575. package/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
  576. package/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  577. package/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
  578. package/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
  579. package/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
  580. package/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
  581. package/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
  582. package/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
  583. package/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
  584. package/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
  585. package/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  586. package/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
  587. package/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
  588. package/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
  589. package/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
  590. package/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
  591. package/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
  592. package/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
  593. package/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
  594. package/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
  595. package/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
  596. package/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  597. package/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
  598. package/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
  599. package/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
  600. package/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
  601. package/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
  602. package/lib/core/interpreter/Interpreter.js +0 -65
  603. package/lib/utils/Command.js +0 -66
  604. package/lib/utils/ConnectionType.js +0 -5
  605. package/lib/utils/RuntimeName.js +0 -11
  606. package/lib/utils/RuntimeNameHandler.js +0 -30
  607. package/lib/utils/StringEncodingMode.js +0 -6
  608. package/lib/utils/connectionData/InMemoryConnectionData.js +0 -28
  609. package/lib/utils/connectionData/WsConnectionData.js +0 -33
@@ -1,11 +1,6 @@
1
- const Interpreter = require("../core/interpreter/Interpreter");
2
- const Command = require("../utils/Command");
3
- const CommandType = require("../utils/CommandType");
4
- const InvocationContext = require("./InvocationContext");
5
- const ConnectionType = require("../utils/ConnectionType");
6
- const GeneratorHandler = require("../core/generator/handler/GeneratorHandler");
7
- const ExceptionThrower = require("../utils/exception/ExceptionThrower");
8
-
1
+ const { ConnectionType, CommandType, ExceptionThrower, Command, Interpreter } = require('@javonet/core')
2
+ const GeneratorHandler = require('../core/generator/handler/GeneratorHandler')
3
+ const { InvocationWsContext, InvocationContext } = require('./InvocationContext')
9
4
 
10
5
  /**
11
6
  * Represents a single context which allows interaction with a selected technology.
@@ -19,60 +14,62 @@ const ExceptionThrower = require("../utils/exception/ExceptionThrower");
19
14
  * @class
20
15
  */
21
16
  class RuntimeContext {
22
- static memoryRuntimeContexts = new Map();
23
- static networkRuntimeContexts = new Map();
24
- static webSocketRuntimeContexts = new Map();
25
- #currentCommand;
26
- #responseCommand;
27
- #interpreter;
28
- #generatorHandler;
17
+ static memoryRuntimeContexts = new Map()
18
+ static networkRuntimeContexts = new Map()
19
+ static webSocketRuntimeContexts = new Map()
20
+ #currentCommand
21
+ #responseCommand
22
+ #interpreter
23
+ // eslint-disable-next-line no-unused-private-class-members
24
+ #generatorHandler
29
25
 
30
26
  constructor(runtimeName, connectionData) {
31
- this.runtimeName = runtimeName;
32
- this.connectionData = connectionData;
33
- this.#currentCommand = null;
34
- this.#responseCommand = null;
35
- this.#interpreter = new Interpreter();
36
- this.#generatorHandler = new GeneratorHandler();
27
+ this.runtimeName = runtimeName
28
+ this.connectionData = connectionData
29
+ this.#currentCommand = null
30
+ this.#responseCommand = null
31
+ this.#interpreter = new Interpreter()
32
+ this.#generatorHandler = new GeneratorHandler()
37
33
  }
38
34
 
39
35
  static getInstance(runtimeName, connectionData) {
40
36
  switch (connectionData.connectionType) {
41
37
  case ConnectionType.IN_MEMORY:
42
38
  if (runtimeName in RuntimeContext.memoryRuntimeContexts) {
43
- let runtimeCtx = RuntimeContext.memoryRuntimeContexts[runtimeName];
44
- runtimeCtx.currentCommand = null;
45
- return runtimeCtx;
39
+ let runtimeCtx = RuntimeContext.memoryRuntimeContexts[runtimeName]
40
+ runtimeCtx.currentCommand = null
41
+ return runtimeCtx
46
42
  } else {
47
- let runtimeCtx = new RuntimeContext(runtimeName, connectionData);
48
- RuntimeContext.memoryRuntimeContexts[runtimeName] = runtimeCtx;
49
- return runtimeCtx;
43
+ let runtimeCtx = new RuntimeContext(runtimeName, connectionData)
44
+ RuntimeContext.memoryRuntimeContexts[runtimeName] = runtimeCtx
45
+ return runtimeCtx
50
46
  }
51
- case ConnectionType.TCP:
52
- let key1 = runtimeName + JSON.stringify(connectionData);
47
+ case ConnectionType.TCP: {
48
+ let key1 = runtimeName + JSON.stringify(connectionData)
53
49
  if (key1 in RuntimeContext.networkRuntimeContexts) {
54
- let runtimeCtx = RuntimeContext.networkRuntimeContexts[key1];
55
- runtimeCtx.currentCommand = null;
56
- return runtimeCtx;
50
+ let runtimeCtx = RuntimeContext.networkRuntimeContexts[key1]
51
+ runtimeCtx.currentCommand = null
52
+ return runtimeCtx
57
53
  } else {
58
- let runtimeCtx = new RuntimeContext(runtimeName, connectionData);
59
- RuntimeContext.networkRuntimeContexts[key1] = runtimeCtx;
60
- return runtimeCtx;
54
+ let runtimeCtx = new RuntimeContext(runtimeName, connectionData)
55
+ RuntimeContext.networkRuntimeContexts[key1] = runtimeCtx
56
+ return runtimeCtx
61
57
  }
62
- case ConnectionType.WEB_SOCKET:
63
- let key2 = runtimeName + JSON.stringify(connectionData);
58
+ }
59
+ case ConnectionType.WEB_SOCKET: {
60
+ let key2 = runtimeName + JSON.stringify(connectionData)
64
61
  if (key2 in RuntimeContext.webSocketRuntimeContexts) {
65
- let runtimeCtx = RuntimeContext.webSocketRuntimeContexts[key2];
66
- runtimeCtx.currentCommand = null;
67
- return runtimeCtx;
62
+ let runtimeCtx = RuntimeContext.webSocketRuntimeContexts[key2]
63
+ runtimeCtx.currentCommand = null
64
+ return runtimeCtx
68
65
  } else {
69
- let runtimeCtx = new RuntimeContext(runtimeName, connectionData);
70
- RuntimeContext.webSocketRuntimeContexts[key2] = runtimeCtx;
71
- return runtimeCtx;
66
+ let runtimeCtx = new RuntimeContext(runtimeName, connectionData)
67
+ RuntimeContext.webSocketRuntimeContexts[key2] = runtimeCtx
68
+ return runtimeCtx
72
69
  }
73
-
70
+ }
74
71
  default:
75
- throw new Error("Invalid connection type");
72
+ throw new Error('Invalid connection type')
76
73
  }
77
74
  }
78
75
 
@@ -86,13 +83,10 @@ class RuntimeContext {
86
83
  * @method
87
84
  */
88
85
  execute() {
89
- this.#responseCommand = this.#interpreter.execute(
90
- this.#currentCommand,
91
- this.connectionData
92
- );
93
- this.#currentCommand = null;
86
+ this.#responseCommand = this.#interpreter.execute(this.#currentCommand, this.connectionData)
87
+ this.#currentCommand = null
94
88
  if (this.#responseCommand.commandType === CommandType.Exception) {
95
- throw ExceptionThrower.throwException(this.#responseCommand);
89
+ throw ExceptionThrower.throwException(this.#responseCommand)
96
90
  }
97
91
  }
98
92
 
@@ -107,14 +101,10 @@ class RuntimeContext {
107
101
  * @method
108
102
  */
109
103
  loadLibrary(libraryPath) {
110
- let localCommand = new Command(
111
- this.runtimeName,
112
- CommandType.LoadLibrary,
113
- [libraryPath]
114
- );
115
- this.#currentCommand = this.#buildCommand(localCommand);
116
- this.execute();
117
- return this;
104
+ let localCommand = new Command(this.runtimeName, CommandType.LoadLibrary, [libraryPath])
105
+ this.#currentCommand = this.#buildCommand(localCommand)
106
+ this.execute()
107
+ return this
118
108
  }
119
109
 
120
110
  /**
@@ -125,13 +115,16 @@ class RuntimeContext {
125
115
  * @method
126
116
  */
127
117
  getType(typeName, ...args) {
128
- let localCommand = new Command(this.runtimeName, CommandType.GetType, [typeName, ...args]);
129
- this.#currentCommand = null;
130
- return new InvocationContext(
131
- this.runtimeName,
132
- this.connectionData,
133
- this.#buildCommand(localCommand)
134
- );
118
+ let localCommand = new Command(this.runtimeName, CommandType.GetType, [typeName, ...args])
119
+ this.#currentCommand = null
120
+ if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
121
+ return new InvocationWsContext(
122
+ this.runtimeName,
123
+ this.connectionData,
124
+ this.#buildCommand(localCommand)
125
+ )
126
+ }
127
+ return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
135
128
  }
136
129
 
137
130
  /**
@@ -144,13 +137,16 @@ class RuntimeContext {
144
137
  * @method
145
138
  */
146
139
  cast(...args) {
147
- let localCommand = new Command(this.runtimeName, CommandType.Cast, args);
148
- this.#currentCommand = null;
149
- return new InvocationContext(
150
- this.runtimeName,
151
- this.connectionData,
152
- this.#buildCommand(localCommand)
153
- );
140
+ let localCommand = new Command(this.runtimeName, CommandType.Cast, args)
141
+ this.#currentCommand = null
142
+ if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
143
+ return new InvocationWsContext(
144
+ this.runtimeName,
145
+ this.connectionData,
146
+ this.#buildCommand(localCommand)
147
+ )
148
+ }
149
+ return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
154
150
  }
155
151
 
156
152
  /**
@@ -163,17 +159,16 @@ class RuntimeContext {
163
159
  * @method
164
160
  */
165
161
  getEnumItem(...args) {
166
- let localCommand = new Command(
167
- this.runtimeName,
168
- CommandType.GetEnumItem,
169
- args
170
- );
171
- this.#currentCommand = null;
172
- return new InvocationContext(
173
- this.runtimeName,
174
- this.connectionData,
175
- this.#buildCommand(localCommand)
176
- );
162
+ let localCommand = new Command(this.runtimeName, CommandType.GetEnumItem, args)
163
+ this.#currentCommand = null
164
+ if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
165
+ return new InvocationWsContext(
166
+ this.runtimeName,
167
+ this.connectionData,
168
+ this.#buildCommand(localCommand)
169
+ )
170
+ }
171
+ return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
177
172
  }
178
173
 
179
174
  /**
@@ -186,13 +181,16 @@ class RuntimeContext {
186
181
  * @method
187
182
  */
188
183
  asRef(...args) {
189
- let localCommand = new Command(this.runtimeName, CommandType.AsRef, args);
190
- this.#currentCommand = null;
191
- return new InvocationContext(
192
- this.runtimeName,
193
- this.connectionData,
194
- this.#buildCommand(localCommand)
195
- );
184
+ let localCommand = new Command(this.runtimeName, CommandType.AsRef, args)
185
+ this.#currentCommand = null
186
+ if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
187
+ return new InvocationWsContext(
188
+ this.runtimeName,
189
+ this.connectionData,
190
+ this.#buildCommand(localCommand)
191
+ )
192
+ }
193
+ return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
196
194
  }
197
195
 
198
196
  /**
@@ -205,52 +203,50 @@ class RuntimeContext {
205
203
  * @method
206
204
  */
207
205
  asOut(...args) {
208
- let localCommand = new Command(this.runtimeName, CommandType.AsOut, args);
209
- this.#currentCommand = null;
210
- return new InvocationContext(
211
- this.runtimeName,
212
- this.connectionData,
213
- this.#buildCommand(localCommand)
214
- );
206
+ let localCommand = new Command(this.runtimeName, CommandType.AsOut, args)
207
+ this.#currentCommand = null
208
+ if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
209
+ return new InvocationWsContext(
210
+ this.runtimeName,
211
+ this.connectionData,
212
+ this.#buildCommand(localCommand)
213
+ )
214
+ }
215
+ return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
215
216
  }
216
217
 
217
218
  #buildCommand = function (command) {
218
219
  for (let i = 0; i < command.payload.length; i++) {
219
- command.payload[i] = this.#encapsulatePayloadItem(command.payload[i]);
220
+ command.payload[i] = this.#encapsulatePayloadItem(command.payload[i])
220
221
  }
221
- return command.prependArgToPayload(this.#currentCommand);
222
- };
222
+ return command.prependArgToPayload(this.#currentCommand)
223
+ }
223
224
 
224
225
  #encapsulatePayloadItem = function (payloadItem) {
225
- if (typeof payloadItem === "Command" || payloadItem instanceof Command) {
226
+ // eslint-disable-next-line valid-typeof
227
+ if (typeof payloadItem === 'Command' || payloadItem instanceof Command) {
226
228
  for (let i = 0; i < payloadItem.payload.length; i++) {
227
- payloadItem.payload[i] = this.#encapsulatePayloadItem(
228
- payloadItem.payload[i]
229
- );
229
+ payloadItem.payload[i] = this.#encapsulatePayloadItem(payloadItem.payload[i])
230
230
  }
231
- return payloadItem;
232
- } else if (
233
- typeof payloadItem === "InvocationContext" ||
234
- payloadItem instanceof InvocationContext
235
- ) {
236
- return payloadItem.get_current_command();
231
+ return payloadItem
232
+ // eslint-disable-next-line valid-typeof
233
+ } else if (typeof payloadItem === 'InvocationContext' || payloadItem instanceof InvocationContext) {
234
+ return payloadItem.get_current_command()
237
235
  } else if (payloadItem instanceof Array) {
238
236
  for (let i = 0; i < payloadItem.length; i++) {
239
- payloadItem[i] = this.#encapsulatePayloadItem(payloadItem[i]);
237
+ payloadItem[i] = this.#encapsulatePayloadItem(payloadItem[i])
240
238
  }
241
- return new Command(this.runtimeName, CommandType.Array, payloadItem);
239
+ return new Command(this.runtimeName, CommandType.Array, payloadItem)
242
240
  } else {
243
- return new Command(this.runtimeName, CommandType.Value, [payloadItem]);
241
+ return new Command(this.runtimeName, CommandType.Value, [payloadItem])
244
242
  }
245
- };
243
+ }
246
244
 
247
245
  healthCheck() {
248
- let localCommand = new Command(this.runtimeName, CommandType.Value, ["health_check"]);
249
- this.#currentCommand = this.#buildCommand(localCommand);
250
- this.execute();
251
- };
252
-
253
-
246
+ let localCommand = new Command(this.runtimeName, CommandType.Value, ['health_check'])
247
+ this.#currentCommand = this.#buildCommand(localCommand)
248
+ this.execute()
249
+ }
254
250
  }
255
251
 
256
- module.exports = RuntimeContext;
252
+ module.exports = RuntimeContext
@@ -1,5 +1,5 @@
1
- const Runtime = require("../utils/RuntimeName")
2
- const RuntimeContext = require("./RuntimeContext")
1
+ const { RuntimeName } = require('@javonet/core')
2
+ const RuntimeContext = require('./RuntimeContext')
3
3
 
4
4
  /**
5
5
  * The RuntimeFactory class provides methods for creating runtime contexts.
@@ -17,7 +17,7 @@ class RuntimeFactory {
17
17
  * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
18
18
  */
19
19
  clr() {
20
- return RuntimeContext.getInstance(Runtime.Clr, this.connectionData)
20
+ return RuntimeContext.getInstance(RuntimeName.Clr, this.connectionData)
21
21
  }
22
22
 
23
23
  /**
@@ -26,7 +26,7 @@ class RuntimeFactory {
26
26
  * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
27
27
  */
28
28
  jvm() {
29
- return RuntimeContext.getInstance(Runtime.Jvm, this.connectionData)
29
+ return RuntimeContext.getInstance(RuntimeName.Jvm, this.connectionData)
30
30
  }
31
31
 
32
32
  /**
@@ -35,7 +35,7 @@ class RuntimeFactory {
35
35
  * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
36
36
  */
37
37
  netcore() {
38
- return RuntimeContext.getInstance(Runtime.Netcore, this.connectionData)
38
+ return RuntimeContext.getInstance(RuntimeName.Netcore, this.connectionData)
39
39
  }
40
40
 
41
41
  /**
@@ -44,7 +44,7 @@ class RuntimeFactory {
44
44
  * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
45
45
  */
46
46
  perl() {
47
- return RuntimeContext.getInstance(Runtime.Perl, this.connectionData)
47
+ return RuntimeContext.getInstance(RuntimeName.Perl, this.connectionData)
48
48
  }
49
49
 
50
50
  /**
@@ -53,7 +53,7 @@ class RuntimeFactory {
53
53
  * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
54
54
  */
55
55
  python() {
56
- return RuntimeContext.getInstance(Runtime.Python, this.connectionData)
56
+ return RuntimeContext.getInstance(RuntimeName.Python, this.connectionData)
57
57
  }
58
58
 
59
59
  /**
@@ -62,7 +62,7 @@ class RuntimeFactory {
62
62
  * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
63
63
  */
64
64
  ruby() {
65
- return RuntimeContext.getInstance(Runtime.Ruby, this.connectionData)
65
+ return RuntimeContext.getInstance(RuntimeName.Ruby, this.connectionData)
66
66
  }
67
67
 
68
68
  /**
@@ -71,8 +71,8 @@ class RuntimeFactory {
71
71
  * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
72
72
  */
73
73
  nodejs() {
74
- return RuntimeContext.getInstance(Runtime.Nodejs, this.connectionData)
74
+ return RuntimeContext.getInstance(RuntimeName.Nodejs, this.connectionData)
75
75
  }
76
76
  }
77
77
 
78
- module.exports = RuntimeFactory
78
+ module.exports = RuntimeFactory
@@ -1,83 +1,101 @@
1
- const fs = require('fs');
1
+ const fs = require('fs')
2
+
3
+ function hasOwnProperty(obj, key) {
4
+ return Object.prototype.hasOwnProperty.call(obj, key)
5
+ }
2
6
 
3
7
  class JsonFileResolver {
4
8
  constructor(path) {
5
- this.path = path;
9
+ this.path = path
6
10
  try {
7
- const data = fs.readFileSync(this.path, 'utf8');
8
- this.jsonObject = JSON.parse(data);
11
+ const data = fs.readFileSync(this.path, 'utf8')
12
+ this.jsonObject = JSON.parse(data)
13
+ // eslint-disable-next-line no-unused-vars
9
14
  } catch (err) {
10
- throw new Error(`Configuration file ${this.path} not found. Please check your configuration file.`);
15
+ throw new Error(
16
+ `Configuration file ${this.path} not found. Please check your configuration file.`
17
+ )
11
18
  }
12
19
  }
13
-
14
20
  getLicenseKey() {
15
- if (!this.jsonObject.hasOwnProperty('licenseKey')) {
16
- throw new Error("License key not found in configuration file. Please check your configuration file.");
21
+ if (!hasOwnProperty(this.jsonObject, 'licenseKey')) {
22
+ throw new Error(
23
+ 'License key not found in configuration file. Please check your configuration file.'
24
+ )
17
25
  }
18
- return this.jsonObject.licenseKey;
26
+ return this.jsonObject.licenseKey
19
27
  }
20
28
 
21
29
  getRuntimes() {
22
- return this.jsonObject.runtimes;
30
+ return this.jsonObject.runtimes
23
31
  }
24
32
 
25
33
  getRuntime(runtimeName, configName) {
26
- const runtimes = this.getRuntimes();
27
- if (runtimes.hasOwnProperty(runtimeName)) {
28
- const runtime = runtimes[runtimeName];
34
+ const runtimes = this.getRuntimes()
35
+ if (hasOwnProperty(runtimes, runtimeName)) {
36
+ const runtime = runtimes[runtimeName]
29
37
  if (Array.isArray(runtime)) {
30
38
  for (let item of runtime) {
31
39
  if (item.name === configName) {
32
- return item;
40
+ return item
33
41
  }
34
42
  }
35
43
  } else if (runtime.name === configName) {
36
- return runtime;
44
+ return runtime
37
45
  }
38
46
  }
39
- throw new Error(`Runtime config ${configName} not found in configuration file for runtime ${runtimeName}. Please check your configuration file.`);
47
+ throw new Error(
48
+ `Runtime config ${configName} not found in configuration file for runtime ${runtimeName}. Please check your configuration file.`
49
+ )
40
50
  }
41
51
 
42
52
  getChannel(runtimeName, configName) {
43
- const runtime = this.getRuntime(runtimeName, configName);
44
- if (!runtime.hasOwnProperty('channel')) {
45
- throw new Error(`Channel key not found in configuration file for config ${configName}. Please check your configuration file.`);
53
+ const runtime = this.getRuntime(runtimeName, configName)
54
+ if (!hasOwnProperty(runtime, 'channel')) {
55
+ throw new Error(
56
+ `Channel key not found in configuration file for config ${configName}. Please check your configuration file.`
57
+ )
46
58
  }
47
- return runtime.channel;
59
+ return runtime.channel
48
60
  }
49
61
 
50
62
  getChannelType(runtimeName, configName) {
51
- const channel = this.getChannel(runtimeName, configName);
52
- if (!channel.hasOwnProperty('type')) {
53
- throw new Error(`Channel type not found in configuration file for config ${configName}. Please check your configuration file.`);
63
+ const channel = this.getChannel(runtimeName, configName)
64
+ if (!hasOwnProperty(channel, 'type')) {
65
+ throw new Error(
66
+ `Channel type not found in configuration file for config ${configName}. Please check your configuration file.`
67
+ )
54
68
  }
55
- return channel.type;
69
+ return channel.type
56
70
  }
57
71
 
58
72
  getChannelHost(runtimeName, configName) {
59
- const channel = this.getChannel(runtimeName, configName);
60
- if (!channel.hasOwnProperty('host')) {
61
- throw new Error(`Channel host not found in configuration file for config ${configName}. Please check your configuration file.`);
73
+ const channel = this.getChannel(runtimeName, configName)
74
+ if (!hasOwnProperty(channel, 'host')) {
75
+ throw new Error(
76
+ `Channel host not found in configuration file for config ${configName}. Please check your configuration file.`
77
+ )
62
78
  }
63
- return channel.host;
79
+ return channel.host
64
80
  }
65
81
 
66
82
  getChannelPort(runtimeName, configName) {
67
- const channel = this.getChannel(runtimeName, configName);
68
- if (!channel.hasOwnProperty('port')) {
69
- throw new Error(`Channel port not found in configuration file for config ${configName}. Please check your configuration file.`);
83
+ const channel = this.getChannel(runtimeName, configName)
84
+ if (!hasOwnProperty(channel, 'port')) {
85
+ throw new Error(
86
+ `Channel port not found in configuration file for config ${configName}. Please check your configuration file.`
87
+ )
70
88
  }
71
- return channel.port;
89
+ return channel.port
72
90
  }
73
91
 
74
92
  getModules(runtimeName, configName) {
75
- const runtime = this.getRuntime(runtimeName, configName);
76
- if (runtime.hasOwnProperty('modules')) {
77
- return runtime.modules;
93
+ const runtime = this.getRuntime(runtimeName, configName)
94
+ if (hasOwnProperty(runtime, 'modules')) {
95
+ return runtime.modules
78
96
  }
79
- return "";
97
+ return ''
80
98
  }
81
99
  }
82
100
 
83
- module.exports = JsonFileResolver;
101
+ module.exports = JsonFileResolver
@@ -1,23 +1,27 @@
1
- const https = require('https');
2
- const os = require('os');
3
- const packageJson = require('../../../package.json');
1
+ const https = require('https')
2
+ const os = require('os')
3
+ // const packageJson = require('../../../package.json')
4
4
 
5
+ const address = 'https://dc.services.visualstudio.com/v2/track'
5
6
 
6
- const address = 'https://dc.services.visualstudio.com/v2/track';
7
-
7
+ /**
8
+ *
9
+ * @param {any} e
10
+ * @param {string} licenseKey
11
+ */
8
12
  function sendExceptionToAppInsights(e, licenseKey) {
9
13
  return new Promise((resolve, reject) => {
10
14
  try {
11
- const instrumentationKey = '2c751560-90c8-40e9-b5dd-534566514723';
12
- const javonetVersion = packageJson.version ? packageJson.version : '2.0.0';
13
-
14
- const nodeName = os.hostname();
15
- const operationName = 'JavonetSdkException';
16
- const osName = os.platform();
17
- const callingRuntimeName = 'Nodejs';
18
- const eventMessage = e.message;
15
+ const instrumentationKey = '2c751560-90c8-40e9-b5dd-534566514723'
16
+ // const javonetVersion = packageJson.version ? packageJson.version : '2.0.0'
17
+ const javonetVersion = '2.0.0'
18
+ const nodeName = os.hostname()
19
+ const operationName = 'JavonetSdkException'
20
+ const osName = os.platform()
21
+ const callingRuntimeName = 'Nodejs'
22
+ const eventMessage = e.message
19
23
 
20
- const nowGMT = new Date().toISOString();
24
+ const nowGMT = new Date().toISOString()
21
25
  const jsonPayload = JSON.stringify({
22
26
  name: 'AppEvents',
23
27
  time: nowGMT,
@@ -28,7 +32,7 @@ function sendExceptionToAppInsights(e, licenseKey) {
28
32
  'ai.operation.id': '0',
29
33
  'ai.operation.parentId': '0',
30
34
  'ai.operation.name': operationName,
31
- 'ai.internal.sdkVersion': 'javonet:'+ javonetVersion,
35
+ 'ai.internal.sdkVersion': 'javonet:' + javonetVersion,
32
36
  'ai.internal.nodeName': nodeName,
33
37
  },
34
38
  data: {
@@ -43,7 +47,7 @@ function sendExceptionToAppInsights(e, licenseKey) {
43
47
  },
44
48
  },
45
49
  },
46
- });
50
+ })
47
51
 
48
52
  const options = {
49
53
  method: 'POST',
@@ -51,27 +55,25 @@ function sendExceptionToAppInsights(e, licenseKey) {
51
55
  'Content-Type': 'application/json',
52
56
  'Content-Length': jsonPayload.length,
53
57
  },
54
- };
58
+ }
55
59
 
56
60
  const req = https.request(address, options, (res) => {
57
- console.log('POST Response Code ::', res.statusCode);
58
- resolve(res.statusCode);
59
- });
61
+ console.log('POST Response Code ::', res.statusCode)
62
+ resolve(res.statusCode)
63
+ })
60
64
 
61
65
  req.on('error', (error) => {
62
- console.error(error);
63
- reject(error);
64
- });
66
+ console.error(error)
67
+ reject(error)
68
+ })
65
69
 
66
- req.write(jsonPayload);
67
- req.end();
70
+ req.write(jsonPayload)
71
+ req.end()
68
72
  } catch (error) {
69
- console.error(error);
70
- reject(error);
73
+ console.error(error)
74
+ reject(error)
71
75
  }
72
- });
76
+ })
73
77
  }
74
78
 
75
- module.exports = {
76
- sendExceptionToAppInsights,
77
- };
79
+ module.exports = sendExceptionToAppInsights