javonet-nodejs-sdk 2.5.8 → 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 (581) 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 -29
  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/JavonetPythonRuntimeNative.dll +0 -0
  81. package/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
  82. package/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
  83. package/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
  84. package/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
  85. package/Binaries/Native/Windows/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
  86. package/Binaries/Native/Windows/X64/NetVersionLatest.runtimeconfig.json +2 -2
  87. package/Binaries/Native/Windows/X64/Utils.dll +0 -0
  88. package/Binaries/Native/Windows/X64/version.txt +1 -1
  89. package/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
  90. package/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
  91. package/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
  92. package/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
  93. package/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
  94. package/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
  95. package/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
  96. package/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
  97. package/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
  98. package/Binaries/Native/Windows/X86/NetVersion90LatestPatch.runtimeconfig.json +10 -0
  99. package/Binaries/Native/Windows/X86/NetVersionLatest.runtimeconfig.json +2 -2
  100. package/Binaries/Native/Windows/X86/Utils.dll +0 -0
  101. package/Binaries/Native/Windows/X86/version.txt +1 -1
  102. package/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
  103. package/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
  104. package/Binaries/Nodejs/index.js +64 -0
  105. package/Binaries/Nodejs/{core → lib/core}/generator/handler/AbstractGeneratorHandler.js +0 -1
  106. package/Binaries/Nodejs/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +27 -0
  107. package/Binaries/Nodejs/lib/core/generator/handler/GeneratorHandler.js +38 -0
  108. package/Binaries/Nodejs/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +26 -0
  109. package/Binaries/Nodejs/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +24 -0
  110. package/Binaries/Nodejs/lib/core/generator/handler/GetTypeGeneratorHandler.js +39 -0
  111. package/Binaries/Nodejs/lib/core/generator/handler/Handlers.js +58 -0
  112. package/Binaries/Nodejs/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +33 -0
  113. package/Binaries/Nodejs/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
  114. package/Binaries/Nodejs/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +35 -0
  115. package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +15 -0
  116. package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassInstanceHandler.js +4 -5
  117. package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassNameHandler.js +10 -12
  118. package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedMethodNameHandler.js +9 -12
  119. package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +9 -0
  120. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedBodyHandler.js +18 -0
  121. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +29 -0
  122. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +21 -0
  123. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +31 -0
  124. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +21 -0
  125. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +33 -0
  126. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
  127. package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +39 -0
  128. package/Binaries/Nodejs/lib/core/generator/internal/CommonGenerator.js +39 -0
  129. package/Binaries/Nodejs/lib/core/generator/internal/NodejsStringBuilder.js +17 -0
  130. package/Binaries/Nodejs/{core → lib/core}/generator/internal/SharedHandlerType.js +2 -2
  131. package/Binaries/Nodejs/{core → lib/core}/generator/utils/StringUtils.js +2 -2
  132. package/Binaries/Nodejs/{core → lib/core}/handler/AbstractHandler.js +12 -12
  133. package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetItemHandler.js +3 -4
  134. package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetRankHandler.js +5 -7
  135. package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetSizeHandler.js +3 -4
  136. package/Binaries/Nodejs/{core → lib/core}/handler/ArrayHandler.js +2 -3
  137. package/Binaries/Nodejs/{core → lib/core}/handler/ArraySetItemHandler.js +4 -5
  138. package/Binaries/Nodejs/{core → lib/core}/handler/CastingHandler.js +3 -3
  139. package/Binaries/Nodejs/lib/core/handler/CreateClassInstanceHandler.js +36 -0
  140. package/Binaries/Nodejs/{core → lib/core}/handler/DestructReferenceHandler.js +3 -4
  141. package/Binaries/Nodejs/{core → lib/core}/handler/EnableNamespaceHandler.js +8 -11
  142. package/Binaries/Nodejs/{core → lib/core}/handler/EnableTypeHandler.js +8 -10
  143. package/Binaries/Nodejs/lib/core/handler/GetGlobalStaticFieldHandler.js +37 -0
  144. package/Binaries/Nodejs/lib/core/handler/GetInstanceFieldHandler.js +35 -0
  145. package/Binaries/Nodejs/lib/core/handler/GetStaticFieldHandler.js +36 -0
  146. package/Binaries/Nodejs/{core → lib/core}/handler/GetTypeHandler.js +22 -21
  147. package/Binaries/Nodejs/{core → lib/core}/handler/Handler.js +12 -11
  148. package/Binaries/Nodejs/lib/core/handler/InvokeGlobalMethodHandler.js +43 -0
  149. package/Binaries/Nodejs/lib/core/handler/InvokeInstanceMethodHandler.js +38 -0
  150. package/Binaries/Nodejs/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
  151. package/Binaries/Nodejs/lib/core/handler/InvokeStaticMethodHandler.js +38 -0
  152. package/Binaries/Nodejs/{core → lib/core}/handler/LoadLibraryHandler.js +4 -3
  153. package/Binaries/Nodejs/lib/core/handler/ResolveReferenceHandler.js +13 -0
  154. package/Binaries/Nodejs/lib/core/handler/SetGlobalStaticFieldHandler.js +38 -0
  155. package/Binaries/Nodejs/lib/core/handler/SetInstanceFieldHandler.js +35 -0
  156. package/Binaries/Nodejs/lib/core/handler/SetStaticFieldHandler.js +33 -0
  157. package/Binaries/Nodejs/{core → lib/core}/handler/ValueHandler.js +3 -5
  158. package/Binaries/Nodejs/lib/core/interpreter/Interpreter.js +142 -0
  159. package/Binaries/Nodejs/{core → lib/core}/namespaceCache/NamespaceCache.js +12 -12
  160. package/Binaries/Nodejs/{core → lib/core}/protocol/CommandDeserializer.js +43 -48
  161. package/Binaries/Nodejs/{core → lib/core}/protocol/CommandSerializer.js +4 -5
  162. package/Binaries/Nodejs/{core → lib/core}/protocol/TypeDeserializer.js +17 -15
  163. package/Binaries/Nodejs/{core → lib/core}/protocol/TypeSerializer.js +6 -7
  164. package/Binaries/Nodejs/lib/core/receiver/Receiver.js +32 -0
  165. package/Binaries/Nodejs/{core → lib/core}/receiver/ReceiverNative.js +3 -3
  166. package/Binaries/Nodejs/{core → lib/core}/referenceCache/ReferencesCache.js +4 -4
  167. package/Binaries/Nodejs/{core → lib/core}/transmitter/Transmitter.js +2 -3
  168. package/Binaries/Nodejs/lib/core/transmitter/TransmitterWebsocket.js +33 -0
  169. package/Binaries/Nodejs/lib/core/transmitter/TransmitterWrapper.js +34 -0
  170. package/Binaries/Nodejs/{core → lib/core}/typeCache/TypeCache.js +12 -12
  171. package/Binaries/Nodejs/lib/core/webSocketClient/WebSocketClient.js +131 -0
  172. package/Binaries/Nodejs/lib/declarations.d.ts +64 -0
  173. package/Binaries/Nodejs/lib/sdk/ConfigRuntimeFactory.js +145 -0
  174. package/{lib → Binaries/Nodejs/lib}/sdk/InvocationContext.js +454 -522
  175. package/Binaries/Nodejs/lib/sdk/Javonet.js +89 -0
  176. package/Binaries/Nodejs/lib/sdk/RuntimeContext.js +266 -0
  177. package/Binaries/Nodejs/lib/sdk/RuntimeFactory.js +78 -0
  178. package/Binaries/Nodejs/lib/sdk/tools/JsonFileResolver.js +101 -0
  179. package/Binaries/Nodejs/lib/sdk/tools/SdkExceptionHelper.js +79 -0
  180. package/Binaries/Nodejs/lib/utils/Command.js +69 -0
  181. package/Binaries/Nodejs/{utils → lib/utils}/CommandType.js +6 -2
  182. package/Binaries/Nodejs/lib/utils/ConnectionType.js +8 -0
  183. package/Binaries/Nodejs/{utils → lib/utils}/ExceptionType.js +6 -3
  184. package/Binaries/Nodejs/lib/utils/RuntimeLogger.js +30 -0
  185. package/{lib → Binaries/Nodejs/lib}/utils/RuntimeName.js +14 -11
  186. package/Binaries/Nodejs/lib/utils/RuntimeNameHandler.js +34 -0
  187. package/Binaries/Nodejs/lib/utils/StringEncodingMode.js +9 -0
  188. package/Binaries/Nodejs/{utils → lib/utils}/Type.js +5 -2
  189. package/Binaries/Nodejs/{utils → lib/utils}/connectionData/IConnectionData.js +4 -6
  190. package/Binaries/Nodejs/lib/utils/connectionData/InMemoryConnectionData.js +35 -0
  191. package/Binaries/Nodejs/lib/utils/connectionData/TcpConnectionData.js +77 -0
  192. package/Binaries/Nodejs/lib/utils/connectionData/WsConnectionData.js +50 -0
  193. package/Binaries/Nodejs/{utils → lib/utils}/exception/ExceptionSerializer.js +24 -31
  194. package/{lib → Binaries/Nodejs/lib}/utils/exception/ExceptionThrower.js +95 -89
  195. package/Binaries/Nodejs/lib/utils/uuid/REGEX.js +2 -0
  196. package/Binaries/Nodejs/lib/utils/uuid/rng.js +12 -0
  197. package/Binaries/Nodejs/lib/utils/uuid/stringify.js +51 -0
  198. package/Binaries/Nodejs/lib/utils/uuid/v4.js +27 -0
  199. package/Binaries/Nodejs/lib/utils/uuid/validate.js +6 -0
  200. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Attribute-Util-1.07/install.json +1 -1
  201. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Capture-Tiny-0.48/install.json +1 -1
  202. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-0.25/install.json +1 -1
  203. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-XS-0.10/install.json +1 -1
  204. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Clone-0.47/install.json +1 -1
  205. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-Cmp-0.010/install.json +1 -1
  206. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-OptList-0.114/install.json +1 -1
  207. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-UUID-1.227/install.json +1 -1
  208. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-GlobalDestruction-0.14/install.json +1 -1
  209. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-OverloadInfo-0.007/install.json +1 -1
  210. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-StackTrace-2.05/install.json +1 -1
  211. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Dist-CheckConflicts-0.11/install.json +1 -1
  212. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Eval-Closure-0.14/install.json +1 -1
  213. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Config-0.010/install.json +1 -1
  214. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Helpers-0.028/install.json +1 -1
  215. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-InstallPaths-0.014/install.json +1 -1
  216. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-CheckLib-0.31/install.json +1 -1
  217. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-Platypus-2.09/install.json +1 -1
  218. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/File-Which-1.27/install.json +1 -1
  219. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/IPC-System-Simple-1.30/install.json +1 -1
  220. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/MRO-Compat-0.15/install.json +1 -1
  221. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-0.4234/install.json +1 -1
  222. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-Tiny-0.051/install.json +1 -1
  223. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Implementation-0.09/install.json +1 -1
  224. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-0.016/install.json +1 -1
  225. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-Conflicts-0.003/install.json +1 -1
  226. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Moose-2.2207/install.json +1 -1
  227. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Nice-Try-v1.3.15/install.json +1 -1
  228. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-1.279/install.json +1 -1
  229. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-XS-0.910/install.json +1 -1
  230. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-DeprecationManager-0.18/install.json +1 -1
  231. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-0.40/install.json +1 -1
  232. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-XS-0.30/install.json +1 -1
  233. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Params-Util-1.102/install.json +1 -1
  234. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Path-Tiny-0.146/install.json +1 -1
  235. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-List-Utils-1.68/install.json +1 -1
  236. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
  237. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scope-Guard-0.21/install.json +1 -1
  238. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-0.991/install.json +1 -1
  239. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-Progressive-0.001013/install.json +1 -1
  240. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Install-0.929/install.json +1 -1
  241. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Task-Weaken-1.06/install.json +1 -1
  242. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Fatal-0.017/install.json +1 -1
  243. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Try-Tiny-0.32/install.json +1 -1
  244. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Want-0.29/install.json +1 -1
  245. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/aliased-0.34/install.json +1 -1
  246. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/autobox-v3.0.2/install.json +1 -1
  247. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
  248. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
  249. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
  250. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
  251. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
  252. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
  253. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
  254. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
  255. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
  256. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +90 -90
  257. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Attribute-Util-1.07/install.json +1 -1
  258. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-Cmp-0.010/install.json +1 -1
  259. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-UUID-1.227/install.json +1 -1
  260. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Nice-Try-v1.3.15/install.json +1 -1
  261. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-1.279/install.json +1 -1
  262. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-XS-0.910/install.json +1 -1
  263. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
  264. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Test-Fatal-0.017/install.json +1 -1
  265. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Want-0.29/install.json +1 -1
  266. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/autobox-v3.0.2/install.json +1 -1
  267. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
  268. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
  269. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
  270. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
  271. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
  272. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +20 -20
  273. package/Binaries/version.txt +1 -1
  274. package/README.md +1 -1
  275. package/dist/Javonet.d.ts +4368 -0
  276. package/dist/index.js +64 -0
  277. package/dist/lib/core/generator/handler/AbstractGeneratorHandler.js +11 -0
  278. package/dist/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +27 -0
  279. package/dist/lib/core/generator/handler/GeneratorHandler.js +38 -0
  280. package/dist/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +26 -0
  281. package/dist/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +24 -0
  282. package/dist/lib/core/generator/handler/GetTypeGeneratorHandler.js +39 -0
  283. package/dist/lib/core/generator/handler/Handlers.js +58 -0
  284. package/dist/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +33 -0
  285. package/dist/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
  286. package/dist/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +35 -0
  287. package/dist/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +15 -0
  288. package/dist/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +12 -0
  289. package/dist/lib/core/generator/handler/shared/SharedClassNameHandler.js +44 -0
  290. package/dist/lib/core/generator/handler/shared/SharedMethodNameHandler.js +42 -0
  291. package/dist/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +9 -0
  292. package/dist/lib/core/generator/handler/shared/body/SharedBodyHandler.js +18 -0
  293. package/dist/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +29 -0
  294. package/dist/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +21 -0
  295. package/dist/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +31 -0
  296. package/dist/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +21 -0
  297. package/dist/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +33 -0
  298. package/dist/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
  299. package/dist/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +39 -0
  300. package/dist/lib/core/generator/internal/CommonGenerator.js +39 -0
  301. package/dist/lib/core/generator/internal/NodejsStringBuilder.js +17 -0
  302. package/dist/lib/core/generator/internal/SharedHandlerType.js +10 -0
  303. package/dist/lib/core/generator/utils/StringUtils.js +7 -0
  304. package/dist/lib/core/handler/AbstractHandler.js +41 -0
  305. package/dist/lib/core/handler/ArrayGetItemHandler.js +38 -0
  306. package/dist/lib/core/handler/ArrayGetRankHandler.js +28 -0
  307. package/dist/lib/core/handler/ArrayGetSizeHandler.js +29 -0
  308. package/dist/lib/core/handler/ArrayHandler.js +18 -0
  309. package/dist/lib/core/handler/ArraySetItemHandler.js +43 -0
  310. package/dist/lib/core/handler/CastingHandler.js +10 -0
  311. package/dist/lib/core/handler/CreateClassInstanceHandler.js +36 -0
  312. package/dist/lib/core/handler/DestructReferenceHandler.js +19 -0
  313. package/dist/lib/core/handler/EnableNamespaceHandler.js +34 -0
  314. package/dist/lib/core/handler/EnableTypeHandler.js +35 -0
  315. package/dist/lib/core/handler/GetGlobalStaticFieldHandler.js +37 -0
  316. package/dist/lib/core/handler/GetInstanceFieldHandler.js +35 -0
  317. package/dist/lib/core/handler/GetStaticFieldHandler.js +36 -0
  318. package/dist/lib/core/handler/GetTypeHandler.js +63 -0
  319. package/dist/lib/core/handler/Handler.js +91 -0
  320. package/dist/lib/core/handler/InvokeGlobalMethodHandler.js +43 -0
  321. package/dist/lib/core/handler/InvokeInstanceMethodHandler.js +38 -0
  322. package/dist/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
  323. package/dist/lib/core/handler/InvokeStaticMethodHandler.js +38 -0
  324. package/dist/lib/core/handler/LoadLibraryHandler.js +48 -0
  325. package/dist/lib/core/handler/ResolveReferenceHandler.js +13 -0
  326. package/dist/lib/core/handler/SetGlobalStaticFieldHandler.js +38 -0
  327. package/dist/lib/core/handler/SetInstanceFieldHandler.js +35 -0
  328. package/dist/lib/core/handler/SetStaticFieldHandler.js +33 -0
  329. package/dist/lib/core/handler/ValueHandler.js +13 -0
  330. package/dist/lib/core/interpreter/Interpreter.js +142 -0
  331. package/dist/lib/core/namespaceCache/NamespaceCache.js +39 -0
  332. package/{lib → dist/lib}/core/protocol/CommandDeserializer.js +43 -48
  333. package/{lib → dist/lib}/core/protocol/CommandSerializer.js +4 -5
  334. package/{lib → dist/lib}/core/protocol/TypeDeserializer.js +17 -15
  335. package/{lib → dist/lib}/core/protocol/TypeSerializer.js +6 -7
  336. package/dist/lib/core/receiver/Receiver.js +32 -0
  337. package/dist/lib/core/receiver/ReceiverNative.js +13 -0
  338. package/dist/lib/core/referenceCache/ReferencesCache.js +30 -0
  339. package/dist/lib/core/transmitter/Transmitter.js +21 -0
  340. package/dist/lib/core/transmitter/TransmitterWebsocket.js +33 -0
  341. package/dist/lib/core/transmitter/TransmitterWrapper.js +34 -0
  342. package/dist/lib/core/typeCache/TypeCache.js +39 -0
  343. package/dist/lib/core/webSocketClient/WebSocketClient.js +131 -0
  344. package/dist/lib/declarations.d.ts +64 -0
  345. package/dist/lib/sdk/ConfigRuntimeFactory.js +145 -0
  346. package/dist/lib/sdk/InvocationContext.js +454 -0
  347. package/dist/lib/sdk/Javonet.js +89 -0
  348. package/dist/lib/sdk/RuntimeContext.js +266 -0
  349. package/dist/lib/sdk/RuntimeFactory.js +78 -0
  350. package/dist/lib/sdk/tools/JsonFileResolver.js +101 -0
  351. package/dist/lib/sdk/tools/SdkExceptionHelper.js +79 -0
  352. package/dist/lib/utils/Command.js +69 -0
  353. package/{lib → dist/lib}/utils/CommandType.js +6 -2
  354. package/dist/lib/utils/ConnectionType.js +8 -0
  355. package/{lib → dist/lib}/utils/ExceptionType.js +6 -3
  356. package/dist/lib/utils/RuntimeLogger.js +30 -0
  357. package/dist/lib/utils/RuntimeName.js +14 -0
  358. package/dist/lib/utils/RuntimeNameHandler.js +34 -0
  359. package/dist/lib/utils/StringEncodingMode.js +9 -0
  360. package/{lib → dist/lib}/utils/Type.js +5 -2
  361. package/{lib → dist/lib}/utils/connectionData/IConnectionData.js +4 -6
  362. package/dist/lib/utils/connectionData/InMemoryConnectionData.js +35 -0
  363. package/dist/lib/utils/connectionData/TcpConnectionData.js +77 -0
  364. package/dist/lib/utils/connectionData/WsConnectionData.js +50 -0
  365. package/{lib → dist/lib}/utils/exception/ExceptionSerializer.js +24 -31
  366. package/{Binaries/Nodejs → dist/lib}/utils/exception/ExceptionThrower.js +95 -89
  367. package/dist/lib/utils/uuid/REGEX.js +2 -0
  368. package/dist/lib/utils/uuid/rng.js +12 -0
  369. package/dist/lib/utils/uuid/stringify.js +51 -0
  370. package/dist/lib/utils/uuid/v4.js +27 -0
  371. package/dist/lib/utils/uuid/validate.js +6 -0
  372. package/lib/core/generator/handler/AbstractGeneratorHandler.js +0 -1
  373. package/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +20 -10
  374. package/lib/core/generator/handler/GeneratorHandler.js +22 -14
  375. package/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +19 -11
  376. package/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +18 -11
  377. package/lib/core/generator/handler/GetTypeGeneratorHandler.js +25 -12
  378. package/lib/core/generator/handler/Handlers.js +32 -25
  379. package/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +26 -11
  380. package/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
  381. package/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +27 -12
  382. package/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +8 -4
  383. package/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +4 -5
  384. package/lib/core/generator/handler/shared/SharedClassNameHandler.js +10 -12
  385. package/lib/core/generator/handler/shared/SharedMethodNameHandler.js +9 -12
  386. package/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +3 -4
  387. package/lib/core/generator/handler/shared/body/SharedBodyHandler.js +11 -7
  388. package/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +21 -16
  389. package/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +11 -9
  390. package/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +21 -17
  391. package/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +13 -12
  392. package/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +24 -18
  393. package/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
  394. package/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +29 -21
  395. package/lib/core/generator/internal/CommonGenerator.js +23 -10
  396. package/lib/core/generator/internal/NodejsStringBuilder.js +5 -6
  397. package/lib/core/generator/internal/SharedHandlerType.js +2 -2
  398. package/lib/core/generator/utils/StringUtils.js +2 -2
  399. package/lib/core/handler/AbstractHandler.js +12 -12
  400. package/lib/core/handler/ArrayGetItemHandler.js +3 -4
  401. package/lib/core/handler/ArrayGetRankHandler.js +5 -7
  402. package/lib/core/handler/ArrayGetSizeHandler.js +3 -4
  403. package/lib/core/handler/ArrayHandler.js +2 -3
  404. package/lib/core/handler/ArraySetItemHandler.js +4 -5
  405. package/lib/core/handler/CastingHandler.js +3 -3
  406. package/lib/core/handler/CreateClassInstanceHandler.js +29 -31
  407. package/lib/core/handler/DestructReferenceHandler.js +3 -4
  408. package/lib/core/handler/EnableNamespaceHandler.js +8 -11
  409. package/lib/core/handler/EnableTypeHandler.js +8 -10
  410. package/lib/core/handler/GetGlobalStaticFieldHandler.js +28 -30
  411. package/lib/core/handler/GetInstanceFieldHandler.js +28 -28
  412. package/lib/core/handler/GetStaticFieldHandler.js +28 -28
  413. package/lib/core/handler/GetTypeHandler.js +22 -21
  414. package/lib/core/handler/Handler.js +12 -11
  415. package/lib/core/handler/InvokeGlobalMethodHandler.js +36 -40
  416. package/lib/core/handler/InvokeInstanceMethodHandler.js +31 -33
  417. package/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
  418. package/lib/core/handler/InvokeStaticMethodHandler.js +31 -33
  419. package/lib/core/handler/LoadLibraryHandler.js +4 -3
  420. package/lib/core/handler/ResolveReferenceHandler.js +4 -5
  421. package/lib/core/handler/SetGlobalStaticFieldHandler.js +29 -35
  422. package/lib/core/handler/SetInstanceFieldHandler.js +28 -28
  423. package/lib/core/handler/SetStaticFieldHandler.js +26 -26
  424. package/lib/core/handler/ValueHandler.js +3 -5
  425. package/lib/core/namespaceCache/NamespaceCache.js +12 -12
  426. package/lib/core/receiver/Receiver.js +15 -9
  427. package/lib/core/receiver/ReceiverNative.js +3 -3
  428. package/lib/core/referenceCache/ReferencesCache.js +4 -4
  429. package/lib/core/transmitter/Transmitter.js +2 -3
  430. package/lib/core/transmitter/TransmitterWebsocket.js +33 -0
  431. package/lib/core/transmitter/TransmitterWrapper.js +13 -7
  432. package/lib/core/typeCache/TypeCache.js +12 -12
  433. package/lib/core/webSocketClient/WebSocketClient.js +105 -108
  434. package/lib/sdk/ConfigRuntimeFactory.js +57 -52
  435. package/lib/sdk/Javonet.js +28 -31
  436. package/lib/sdk/RuntimeContext.js +88 -127
  437. package/lib/sdk/RuntimeFactory.js +10 -10
  438. package/lib/sdk/tools/JsonFileResolver.js +55 -37
  439. package/lib/sdk/tools/SdkExceptionHelper.js +33 -31
  440. package/lib/utils/RuntimeLogger.js +12 -9
  441. package/lib/utils/connectionData/TcpConnectionData.js +38 -30
  442. package/lib/utils/uuid/REGEX.js +2 -1
  443. package/lib/utils/uuid/rng.js +8 -8
  444. package/lib/utils/uuid/stringify.js +36 -36
  445. package/lib/utils/uuid/v4.js +17 -17
  446. package/lib/utils/uuid/validate.js +3 -3
  447. package/package.json +78 -46
  448. package/.editorconfig +0 -8
  449. package/.prettierrc +0 -12
  450. package/Binaries/Nodejs/core/generator/handler/CreateInstanceGeneratorHandler.js +0 -17
  451. package/Binaries/Nodejs/core/generator/handler/GeneratorHandler.js +0 -30
  452. package/Binaries/Nodejs/core/generator/handler/GetInstanceFieldGeneratorHandler.js +0 -18
  453. package/Binaries/Nodejs/core/generator/handler/GetStaticFieldGeneratorHandler.js +0 -17
  454. package/Binaries/Nodejs/core/generator/handler/GetTypeGeneratorHandler.js +0 -26
  455. package/Binaries/Nodejs/core/generator/handler/Handlers.js +0 -51
  456. package/Binaries/Nodejs/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +0 -18
  457. package/Binaries/Nodejs/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +0 -20
  458. package/Binaries/Nodejs/core/generator/handler/shared/SharedArgumentNameHandler.js +0 -11
  459. package/Binaries/Nodejs/core/generator/handler/shared/SharedReturnTypeHandler.js +0 -10
  460. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedBodyHandler.js +0 -14
  461. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +0 -24
  462. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +0 -19
  463. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +0 -27
  464. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +0 -20
  465. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +0 -27
  466. package/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +0 -31
  467. package/Binaries/Nodejs/core/generator/internal/CommonGenerator.js +0 -26
  468. package/Binaries/Nodejs/core/generator/internal/NodejsStringBuilder.js +0 -18
  469. package/Binaries/Nodejs/core/handler/CreateClassInstanceHandler.js +0 -38
  470. package/Binaries/Nodejs/core/handler/GetGlobalStaticFieldHandler.js +0 -39
  471. package/Binaries/Nodejs/core/handler/GetInstanceFieldHandler.js +0 -35
  472. package/Binaries/Nodejs/core/handler/GetStaticFieldHandler.js +0 -36
  473. package/Binaries/Nodejs/core/handler/InvokeGlobalMethodHandler.js +0 -47
  474. package/Binaries/Nodejs/core/handler/InvokeInstanceMethodHandler.js +0 -40
  475. package/Binaries/Nodejs/core/handler/InvokeStaticMethodHandler.js +0 -40
  476. package/Binaries/Nodejs/core/handler/ResolveReferenceHandler.js +0 -14
  477. package/Binaries/Nodejs/core/handler/SetGlobalStaticFieldHandler.js +0 -44
  478. package/Binaries/Nodejs/core/handler/SetInstanceFieldHandler.js +0 -35
  479. package/Binaries/Nodejs/core/handler/SetStaticFieldHandler.js +0 -33
  480. package/Binaries/Nodejs/core/interpreter/Interpreter.js +0 -69
  481. package/Binaries/Nodejs/core/receiver/Receiver.js +0 -26
  482. package/Binaries/Nodejs/core/transmitter/TransmitterWrapper.js +0 -28
  483. package/Binaries/Nodejs/core/webSocketClient/WebSocketClient.js +0 -134
  484. package/Binaries/Nodejs/utils/Command.js +0 -66
  485. package/Binaries/Nodejs/utils/ConnectionType.js +0 -5
  486. package/Binaries/Nodejs/utils/RuntimeLogger.js +0 -27
  487. package/Binaries/Nodejs/utils/RuntimeName.js +0 -11
  488. package/Binaries/Nodejs/utils/RuntimeNameHandler.js +0 -30
  489. package/Binaries/Nodejs/utils/StringEncodingMode.js +0 -6
  490. package/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js +0 -28
  491. package/Binaries/Nodejs/utils/connectionData/TcpConnectionData.js +0 -69
  492. package/Binaries/Nodejs/utils/connectionData/WsConnectionData.js +0 -33
  493. package/Binaries/Nodejs/utils/uuid/REGEX.js +0 -1
  494. package/Binaries/Nodejs/utils/uuid/rng.js +0 -12
  495. package/Binaries/Nodejs/utils/uuid/stringify.js +0 -51
  496. package/Binaries/Nodejs/utils/uuid/v4.js +0 -27
  497. package/Binaries/Nodejs/utils/uuid/validate.js +0 -6
  498. package/Binaries/Perl/Linux/X64/deps/lib/perl5/Dist/CheckConflicts.pm +0 -361
  499. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Dist/CheckConflicts/.packlist +0 -2
  500. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/config.pl +0 -99
  501. 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
  502. 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
  503. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
  504. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/bin/dlrun +0 -0
  505. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/probe.pl +0 -300
  506. 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
  507. package/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
  508. package/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
  509. package/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
  510. package/Binaries/Python/javonet/core/generator/__pycache__/__init__.cpython-312.pyc +0 -0
  511. package/Binaries/Python/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-312.pyc +0 -0
  512. package/Binaries/Python/javonet/core/generator/internal/__pycache__/__init__.cpython-312.pyc +0 -0
  513. package/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
  514. package/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
  515. package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
  516. package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
  517. package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
  518. package/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
  519. package/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
  520. package/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
  521. package/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
  522. package/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
  523. package/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
  524. package/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
  525. package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
  526. package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
  527. package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
  528. package/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
  529. package/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
  530. package/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
  531. package/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
  532. package/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
  533. package/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
  534. package/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
  535. package/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
  536. package/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
  537. package/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
  538. package/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
  539. package/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
  540. package/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
  541. package/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
  542. package/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
  543. package/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
  544. package/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
  545. package/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
  546. package/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
  547. package/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
  548. package/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  549. package/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
  550. package/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
  551. package/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
  552. package/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
  553. package/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
  554. package/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
  555. package/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
  556. package/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
  557. package/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
  558. package/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
  559. package/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
  560. package/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
  561. package/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
  562. package/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
  563. package/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
  564. package/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
  565. package/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
  566. package/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
  567. package/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
  568. package/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
  569. package/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
  570. package/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
  571. package/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
  572. package/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
  573. package/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
  574. package/lib/core/interpreter/Interpreter.js +0 -69
  575. package/lib/utils/Command.js +0 -66
  576. package/lib/utils/ConnectionType.js +0 -5
  577. package/lib/utils/RuntimeNameHandler.js +0 -30
  578. package/lib/utils/StringEncodingMode.js +0 -6
  579. package/lib/utils/connectionData/InMemoryConnectionData.js +0 -28
  580. package/lib/utils/connectionData/WsConnectionData.js +0 -33
  581. package/tsconfig.json +0 -14
@@ -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, InvocationWsContext } = 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,20 +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;
118
+ let localCommand = new Command(this.runtimeName, CommandType.GetType, [typeName, ...args])
119
+ this.#currentCommand = null
130
120
  if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
131
121
  return new InvocationWsContext(
132
122
  this.runtimeName,
133
123
  this.connectionData,
134
124
  this.#buildCommand(localCommand)
135
- );
125
+ )
136
126
  }
137
- return new InvocationContext(
138
- this.runtimeName,
139
- this.connectionData,
140
- this.#buildCommand(localCommand)
141
- );
127
+ return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
142
128
  }
143
129
 
144
130
  /**
@@ -151,20 +137,16 @@ class RuntimeContext {
151
137
  * @method
152
138
  */
153
139
  cast(...args) {
154
- let localCommand = new Command(this.runtimeName, CommandType.Cast, args);
155
- this.#currentCommand = null;
140
+ let localCommand = new Command(this.runtimeName, CommandType.Cast, args)
141
+ this.#currentCommand = null
156
142
  if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
157
143
  return new InvocationWsContext(
158
144
  this.runtimeName,
159
145
  this.connectionData,
160
146
  this.#buildCommand(localCommand)
161
- );
147
+ )
162
148
  }
163
- return new InvocationContext(
164
- this.runtimeName,
165
- this.connectionData,
166
- this.#buildCommand(localCommand)
167
- );
149
+ return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
168
150
  }
169
151
 
170
152
  /**
@@ -177,24 +159,16 @@ class RuntimeContext {
177
159
  * @method
178
160
  */
179
161
  getEnumItem(...args) {
180
- let localCommand = new Command(
181
- this.runtimeName,
182
- CommandType.GetEnumItem,
183
- args
184
- );
185
- this.#currentCommand = null;
162
+ let localCommand = new Command(this.runtimeName, CommandType.GetEnumItem, args)
163
+ this.#currentCommand = null
186
164
  if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
187
165
  return new InvocationWsContext(
188
166
  this.runtimeName,
189
167
  this.connectionData,
190
168
  this.#buildCommand(localCommand)
191
- );
169
+ )
192
170
  }
193
- return new InvocationContext(
194
- this.runtimeName,
195
- this.connectionData,
196
- this.#buildCommand(localCommand)
197
- );
171
+ return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
198
172
  }
199
173
 
200
174
  /**
@@ -207,20 +181,16 @@ class RuntimeContext {
207
181
  * @method
208
182
  */
209
183
  asRef(...args) {
210
- let localCommand = new Command(this.runtimeName, CommandType.AsRef, args);
211
- this.#currentCommand = null;
184
+ let localCommand = new Command(this.runtimeName, CommandType.AsRef, args)
185
+ this.#currentCommand = null
212
186
  if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
213
187
  return new InvocationWsContext(
214
188
  this.runtimeName,
215
189
  this.connectionData,
216
190
  this.#buildCommand(localCommand)
217
- );
191
+ )
218
192
  }
219
- return new InvocationContext(
220
- this.runtimeName,
221
- this.connectionData,
222
- this.#buildCommand(localCommand)
223
- );
193
+ return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
224
194
  }
225
195
 
226
196
  /**
@@ -233,59 +203,50 @@ class RuntimeContext {
233
203
  * @method
234
204
  */
235
205
  asOut(...args) {
236
- let localCommand = new Command(this.runtimeName, CommandType.AsOut, args);
237
- this.#currentCommand = null;
206
+ let localCommand = new Command(this.runtimeName, CommandType.AsOut, args)
207
+ this.#currentCommand = null
238
208
  if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
239
209
  return new InvocationWsContext(
240
210
  this.runtimeName,
241
211
  this.connectionData,
242
212
  this.#buildCommand(localCommand)
243
- );
213
+ )
244
214
  }
245
- return new InvocationContext(
246
- this.runtimeName,
247
- this.connectionData,
248
- this.#buildCommand(localCommand)
249
- );
215
+ return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
250
216
  }
251
217
 
252
218
  #buildCommand = function (command) {
253
219
  for (let i = 0; i < command.payload.length; i++) {
254
- command.payload[i] = this.#encapsulatePayloadItem(command.payload[i]);
220
+ command.payload[i] = this.#encapsulatePayloadItem(command.payload[i])
255
221
  }
256
- return command.prependArgToPayload(this.#currentCommand);
257
- };
222
+ return command.prependArgToPayload(this.#currentCommand)
223
+ }
258
224
 
259
225
  #encapsulatePayloadItem = function (payloadItem) {
260
- if (typeof payloadItem === "Command" || payloadItem instanceof Command) {
226
+ // eslint-disable-next-line valid-typeof
227
+ if (typeof payloadItem === 'Command' || payloadItem instanceof Command) {
261
228
  for (let i = 0; i < payloadItem.payload.length; i++) {
262
- payloadItem.payload[i] = this.#encapsulatePayloadItem(
263
- payloadItem.payload[i]
264
- );
229
+ payloadItem.payload[i] = this.#encapsulatePayloadItem(payloadItem.payload[i])
265
230
  }
266
- return payloadItem;
267
- } else if (
268
- typeof payloadItem === "InvocationContext" ||
269
- payloadItem instanceof InvocationContext
270
- ) {
271
- 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()
272
235
  } else if (payloadItem instanceof Array) {
273
236
  for (let i = 0; i < payloadItem.length; i++) {
274
- payloadItem[i] = this.#encapsulatePayloadItem(payloadItem[i]);
237
+ payloadItem[i] = this.#encapsulatePayloadItem(payloadItem[i])
275
238
  }
276
- return new Command(this.runtimeName, CommandType.Array, payloadItem);
239
+ return new Command(this.runtimeName, CommandType.Array, payloadItem)
277
240
  } else {
278
- return new Command(this.runtimeName, CommandType.Value, [payloadItem]);
241
+ return new Command(this.runtimeName, CommandType.Value, [payloadItem])
279
242
  }
280
- };
243
+ }
281
244
 
282
245
  healthCheck() {
283
- let localCommand = new Command(this.runtimeName, CommandType.Value, ["health_check"]);
284
- this.#currentCommand = this.#buildCommand(localCommand);
285
- this.execute();
286
- };
287
-
288
-
246
+ let localCommand = new Command(this.runtimeName, CommandType.Value, ['health_check'])
247
+ this.#currentCommand = this.#buildCommand(localCommand)
248
+ this.execute()
249
+ }
289
250
  }
290
251
 
291
- 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