javonet-nodejs-sdk 2.4.6 → 2.4.7

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 (293) hide show
  1. package/Binaries/Clr/Windows/X64/Javonet.Clr.Utils.dll +0 -0
  2. package/Binaries/Clr/Windows/X64/JavonetClrRuntime.dll +0 -0
  3. package/Binaries/Jvm/Linux/X64/JavonetJvmRuntime.jar +0 -0
  4. package/Binaries/Jvm/MacOs/X64/JavonetJvmRuntime.jar +0 -0
  5. package/Binaries/Jvm/Windows/X64/JavonetJvmRuntime.jar +0 -0
  6. package/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
  7. package/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
  8. package/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
  9. package/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
  10. package/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
  11. package/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
  12. package/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
  13. package/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
  14. package/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
  15. package/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
  16. package/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
  17. package/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
  18. package/Binaries/Native/Linux/X64/libUtils.so +0 -0
  19. package/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
  20. package/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
  21. package/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
  22. package/Binaries/Native/Linux/X64/version.txt +1 -1
  23. package/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
  24. package/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
  25. package/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
  26. package/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
  27. package/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
  28. package/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
  29. package/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
  30. package/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
  31. package/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
  32. package/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
  33. package/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
  34. package/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
  35. package/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
  36. package/Binaries/Native/MacOs/X64/version.txt +1 -1
  37. package/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
  38. package/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
  39. package/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
  40. package/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
  41. package/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
  42. package/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
  43. package/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
  44. package/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
  45. package/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
  46. package/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
  47. package/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
  48. package/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
  49. package/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
  50. package/Binaries/Native/Windows/X64/Utils.dll +0 -0
  51. package/Binaries/Native/Windows/X64/version.txt +1 -1
  52. package/Binaries/Netcore/Linux/X64/Javonet.Netcore.Core.dll +0 -0
  53. package/Binaries/Netcore/Linux/X64/Javonet.Netcore.Utils.dll +0 -0
  54. package/Binaries/Netcore/MacOs/X64/Javonet.Netcore.Core.dll +0 -0
  55. package/Binaries/Netcore/MacOs/X64/Javonet.Netcore.Utils.dll +0 -0
  56. package/Binaries/Netcore/Windows/X64/Javonet.Netcore.Core.dll +0 -0
  57. package/Binaries/Netcore/Windows/X64/Javonet.Netcore.Utils.dll +0 -0
  58. package/Binaries/Nodejs/Linux/X64/core/handler/Handler.js +1 -1
  59. package/Binaries/Nodejs/Linux/X64/core/protocol/TypeSerializer.js +1 -1
  60. package/Binaries/Nodejs/Linux/X64/core/receiver/Receiver.js +7 -4
  61. package/Binaries/Nodejs/Linux/X64/core/receiver/ReceiverNative.js +2 -0
  62. package/Binaries/Nodejs/Linux/X64/{core → utils}/exception/ExceptionSerializer.js +4 -4
  63. package/Binaries/Nodejs/Linux/X64/{core → utils}/exception/ExceptionThrower.js +1 -1
  64. package/Binaries/Nodejs/MacOs/X64/core/handler/Handler.js +1 -1
  65. package/Binaries/Nodejs/MacOs/X64/core/protocol/TypeSerializer.js +1 -1
  66. package/Binaries/Nodejs/MacOs/X64/core/receiver/Receiver.js +7 -4
  67. package/Binaries/Nodejs/MacOs/X64/core/receiver/ReceiverNative.js +2 -0
  68. package/Binaries/Nodejs/MacOs/X64/{core → utils}/exception/ExceptionSerializer.js +4 -4
  69. package/Binaries/Nodejs/MacOs/X64/{core → utils}/exception/ExceptionThrower.js +1 -1
  70. package/Binaries/Nodejs/Windows/X64/core/handler/Handler.js +1 -1
  71. package/Binaries/Nodejs/Windows/X64/core/protocol/TypeSerializer.js +1 -1
  72. package/Binaries/Nodejs/Windows/X64/core/receiver/Receiver.js +7 -4
  73. package/Binaries/Nodejs/Windows/X64/core/receiver/ReceiverNative.js +2 -0
  74. package/Binaries/Nodejs/Windows/X64/{core → utils}/exception/ExceptionSerializer.js +4 -4
  75. package/Binaries/Nodejs/Windows/X64/{core → utils}/exception/ExceptionThrower.js +1 -1
  76. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Attribute-Util-1.07/install.json +1 -1
  77. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/CPAN-Meta-Requirements-2.143/install.json +1 -1
  78. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/CPAN-Requirements-Dynamic-0.001/install.json +1 -1
  79. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Capture-Tiny-0.48/install.json +1 -1
  80. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-0.25/install.json +1 -1
  81. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-XS-0.10/install.json +1 -1
  82. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Clone-0.46/install.json +1 -1
  83. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-Cmp-0.010/install.json +1 -1
  84. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-OptList-0.114/install.json +1 -1
  85. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-UUID-1.227/install.json +1 -1
  86. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-GlobalDestruction-0.14/install.json +1 -1
  87. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-OverloadInfo-0.007/install.json +1 -1
  88. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-StackTrace-2.05/install.json +1 -1
  89. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Dist-CheckConflicts-0.11/install.json +1 -1
  90. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Eval-Closure-0.14/install.json +1 -1
  91. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Config-0.009/install.json +1 -1
  92. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-HasCompiler-0.025/install.json +1 -1
  93. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Helpers-0.027/install.json +1 -1
  94. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-InstallPaths-0.013/install.json +1 -1
  95. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-CheckLib-0.31/install.json +1 -1
  96. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-Platypus-2.08/install.json +1 -1
  97. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/File-Which-1.27/install.json +1 -1
  98. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/IPC-System-Simple-1.30/install.json +1 -1
  99. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/MRO-Compat-0.15/install.json +1 -1
  100. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-0.4234/install.json +1 -1
  101. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-Tiny-0.048/install.json +1 -1
  102. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Implementation-0.09/install.json +1 -1
  103. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-0.016/install.json +1 -1
  104. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-Conflicts-0.003/install.json +1 -1
  105. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Moose-2.2207/install.json +1 -1
  106. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Nice-Try-v1.3.10/install.json +1 -1
  107. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-1.278/install.json +1 -1
  108. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-XS-0.910/install.json +1 -1
  109. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-DeprecationManager-0.18/install.json +1 -1
  110. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-0.40/install.json +1 -1
  111. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-XS-0.30/install.json +1 -1
  112. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Params-Util-1.102/install.json +1 -1
  113. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Path-Tiny-0.146/install.json +1 -1
  114. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-List-Utils-1.63/install.json +1 -1
  115. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
  116. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scope-Guard-0.21/install.json +1 -1
  117. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-0.991/install.json +1 -1
  118. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-Progressive-0.001013/install.json +1 -1
  119. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Install-0.929/install.json +1 -1
  120. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Task-Weaken-1.06/install.json +1 -1
  121. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Fatal-0.017/install.json +1 -1
  122. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Try-Tiny-0.31/install.json +1 -1
  123. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Want-0.29/install.json +1 -1
  124. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/aliased-0.34/install.json +1 -1
  125. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/autobox-v3.0.1/install.json +1 -1
  126. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
  127. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
  128. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
  129. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
  130. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
  131. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
  132. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
  133. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
  134. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
  135. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
  136. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/bin/dlrun +0 -0
  137. package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +93 -93
  138. package/Binaries/Perl/Linux/X64/lib/Javonet/Core/Exception/SdkExceptionHelper.pm +93 -0
  139. package/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +33 -10
  140. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Attribute-Util-1.07/install.json +1 -1
  141. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/CPAN-Meta-Requirements-2.143/install.json +1 -1
  142. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/CPAN-Requirements-Dynamic-0.001/install.json +1 -1
  143. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Capture-Tiny-0.48/install.json +1 -1
  144. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Class-Load-0.25/install.json +1 -1
  145. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Class-Load-XS-0.10/install.json +1 -1
  146. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Clone-0.46/install.json +1 -1
  147. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Data-Cmp-0.010/install.json +1 -1
  148. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Data-OptList-0.114/install.json +1 -1
  149. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Data-UUID-1.227/install.json +1 -1
  150. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Devel-GlobalDestruction-0.14/install.json +1 -1
  151. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Devel-OverloadInfo-0.007/install.json +1 -1
  152. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Devel-StackTrace-2.05/install.json +1 -1
  153. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Dist-CheckConflicts-0.11/install.json +1 -1
  154. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Eval-Closure-0.14/install.json +1 -1
  155. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/ExtUtils-Config-0.009/install.json +1 -1
  156. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/ExtUtils-HasCompiler-0.025/install.json +1 -1
  157. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/ExtUtils-Helpers-0.027/install.json +1 -1
  158. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/ExtUtils-InstallPaths-0.013/install.json +1 -1
  159. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/FFI-CheckLib-0.31/install.json +1 -1
  160. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/FFI-Platypus-2.08/install.json +1 -1
  161. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/File-Which-1.27/install.json +1 -1
  162. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/IPC-System-Simple-1.30/install.json +1 -1
  163. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/MRO-Compat-0.15/install.json +1 -1
  164. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Module-Build-0.4234/install.json +1 -1
  165. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Module-Build-Tiny-0.048/install.json +1 -1
  166. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Module-Implementation-0.09/install.json +1 -1
  167. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Module-Runtime-0.016/install.json +1 -1
  168. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Module-Runtime-Conflicts-0.003/install.json +1 -1
  169. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Moose-2.2207/install.json +1 -1
  170. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Nice-Try-v1.3.10/install.json +1 -1
  171. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/PPI-1.278/install.json +1 -1
  172. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/PPI-XS-0.910/install.json +1 -1
  173. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Package-DeprecationManager-0.18/install.json +1 -1
  174. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Package-Stash-0.40/install.json +1 -1
  175. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Package-Stash-XS-0.30/install.json +1 -1
  176. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Params-Util-1.102/install.json +1 -1
  177. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Path-Tiny-0.146/install.json +1 -1
  178. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
  179. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Scope-Guard-0.21/install.json +1 -1
  180. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Sub-Exporter-0.991/install.json +1 -1
  181. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Sub-Exporter-Progressive-0.001013/install.json +1 -1
  182. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Sub-Install-0.929/install.json +1 -1
  183. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Task-Weaken-1.06/install.json +1 -1
  184. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Test-Fatal-0.017/install.json +1 -1
  185. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Try-Tiny-0.31/install.json +1 -1
  186. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/Want-0.29/install.json +1 -1
  187. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/aliased-0.34/install.json +1 -1
  188. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/.meta/autobox-v3.0.1/install.json +1 -1
  189. package/Binaries/Perl/MacOs/X64/deps/lib/perl5/darwin-thread-multi-2level/perllocal.pod +94 -94
  190. package/Binaries/Perl/MacOs/X64/lib/Javonet/Core/Exception/SdkExceptionHelper.pm +93 -0
  191. package/Binaries/Perl/MacOs/X64/lib/Javonet/Javonet.pm +33 -10
  192. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Attribute-Util-1.07/install.json +1 -1
  193. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-Cmp-0.010/install.json +1 -1
  194. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-UUID-1.227/install.json +1 -1
  195. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Nice-Try-v1.3.10/install.json +1 -1
  196. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-1.278/install.json +1 -1
  197. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-XS-0.910/install.json +1 -1
  198. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
  199. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Want-0.29/install.json +1 -1
  200. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/autobox-v3.0.1/install.json +1 -1
  201. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
  202. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
  203. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
  204. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
  205. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
  206. package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +18 -18
  207. package/Binaries/Perl/Windows/X64/lib/Javonet/Core/Exception/SdkExceptionHelper.pm +93 -0
  208. package/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +33 -10
  209. package/Binaries/Python/Linux/X64/javonet/core/protocol/CommandSerializer.py +0 -3
  210. package/Binaries/Python/MacOs/X64/javonet/core/protocol/CommandSerializer.py +0 -3
  211. package/Binaries/Python/Windows/X64/javonet/core/__pycache__/__init__.cpython-311.pyc +0 -0
  212. package/Binaries/Python/Windows/X64/javonet/core/generator/__pycache__/__init__.cpython-311.pyc +0 -0
  213. package/Binaries/Python/Windows/X64/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-311.pyc +0 -0
  214. package/Binaries/Python/Windows/X64/javonet/core/generator/internal/__pycache__/__init__.cpython-311.pyc +0 -0
  215. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-311.pyc +0 -0
  216. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/AbstractHandler.cpython-311.pyc +0 -0
  217. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-311.pyc +0 -0
  218. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-311.pyc +0 -0
  219. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-311.pyc +0 -0
  220. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ArrayHandler.cpython-311.pyc +0 -0
  221. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-311.pyc +0 -0
  222. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/CastingHandler.cpython-311.pyc +0 -0
  223. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-311.pyc +0 -0
  224. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-311.pyc +0 -0
  225. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-311.pyc +0 -0
  226. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-311.pyc +0 -0
  227. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-311.pyc +0 -0
  228. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-311.pyc +0 -0
  229. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-311.pyc +0 -0
  230. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-311.pyc +0 -0
  231. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-311.pyc +0 -0
  232. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/GetTypeHandler.cpython-311.pyc +0 -0
  233. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/Handler.cpython-311.pyc +0 -0
  234. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/HandlerDictionary.cpython-311.pyc +0 -0
  235. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-311.pyc +0 -0
  236. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-311.pyc +0 -0
  237. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-311.pyc +0 -0
  238. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-311.pyc +0 -0
  239. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-311.pyc +0 -0
  240. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-311.pyc +0 -0
  241. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/ValueHandler.cpython-311.pyc +0 -0
  242. package/Binaries/Python/Windows/X64/javonet/core/handler/__pycache__/__init__.cpython-311.pyc +0 -0
  243. package/Binaries/Python/Windows/X64/javonet/core/interpreter/__pycache__/Interpreter.cpython-311.pyc +0 -0
  244. package/Binaries/Python/Windows/X64/javonet/core/interpreter/__pycache__/__init__.cpython-311.pyc +0 -0
  245. package/Binaries/Python/Windows/X64/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-311.pyc +0 -0
  246. package/Binaries/Python/Windows/X64/javonet/core/namespaceCache/__pycache__/__init__.cpython-311.pyc +0 -0
  247. package/Binaries/Python/Windows/X64/javonet/core/protocol/CommandSerializer.py +0 -3
  248. package/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-311.pyc +0 -0
  249. package/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/CommandSerializer.cpython-311.pyc +0 -0
  250. package/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-311.pyc +0 -0
  251. package/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/TypeSerializer.cpython-311.pyc +0 -0
  252. package/Binaries/Python/Windows/X64/javonet/core/protocol/__pycache__/__init__.cpython-311.pyc +0 -0
  253. package/Binaries/Python/Windows/X64/javonet/core/receiver/__pycache__/Receiver.cpython-311.pyc +0 -0
  254. package/Binaries/Python/Windows/X64/javonet/core/receiver/__pycache__/__init__.cpython-311.pyc +0 -0
  255. package/Binaries/Python/Windows/X64/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-311.pyc +0 -0
  256. package/Binaries/Python/Windows/X64/javonet/core/referenceCache/__pycache__/__init__.cpython-311.pyc +0 -0
  257. package/Binaries/Python/Windows/X64/javonet/core/typeCache/__pycache__/TypeCache.cpython-311.pyc +0 -0
  258. package/Binaries/Python/Windows/X64/javonet/core/typeCache/__pycache__/__init__.cpython-311.pyc +0 -0
  259. package/Binaries/Python/Windows/X64/javonet/utils/__pycache__/Command.cpython-311.pyc +0 -0
  260. package/Binaries/Python/Windows/X64/javonet/utils/__pycache__/CommandType.cpython-311.pyc +0 -0
  261. package/Binaries/Python/Windows/X64/javonet/utils/__pycache__/ConnectionType.cpython-311.pyc +0 -0
  262. package/Binaries/Python/Windows/X64/javonet/utils/__pycache__/ExceptionType.cpython-311.pyc +0 -0
  263. package/Binaries/Python/Windows/X64/javonet/utils/__pycache__/RuntimeName.cpython-311.pyc +0 -0
  264. package/Binaries/Python/Windows/X64/javonet/utils/__pycache__/StringEncodingMode.cpython-311.pyc +0 -0
  265. package/Binaries/Python/Windows/X64/javonet/utils/__pycache__/TcpConnectionData.cpython-311.pyc +0 -0
  266. package/Binaries/Python/Windows/X64/javonet/utils/__pycache__/Type.cpython-311.pyc +0 -0
  267. package/Binaries/Python/Windows/X64/javonet/utils/__pycache__/__init__.cpython-311.pyc +0 -0
  268. package/Binaries/Python/Windows/X64/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-311.pyc +0 -0
  269. package/Binaries/Python/Windows/X64/javonet/utils/exception/__pycache__/__init__.cpython-311.pyc +0 -0
  270. package/Binaries/Ruby/Linux/X64/core/handler/handler.rb +1 -1
  271. package/Binaries/Ruby/{MacOs/X64/core → Linux/X64/utils}/exceptions/exception_serializer.rb +1 -1
  272. package/Binaries/Ruby/Linux/X64/{core → utils}/exceptions/exception_thrower.rb +1 -1
  273. package/Binaries/Ruby/MacOs/X64/core/handler/handler.rb +1 -1
  274. package/Binaries/Ruby/{Linux/X64/core → MacOs/X64/utils}/exceptions/exception_serializer.rb +1 -1
  275. package/Binaries/Ruby/MacOs/X64/{core → utils}/exceptions/exception_thrower.rb +1 -1
  276. package/Binaries/Ruby/Windows/X64/core/handler/handler.rb +1 -1
  277. package/Binaries/Ruby/Windows/X64/{core → utils}/exceptions/exception_serializer.rb +1 -1
  278. package/Binaries/Ruby/Windows/X64/{core → utils}/exceptions/exception_thrower.rb +1 -1
  279. package/Binaries/version.txt +1 -1
  280. package/lib/core/handler/Handler.js +1 -1
  281. package/lib/core/protocol/TypeSerializer.js +1 -1
  282. package/lib/core/receiver/Receiver.js +7 -4
  283. package/lib/core/receiver/ReceiverNative.js +2 -0
  284. package/lib/sdk/InvocationContext.js +1 -1
  285. package/lib/sdk/Javonet.js +84 -61
  286. package/lib/sdk/RuntimeContext.js +1 -1
  287. package/lib/sdk/tools/SdkExceptionHelper.js +77 -0
  288. package/lib/{core → utils}/exception/ExceptionSerializer.js +4 -4
  289. package/lib/{core → utils}/exception/ExceptionThrower.js +1 -1
  290. package/package.json +1 -1
  291. /package/Binaries/Ruby/Linux/X64/{core → utils}/exceptions/exception_type.rb +0 -0
  292. /package/Binaries/Ruby/MacOs/X64/{core → utils}/exceptions/exception_type.rb +0 -0
  293. /package/Binaries/Ruby/Windows/X64/{core → utils}/exceptions/exception_type.rb +0 -0
@@ -65,9 +65,6 @@ class CommandSerializer:
65
65
  inner_command = command.get_payload()[0]
66
66
  self.insert_into_buffer(TypeSerializer.serialize_command(inner_command))
67
67
  queue.append(inner_command)
68
- elif isinstance(command.get_payload()[0], Exception):
69
- result = self.serialize_primitive(str(command.get_payload()[0]))
70
- self.insert_into_buffer(result)
71
68
  else:
72
69
  result = self.serialize_primitive(command.get_payload()[0])
73
70
  self.insert_into_buffer(result)
@@ -65,9 +65,6 @@ class CommandSerializer:
65
65
  inner_command = command.get_payload()[0]
66
66
  self.insert_into_buffer(TypeSerializer.serialize_command(inner_command))
67
67
  queue.append(inner_command)
68
- elif isinstance(command.get_payload()[0], Exception):
69
- result = self.serialize_primitive(str(command.get_payload()[0]))
70
- self.insert_into_buffer(result)
71
68
  else:
72
69
  result = self.serialize_primitive(command.get_payload()[0])
73
70
  self.insert_into_buffer(result)
@@ -23,7 +23,7 @@ require_relative '../../core/handler/array_handler'
23
23
  require_relative '../../core/handler/enable_namespace_handler'
24
24
  require_relative '../../core/handler/enable_type_handler'
25
25
  require_relative '../../core/reference_cache/references_cache'
26
- require_relative '../../core/exceptions/exception_serializer'
26
+ require_relative '../../utils/exceptions/exception_serializer'
27
27
 
28
28
 
29
29
  class Handler < AbstractHandler
@@ -1,4 +1,4 @@
1
- require_relative '../exceptions/exception_type'
1
+ require_relative './exception_type'
2
2
 
3
3
  class ExceptionSerializer
4
4
 
@@ -1,4 +1,4 @@
1
- require_relative '../exceptions/exception_type'
1
+ require_relative './exception_type'
2
2
 
3
3
  class ExceptionThrower
4
4
 
@@ -23,7 +23,7 @@ require_relative '../../core/handler/array_handler'
23
23
  require_relative '../../core/handler/enable_namespace_handler'
24
24
  require_relative '../../core/handler/enable_type_handler'
25
25
  require_relative '../../core/reference_cache/references_cache'
26
- require_relative '../../core/exceptions/exception_serializer'
26
+ require_relative '../../utils/exceptions/exception_serializer'
27
27
 
28
28
 
29
29
  class Handler < AbstractHandler
@@ -1,4 +1,4 @@
1
- require_relative '../exceptions/exception_type'
1
+ require_relative './exception_type'
2
2
 
3
3
  class ExceptionSerializer
4
4
 
@@ -1,4 +1,4 @@
1
- require_relative '../exceptions/exception_type'
1
+ require_relative './exception_type'
2
2
 
3
3
  class ExceptionThrower
4
4
 
@@ -23,7 +23,7 @@ require_relative '../../core/handler/array_handler'
23
23
  require_relative '../../core/handler/enable_namespace_handler'
24
24
  require_relative '../../core/handler/enable_type_handler'
25
25
  require_relative '../../core/reference_cache/references_cache'
26
- require_relative '../../core/exceptions/exception_serializer'
26
+ require_relative '../../utils/exceptions/exception_serializer'
27
27
 
28
28
 
29
29
  class Handler < AbstractHandler
@@ -1,4 +1,4 @@
1
- require_relative '../exceptions/exception_type'
1
+ require_relative './exception_type'
2
2
 
3
3
  class ExceptionSerializer
4
4
 
@@ -1,4 +1,4 @@
1
- require_relative '../exceptions/exception_type'
1
+ require_relative './exception_type'
2
2
 
3
3
  class ExceptionThrower
4
4
 
@@ -1 +1 @@
1
- 2.4.6
1
+ 2.4.7
@@ -1,7 +1,7 @@
1
1
  const CommandType = require('../../utils/CommandType')
2
2
  const Command = require("../../utils/Command");
3
3
  const ReferenceCache = require('../referenceCache/ReferencesCache')
4
- const ExceptionSerializer = require('../exception/ExceptionSerializer')
4
+ const ExceptionSerializer = require('../../utils/exception/ExceptionSerializer')
5
5
 
6
6
  const ValueHandler = require('./ValueHandler')
7
7
  const LoadLibraryHandler = require('./LoadLibraryHandler')
@@ -26,7 +26,7 @@ class TypeSerializer {
26
26
  }
27
27
 
28
28
  static serializeCommand(command) {
29
- const buffer = Buffer.alloc(7, command)
29
+ const buffer = Buffer.alloc(7)
30
30
  buffer.writeUInt8(Type.JAVONET_COMMAND, 0)
31
31
  buffer.fill(Buffer.from(this.serializeIntValue(command.payload.length)), 1, 5)
32
32
  buffer.writeUInt8(command.runtime, 5)
@@ -2,11 +2,14 @@ const Interpreter = require('../interpreter/Interpreter')
2
2
  const interpreter = new Interpreter()
3
3
 
4
4
  class Receiver {
5
- static sendCommand(byteArray) {
6
- return interpreter.process(byteArray)
5
+ static sendCommand(messageByteArray) {
6
+ return interpreter.process(messageByteArray)
7
7
  }
8
- static heartBeat(byteArray) {
9
- return Int8Array.from([49, 48])
8
+ static heartBeat(messageByteArray) {
9
+ let response = new Int8Array(2)
10
+ response[0] = messageByteArray[11]
11
+ response[1] = messageByteArray[12]-2
12
+ return response
10
13
  }
11
14
  }
12
15
 
@@ -9,3 +9,5 @@ class ReceiverNative {
9
9
  return Receiver.heartBeat(messageByteArray)
10
10
  }
11
11
  }
12
+
13
+ global.ReceiverNative = ReceiverNative;
@@ -1,7 +1,7 @@
1
1
  const Interpreter = require("../core/interpreter/Interpreter");
2
2
  const Command = require("../utils/Command");
3
3
  const CommandType = require("../utils/CommandType");
4
- const ExceptionThrower = require("../core/exception/ExceptionThrower");
4
+ const ExceptionThrower = require("../utils/exception/ExceptionThrower");
5
5
 
6
6
  /**
7
7
  * InvocationContext is a class that represents a context for invoking commands.
@@ -3,9 +3,16 @@ const RuntimeFactory = require("./RuntimeFactory");
3
3
  const ConfigRuntimeFactory = require("./ConfigRuntimeFactory");
4
4
  const Transmitter = require("../core/transmitter/Transmitter");
5
5
  const TcpConnectionData = require("../utils/TcpConnectionData");
6
+ const SDKExceptionHelper = require("./tools/SdkExceptionHelper")
6
7
 
7
8
  //static constructor not supported in nodeJS 12.20
8
- Transmitter.activateWithLicenseFile();
9
+ try {
10
+ Transmitter.activateWithLicenseFile();
11
+ } catch (error) {
12
+ // Handle the error using SDKExceptionHelper
13
+ SDKExceptionHelper.sendExceptionToAppInsights(error, "unknown");
14
+ throw error;
15
+ }
9
16
 
10
17
  /**
11
18
  * The Javonet class is a singleton class that serves as the entry point for interacting with Javonet.
@@ -14,71 +21,87 @@ Transmitter.activateWithLicenseFile();
14
21
  * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/javonet-static-class)
15
22
  */
16
23
  class Javonet {
17
- /**
18
- * Initializes Javonet using an in-memory channel on the same machine.
19
- * @returns {RuntimeFactory} A RuntimeFactory instance configured for an in-memory connection.
20
- * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/in-memory-channel)
21
- */
22
- static inMemory() {
23
- return new RuntimeFactory(ConnectionType.IN_MEMORY, null);
24
- }
24
+ /**
25
+ * Initializes Javonet using an in-memory channel on the same machine.
26
+ * @returns {RuntimeFactory} A RuntimeFactory instance configured for an in-memory connection.
27
+ * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/in-memory-channel)
28
+ */
29
+ static inMemory() {
30
+ return new RuntimeFactory(ConnectionType.IN_MEMORY, null);
31
+ }
25
32
 
26
- /**
27
- * Initializes Javonet with a TCP connection to a remote machine.
28
- * @param {TcpConnectionData} tcpConnectionData - The tcp connection data of the remote machine.
29
- * @returns {RuntimeFactory} A RuntimeFactory instance configured for a TCP connection.
30
- * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/tcp-channel)
31
- */
32
- static tcp(tcpConnectionData) {
33
- return new RuntimeFactory(ConnectionType.TCP, tcpConnectionData);
34
- }
33
+ /**
34
+ * Initializes Javonet with a TCP connection to a remote machine.
35
+ * @param {TcpConnectionData} tcpConnectionData - The tcp connection data of the remote machine.
36
+ * @returns {RuntimeFactory} A RuntimeFactory instance configured for a TCP connection.
37
+ * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/tcp-channel)
38
+ */
39
+ static tcp(tcpConnectionData) {
40
+ return new RuntimeFactory(ConnectionType.TCP, tcpConnectionData);
41
+ }
35
42
 
36
- /**
37
- * Initializes Javonet with a custom configuration file taken from external source.
38
- * Currentyl supported: Configuration file in JSON format
39
- * @param {string} configPath - Path to a configuration file.
40
- * @returns {ConfigRuntimeFactory} A ConfigRuntimeFactory instance with configuration data.
41
- * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/configure-channel)
42
- */
43
- static withConfig(configPath) {
44
- Transmitter.setConfigSource(configPath);
45
- return new ConfigRuntimeFactory(configPath);
46
- }
43
+ /**
44
+ * Initializes Javonet with a custom configuration file taken from external source.
45
+ * Currentyl supported: Configuration file in JSON format
46
+ * @param {string} configPath - Path to a configuration file.
47
+ * @returns {ConfigRuntimeFactory} A ConfigRuntimeFactory instance with configuration data.
48
+ * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/configure-channel)
49
+ */
50
+ static withConfig(configPath) {
51
+ try {
52
+ Transmitter.setConfigSource(configPath);
53
+ return new ConfigRuntimeFactory(configPath);
54
+ } catch (error) {
55
+ SDKExceptionHelper.sendExceptionToAppInsights(error, "unknown");
56
+ throw error;
57
+ }
58
+ }
59
+
60
+ /**
61
+ * Activates Javonet with the provided license key.
62
+ * @param {string} licenseKey - The license key to activate Javonet.
63
+ * @returns {number} The activation status code.
64
+ * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/activating-javonet)
65
+ */
66
+ static activate(licenseKey) {
67
+ try {
68
+ return Transmitter.activateWithCredentials(licenseKey);
69
+ } catch (error) {
70
+ SDKExceptionHelper.sendExceptionToAppInsights(error, licenseKey);
71
+ throw error;
72
+ }
47
73
 
48
- /**
49
- * Activates Javonet with the provided license key.
50
- * @param {string} licenseKey - The license key to activate Javonet.
51
- * @returns {number} The activation status code.
52
- * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/activating-javonet)
53
- */
54
- static activate(licenseKey) {
55
- return Transmitter.activateWithCredentials(licenseKey);
56
- }
74
+ }
57
75
 
58
- /**
59
- * Activates Javonet with the provided license key and proxy host.
60
- * @param {string} licenseKey - The license key to activate Javonet.
61
- * @param {string} proxyHost - The host for the proxy server.
62
- * @param {string} [proxyUserName=""] - The username for the proxy server (optional).
63
- * @param {string} [proxyUserPassword=""] - The password for the proxy server (optional).
64
- * @returns {number} The activation status code.
65
- * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/activating-javonet)
66
- */
67
- static activate(
68
- licenseKey,
69
- proxyHost = "",
70
- proxyUserName = "",
71
- proxyUserPassword = "",
72
- ) {
73
- return Transmitter.activateWithCredentialsAndProxy(
74
- licenseKey,
75
- proxyHost,
76
- proxyUserName,
77
- proxyUserPassword
78
- );
79
- }
76
+ /**
77
+ * Activates Javonet with the provided license key and proxy host.
78
+ * @param {string} licenseKey - The license key to activate Javonet.
79
+ * @param {string} proxyHost - The host for the proxy server.
80
+ * @param {string} [proxyUserName=""] - The username for the proxy server (optional).
81
+ * @param {string} [proxyUserPassword=""] - The password for the proxy server (optional).
82
+ * @returns {number} The activation status code.
83
+ * @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/activating-javonet)
84
+ */
85
+ static activate(
86
+ licenseKey,
87
+ proxyHost = "",
88
+ proxyUserName = "",
89
+ proxyUserPassword = "",
90
+ ) {
91
+ try {
92
+ return Transmitter.activateWithCredentialsAndProxy(
93
+ licenseKey,
94
+ proxyHost,
95
+ proxyUserName,
96
+ proxyUserPassword
97
+ );
98
+ } catch (error) {
99
+ SDKExceptionHelper.sendExceptionToAppInsights(error, licenseKey);
100
+ throw error;
101
+ }
102
+ }
80
103
  }
81
104
 
82
105
  module.exports = {
83
- Javonet,
106
+ Javonet,
84
107
  };
@@ -4,7 +4,7 @@ const CommandType = require("../utils/CommandType");
4
4
  const InvocationContext = require("./InvocationContext");
5
5
  const ConnectionType = require("../utils/ConnectionType");
6
6
  const GeneratorHandler = require("../core/generator/handler/GeneratorHandler");
7
- const ExceptionThrower = require("../core/exception/ExceptionThrower");
7
+ const ExceptionThrower = require("../utils/exception/ExceptionThrower");
8
8
 
9
9
 
10
10
  /**
@@ -0,0 +1,77 @@
1
+ const https = require('https');
2
+ const os = require('os');
3
+ const packageJson = require('../../../package.json');
4
+
5
+
6
+ const address = 'https://dc.services.visualstudio.com/v2/track';
7
+
8
+ function sendExceptionToAppInsights(e, licenseKey) {
9
+ return new Promise((resolve, reject) => {
10
+ 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 = 'Node.js';
18
+ const eventMessage = e.message;
19
+
20
+ const nowGMT = new Date().toISOString();
21
+ const jsonPayload = JSON.stringify({
22
+ name: 'AppEvents',
23
+ time: nowGMT,
24
+ iKey: instrumentationKey,
25
+ tags: {
26
+ 'ai.application.ver': javonetVersion,
27
+ 'ai.cloud.roleInstance': nodeName,
28
+ 'ai.operation.id': '0',
29
+ 'ai.operation.parentId': '0',
30
+ 'ai.operation.name': operationName,
31
+ 'ai.internal.sdkVersion': 'javonet:'+ javonetVersion,
32
+ 'ai.internal.nodeName': nodeName,
33
+ },
34
+ data: {
35
+ baseType: 'EventData',
36
+ baseData: {
37
+ ver: 2,
38
+ name: eventMessage,
39
+ properties: {
40
+ OperatingSystem: osName,
41
+ LicenseKey: licenseKey,
42
+ CallingTechnology: callingRuntimeName,
43
+ },
44
+ },
45
+ },
46
+ });
47
+
48
+ const options = {
49
+ method: 'POST',
50
+ headers: {
51
+ 'Content-Type': 'application/json',
52
+ 'Content-Length': jsonPayload.length,
53
+ },
54
+ };
55
+
56
+ const req = https.request(address, options, (res) => {
57
+ console.log('POST Response Code ::', res.statusCode);
58
+ resolve(res.statusCode);
59
+ });
60
+
61
+ req.on('error', (error) => {
62
+ console.error(error);
63
+ reject(error);
64
+ });
65
+
66
+ req.write(jsonPayload);
67
+ req.end();
68
+ } catch (error) {
69
+ console.error(error);
70
+ reject(error);
71
+ }
72
+ });
73
+ }
74
+
75
+ module.exports = {
76
+ sendExceptionToAppInsights,
77
+ };
@@ -1,7 +1,7 @@
1
- const CommandType = require("../../utils/CommandType");
2
- const Command = require("../../utils/Command");
3
- const Runtime = require("../../utils/RuntimeName");
4
- const ExceptionType = require("../../utils/ExceptionType");
1
+ const CommandType = require("../CommandType");
2
+ const Command = require("../Command");
3
+ const Runtime = require("../RuntimeName");
4
+ const ExceptionType = require("../ExceptionType");
5
5
 
6
6
 
7
7
  class ExceptionSerializer {
@@ -1,4 +1,4 @@
1
- const ExceptionType = require("../../utils/ExceptionType");
1
+ const ExceptionType = require("../ExceptionType");
2
2
 
3
3
 
4
4
  class ExceptionThrower {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javonet-nodejs-sdk",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "description": "Javonet allows you to reference and use modules or packages written in (Java/Kotlin/Groovy/Clojure, C#/VB.NET, Ruby, Perl, Python, JavaScript/TypeScript) like they were created in your technology. It works on Linux/Windows and MacOS for applications created in JVM, CLR/Netcore, Perl, Python, Ruby, NodeJS, C++ or GoLang and gives you unparalleled freedom and flexibility with native performance in building your mixed-technologies products. Let it be accessing best AI or cryptography libraries, devices SDKs, legacy client modules, internal custom packages or anything from public repositories available on NPM, Nuget, PyPI, Maven/Gradle, RubyGems or GitHub. Get free from programming languages barriers today! For more information check out our guides at https://www.javonet.com/guides/v2/",
5
5
  "main": "lib/sdk/Javonet.js",
6
6
  "keywords": [],