javonet-nodejs-sdk 2.5.7 → 2.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
- package/Binaries/Clr/JavonetClrRuntime.dll +0 -0
- package/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- package/Binaries/Native/Linux/ARM64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/Linux/ARM64/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
- package/Binaries/Native/Linux/ARM64/version.txt +1 -1
- package/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +30 -18
- package/Binaries/Native/Linux/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/Linux/X64/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/X64/libUtils.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
- package/Binaries/Native/Linux/X64/version.txt +1 -1
- package/Binaries/Native/MacOs/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/MacOs/X64/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libpython3.11.dylib +0 -0
- package/Binaries/Native/MacOs/X64/version.txt +1 -1
- package/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/ARM64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/Windows/ARM64/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
- package/Binaries/Native/Windows/ARM64/version.txt +0 -0
- package/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetPerlRuntimeNativeAuxiliary.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/Windows/X64/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/Windows/X64/Utils.dll +0 -0
- package/Binaries/Native/Windows/X64/version.txt +1 -1
- package/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/X86/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/Windows/X86/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/Windows/X86/Utils.dll +0 -0
- package/Binaries/Native/Windows/X86/version.txt +1 -1
- package/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
- package/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
- package/Binaries/Nodejs/index.js +64 -0
- package/Binaries/Nodejs/{core → lib/core}/generator/handler/AbstractGeneratorHandler.js +0 -1
- package/Binaries/Nodejs/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +27 -0
- package/Binaries/Nodejs/lib/core/generator/handler/GeneratorHandler.js +38 -0
- package/Binaries/Nodejs/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +26 -0
- package/Binaries/Nodejs/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +24 -0
- package/Binaries/Nodejs/lib/core/generator/handler/GetTypeGeneratorHandler.js +39 -0
- package/Binaries/Nodejs/lib/core/generator/handler/Handlers.js +58 -0
- package/Binaries/Nodejs/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +33 -0
- package/Binaries/Nodejs/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
- package/Binaries/Nodejs/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +35 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +15 -0
- package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassInstanceHandler.js +4 -5
- package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassNameHandler.js +10 -12
- package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedMethodNameHandler.js +9 -12
- package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +9 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedBodyHandler.js +18 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +29 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +21 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +31 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +21 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +33 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +39 -0
- package/Binaries/Nodejs/lib/core/generator/internal/CommonGenerator.js +39 -0
- package/Binaries/Nodejs/lib/core/generator/internal/NodejsStringBuilder.js +17 -0
- package/Binaries/Nodejs/{core → lib/core}/generator/internal/SharedHandlerType.js +2 -2
- package/Binaries/Nodejs/{core → lib/core}/generator/utils/StringUtils.js +2 -2
- package/Binaries/Nodejs/{core → lib/core}/handler/AbstractHandler.js +12 -12
- package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetItemHandler.js +3 -4
- package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetRankHandler.js +5 -7
- package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetSizeHandler.js +3 -4
- package/Binaries/Nodejs/{core → lib/core}/handler/ArrayHandler.js +2 -3
- package/Binaries/Nodejs/{core → lib/core}/handler/ArraySetItemHandler.js +4 -5
- package/Binaries/Nodejs/{core → lib/core}/handler/CastingHandler.js +3 -3
- package/Binaries/Nodejs/lib/core/handler/CreateClassInstanceHandler.js +36 -0
- package/Binaries/Nodejs/{core → lib/core}/handler/DestructReferenceHandler.js +3 -4
- package/Binaries/Nodejs/{core → lib/core}/handler/EnableNamespaceHandler.js +8 -11
- package/Binaries/Nodejs/{core → lib/core}/handler/EnableTypeHandler.js +8 -10
- package/Binaries/Nodejs/lib/core/handler/GetGlobalStaticFieldHandler.js +37 -0
- package/Binaries/Nodejs/lib/core/handler/GetInstanceFieldHandler.js +35 -0
- package/Binaries/Nodejs/lib/core/handler/GetStaticFieldHandler.js +36 -0
- package/Binaries/Nodejs/lib/core/handler/GetTypeHandler.js +63 -0
- package/Binaries/Nodejs/{core → lib/core}/handler/Handler.js +12 -11
- package/Binaries/Nodejs/lib/core/handler/InvokeGlobalMethodHandler.js +43 -0
- package/Binaries/Nodejs/lib/core/handler/InvokeInstanceMethodHandler.js +38 -0
- package/Binaries/Nodejs/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
- package/Binaries/Nodejs/lib/core/handler/InvokeStaticMethodHandler.js +38 -0
- package/Binaries/Nodejs/{core → lib/core}/handler/LoadLibraryHandler.js +9 -2
- package/Binaries/Nodejs/lib/core/handler/ResolveReferenceHandler.js +13 -0
- package/Binaries/Nodejs/lib/core/handler/SetGlobalStaticFieldHandler.js +38 -0
- package/Binaries/Nodejs/lib/core/handler/SetInstanceFieldHandler.js +35 -0
- package/Binaries/Nodejs/lib/core/handler/SetStaticFieldHandler.js +33 -0
- package/Binaries/Nodejs/{core → lib/core}/handler/ValueHandler.js +3 -5
- package/Binaries/Nodejs/lib/core/interpreter/Interpreter.js +142 -0
- package/Binaries/Nodejs/{core → lib/core}/namespaceCache/NamespaceCache.js +12 -12
- package/Binaries/Nodejs/{core → lib/core}/protocol/CommandDeserializer.js +43 -48
- package/Binaries/Nodejs/{core → lib/core}/protocol/CommandSerializer.js +4 -5
- package/Binaries/Nodejs/{core → lib/core}/protocol/TypeDeserializer.js +17 -15
- package/Binaries/Nodejs/{core → lib/core}/protocol/TypeSerializer.js +6 -7
- package/Binaries/Nodejs/lib/core/receiver/Receiver.js +32 -0
- package/Binaries/Nodejs/{core → lib/core}/receiver/ReceiverNative.js +3 -3
- package/Binaries/Nodejs/{core → lib/core}/referenceCache/ReferencesCache.js +4 -4
- package/Binaries/Nodejs/{core → lib/core}/transmitter/Transmitter.js +2 -3
- package/Binaries/Nodejs/lib/core/transmitter/TransmitterWebsocket.js +33 -0
- package/Binaries/Nodejs/lib/core/transmitter/TransmitterWrapper.js +34 -0
- package/Binaries/Nodejs/{core → lib/core}/typeCache/TypeCache.js +12 -12
- package/Binaries/Nodejs/lib/core/webSocketClient/WebSocketClient.js +131 -0
- package/Binaries/Nodejs/lib/declarations.d.ts +64 -0
- package/Binaries/Nodejs/lib/sdk/ConfigRuntimeFactory.js +145 -0
- package/{lib → Binaries/Nodejs/lib}/sdk/InvocationContext.js +454 -522
- package/Binaries/Nodejs/lib/sdk/Javonet.js +89 -0
- package/Binaries/Nodejs/lib/sdk/RuntimeContext.js +266 -0
- package/Binaries/Nodejs/lib/sdk/RuntimeFactory.js +78 -0
- package/Binaries/Nodejs/lib/sdk/tools/JsonFileResolver.js +101 -0
- package/Binaries/Nodejs/lib/sdk/tools/SdkExceptionHelper.js +79 -0
- package/Binaries/Nodejs/lib/utils/Command.js +69 -0
- package/Binaries/Nodejs/{utils → lib/utils}/CommandType.js +6 -2
- package/Binaries/Nodejs/lib/utils/ConnectionType.js +8 -0
- package/Binaries/Nodejs/{utils → lib/utils}/ExceptionType.js +6 -3
- package/Binaries/Nodejs/lib/utils/RuntimeLogger.js +30 -0
- package/Binaries/Nodejs/{utils → lib/utils}/RuntimeName.js +6 -3
- package/Binaries/Nodejs/lib/utils/RuntimeNameHandler.js +34 -0
- package/Binaries/Nodejs/lib/utils/StringEncodingMode.js +9 -0
- package/Binaries/Nodejs/{utils → lib/utils}/Type.js +5 -2
- package/Binaries/Nodejs/{utils → lib/utils}/connectionData/IConnectionData.js +4 -6
- package/Binaries/Nodejs/lib/utils/connectionData/InMemoryConnectionData.js +35 -0
- package/Binaries/Nodejs/lib/utils/connectionData/TcpConnectionData.js +77 -0
- package/Binaries/Nodejs/lib/utils/connectionData/WsConnectionData.js +50 -0
- package/Binaries/Nodejs/{utils → lib/utils}/exception/ExceptionSerializer.js +24 -31
- package/{lib → Binaries/Nodejs/lib}/utils/exception/ExceptionThrower.js +95 -89
- package/Binaries/Nodejs/lib/utils/uuid/REGEX.js +2 -0
- package/Binaries/Nodejs/lib/utils/uuid/rng.js +12 -0
- package/Binaries/Nodejs/lib/utils/uuid/stringify.js +51 -0
- package/Binaries/Nodejs/lib/utils/uuid/v4.js +27 -0
- package/Binaries/Nodejs/lib/utils/uuid/validate.js +6 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Attribute-Util-1.07/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Capture-Tiny-0.48/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-0.25/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-XS-0.10/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Clone-0.47/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-Cmp-0.010/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-OptList-0.114/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-UUID-1.227/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-GlobalDestruction-0.14/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-OverloadInfo-0.007/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-StackTrace-2.05/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Dist-CheckConflicts-0.11/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Eval-Closure-0.14/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Config-0.010/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Helpers-0.028/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-InstallPaths-0.014/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-CheckLib-0.31/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-Platypus-2.09/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/File-Which-1.27/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/IPC-System-Simple-1.30/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/MRO-Compat-0.15/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-0.4234/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-Tiny-0.051/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Implementation-0.09/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-0.016/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-Conflicts-0.003/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Moose-2.2207/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Nice-Try-v1.3.15/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-1.279/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-XS-0.910/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-DeprecationManager-0.18/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-0.40/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-XS-0.30/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Params-Util-1.102/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Path-Tiny-0.146/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-List-Utils-1.68/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scope-Guard-0.21/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-0.991/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-Progressive-0.001013/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Install-0.929/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Task-Weaken-1.06/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Fatal-0.017/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Try-Tiny-0.32/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Want-0.29/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/aliased-0.34/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/autobox-v3.0.2/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +90 -90
- package/Binaries/Perl/Linux/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
- package/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +10 -0
- package/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Attribute-Util-1.07/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-Cmp-0.010/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-UUID-1.227/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Nice-Try-v1.3.15/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-1.279/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-XS-0.910/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Test-Fatal-0.017/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Want-0.29/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/autobox-v3.0.2/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +19 -19
- package/Binaries/Perl/Windows/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
- package/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +10 -0
- package/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
- package/Binaries/Python/javonet/core/handler/GetInstanceFieldHandler.py +1 -1
- package/Binaries/Python/javonet/core/handler/GetTypeHandler.py +7 -4
- package/Binaries/Python/javonet/core/receiver/Receiver.py +3 -4
- package/Binaries/Python/javonet/utils/RuntimeLogger.py +1 -1
- package/Binaries/Ruby/Linux/X64/core/handler/get_instance_field_handler.rb +3 -3
- package/Binaries/Ruby/Linux/X64/core/handler/get_static_field_handler.rb +2 -2
- package/Binaries/Ruby/Linux/X64/core/handler/get_type_handler.rb +29 -18
- package/Binaries/Ruby/Linux/X64/core/handler/load_library_handler.rb +8 -0
- package/Binaries/Ruby/Linux/X64/core/handler/set_instance_field_handler.rb +7 -3
- package/Binaries/Ruby/Linux/X64/core/handler/set_static_field_handler.rb +2 -2
- package/Binaries/Ruby/MacOs/X64/core/handler/get_instance_field_handler.rb +3 -3
- package/Binaries/Ruby/MacOs/X64/core/handler/get_static_field_handler.rb +2 -2
- package/Binaries/Ruby/MacOs/X64/core/handler/get_type_handler.rb +29 -18
- package/Binaries/Ruby/MacOs/X64/core/handler/load_library_handler.rb +8 -0
- package/Binaries/Ruby/MacOs/X64/core/handler/set_instance_field_handler.rb +7 -3
- package/Binaries/Ruby/MacOs/X64/core/handler/set_static_field_handler.rb +2 -2
- package/Binaries/Ruby/Windows/X64/core/handler/get_instance_field_handler.rb +3 -3
- package/Binaries/Ruby/Windows/X64/core/handler/get_static_field_handler.rb +2 -2
- package/Binaries/Ruby/Windows/X64/core/handler/get_type_handler.rb +29 -18
- package/Binaries/Ruby/Windows/X64/core/handler/load_library_handler.rb +8 -0
- package/Binaries/Ruby/Windows/X64/core/handler/set_instance_field_handler.rb +7 -3
- package/Binaries/Ruby/Windows/X64/core/handler/set_static_field_handler.rb +2 -2
- package/Binaries/version.txt +1 -1
- package/README.md +1 -1
- package/dist/Javonet.d.ts +4368 -0
- package/dist/index.js +64 -0
- package/dist/lib/core/generator/handler/AbstractGeneratorHandler.js +11 -0
- package/dist/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +27 -0
- package/dist/lib/core/generator/handler/GeneratorHandler.js +38 -0
- package/dist/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +26 -0
- package/dist/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +24 -0
- package/dist/lib/core/generator/handler/GetTypeGeneratorHandler.js +39 -0
- package/dist/lib/core/generator/handler/Handlers.js +58 -0
- package/dist/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +33 -0
- package/dist/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
- package/dist/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +35 -0
- package/dist/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +15 -0
- package/dist/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +12 -0
- package/dist/lib/core/generator/handler/shared/SharedClassNameHandler.js +44 -0
- package/dist/lib/core/generator/handler/shared/SharedMethodNameHandler.js +42 -0
- package/dist/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +9 -0
- package/dist/lib/core/generator/handler/shared/body/SharedBodyHandler.js +18 -0
- package/dist/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +29 -0
- package/dist/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +21 -0
- package/dist/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +31 -0
- package/dist/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +21 -0
- package/dist/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +33 -0
- package/dist/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
- package/dist/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +39 -0
- package/dist/lib/core/generator/internal/CommonGenerator.js +39 -0
- package/dist/lib/core/generator/internal/NodejsStringBuilder.js +17 -0
- package/dist/lib/core/generator/internal/SharedHandlerType.js +10 -0
- package/dist/lib/core/generator/utils/StringUtils.js +7 -0
- package/dist/lib/core/handler/AbstractHandler.js +41 -0
- package/dist/lib/core/handler/ArrayGetItemHandler.js +38 -0
- package/dist/lib/core/handler/ArrayGetRankHandler.js +28 -0
- package/dist/lib/core/handler/ArrayGetSizeHandler.js +29 -0
- package/dist/lib/core/handler/ArrayHandler.js +18 -0
- package/dist/lib/core/handler/ArraySetItemHandler.js +43 -0
- package/dist/lib/core/handler/CastingHandler.js +10 -0
- package/dist/lib/core/handler/CreateClassInstanceHandler.js +36 -0
- package/dist/lib/core/handler/DestructReferenceHandler.js +19 -0
- package/dist/lib/core/handler/EnableNamespaceHandler.js +34 -0
- package/dist/lib/core/handler/EnableTypeHandler.js +35 -0
- package/dist/lib/core/handler/GetGlobalStaticFieldHandler.js +37 -0
- package/dist/lib/core/handler/GetInstanceFieldHandler.js +35 -0
- package/dist/lib/core/handler/GetStaticFieldHandler.js +36 -0
- package/dist/lib/core/handler/GetTypeHandler.js +63 -0
- package/dist/lib/core/handler/Handler.js +91 -0
- package/dist/lib/core/handler/InvokeGlobalMethodHandler.js +43 -0
- package/dist/lib/core/handler/InvokeInstanceMethodHandler.js +38 -0
- package/dist/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
- package/dist/lib/core/handler/InvokeStaticMethodHandler.js +38 -0
- package/dist/lib/core/handler/LoadLibraryHandler.js +48 -0
- package/dist/lib/core/handler/ResolveReferenceHandler.js +13 -0
- package/dist/lib/core/handler/SetGlobalStaticFieldHandler.js +38 -0
- package/dist/lib/core/handler/SetInstanceFieldHandler.js +35 -0
- package/dist/lib/core/handler/SetStaticFieldHandler.js +33 -0
- package/dist/lib/core/handler/ValueHandler.js +13 -0
- package/dist/lib/core/interpreter/Interpreter.js +142 -0
- package/dist/lib/core/namespaceCache/NamespaceCache.js +39 -0
- package/{lib → dist/lib}/core/protocol/CommandDeserializer.js +43 -48
- package/{lib → dist/lib}/core/protocol/CommandSerializer.js +4 -5
- package/{lib → dist/lib}/core/protocol/TypeDeserializer.js +17 -15
- package/{lib → dist/lib}/core/protocol/TypeSerializer.js +6 -7
- package/dist/lib/core/receiver/Receiver.js +32 -0
- package/dist/lib/core/receiver/ReceiverNative.js +13 -0
- package/dist/lib/core/referenceCache/ReferencesCache.js +30 -0
- package/dist/lib/core/transmitter/Transmitter.js +21 -0
- package/dist/lib/core/transmitter/TransmitterWebsocket.js +33 -0
- package/dist/lib/core/transmitter/TransmitterWrapper.js +34 -0
- package/dist/lib/core/typeCache/TypeCache.js +39 -0
- package/dist/lib/core/webSocketClient/WebSocketClient.js +131 -0
- package/dist/lib/declarations.d.ts +64 -0
- package/dist/lib/sdk/ConfigRuntimeFactory.js +145 -0
- package/dist/lib/sdk/InvocationContext.js +454 -0
- package/dist/lib/sdk/Javonet.js +89 -0
- package/dist/lib/sdk/RuntimeContext.js +266 -0
- package/dist/lib/sdk/RuntimeFactory.js +78 -0
- package/dist/lib/sdk/tools/JsonFileResolver.js +101 -0
- package/dist/lib/sdk/tools/SdkExceptionHelper.js +79 -0
- package/dist/lib/utils/Command.js +69 -0
- package/{lib → dist/lib}/utils/CommandType.js +6 -2
- package/dist/lib/utils/ConnectionType.js +8 -0
- package/{lib → dist/lib}/utils/ExceptionType.js +6 -3
- package/dist/lib/utils/RuntimeLogger.js +30 -0
- package/dist/lib/utils/RuntimeName.js +14 -0
- package/dist/lib/utils/RuntimeNameHandler.js +34 -0
- package/dist/lib/utils/StringEncodingMode.js +9 -0
- package/{lib → dist/lib}/utils/Type.js +5 -2
- package/{lib → dist/lib}/utils/connectionData/IConnectionData.js +4 -6
- package/dist/lib/utils/connectionData/InMemoryConnectionData.js +35 -0
- package/dist/lib/utils/connectionData/TcpConnectionData.js +77 -0
- package/dist/lib/utils/connectionData/WsConnectionData.js +50 -0
- package/{lib → dist/lib}/utils/exception/ExceptionSerializer.js +24 -31
- package/{Binaries/Nodejs → dist/lib}/utils/exception/ExceptionThrower.js +95 -89
- package/dist/lib/utils/uuid/REGEX.js +2 -0
- package/dist/lib/utils/uuid/rng.js +12 -0
- package/dist/lib/utils/uuid/stringify.js +51 -0
- package/dist/lib/utils/uuid/v4.js +27 -0
- package/dist/lib/utils/uuid/validate.js +6 -0
- package/lib/core/generator/handler/AbstractGeneratorHandler.js +0 -1
- package/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +20 -10
- package/lib/core/generator/handler/GeneratorHandler.js +22 -14
- package/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +19 -11
- package/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +18 -11
- package/lib/core/generator/handler/GetTypeGeneratorHandler.js +25 -12
- package/lib/core/generator/handler/Handlers.js +32 -25
- package/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +26 -11
- package/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
- package/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +27 -12
- package/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +8 -4
- package/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +4 -5
- package/lib/core/generator/handler/shared/SharedClassNameHandler.js +10 -12
- package/lib/core/generator/handler/shared/SharedMethodNameHandler.js +9 -12
- package/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +3 -4
- package/lib/core/generator/handler/shared/body/SharedBodyHandler.js +11 -7
- package/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +21 -16
- package/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +11 -9
- package/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +21 -17
- package/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +13 -12
- package/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +24 -18
- package/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
- package/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +29 -21
- package/lib/core/generator/internal/CommonGenerator.js +23 -10
- package/lib/core/generator/internal/NodejsStringBuilder.js +5 -6
- package/lib/core/generator/internal/SharedHandlerType.js +2 -2
- package/lib/core/generator/utils/StringUtils.js +2 -2
- package/lib/core/handler/AbstractHandler.js +12 -12
- package/lib/core/handler/ArrayGetItemHandler.js +3 -4
- package/lib/core/handler/ArrayGetRankHandler.js +5 -7
- package/lib/core/handler/ArrayGetSizeHandler.js +3 -4
- package/lib/core/handler/ArrayHandler.js +2 -3
- package/lib/core/handler/ArraySetItemHandler.js +4 -5
- package/lib/core/handler/CastingHandler.js +3 -3
- package/lib/core/handler/CreateClassInstanceHandler.js +29 -31
- package/lib/core/handler/DestructReferenceHandler.js +3 -4
- package/lib/core/handler/EnableNamespaceHandler.js +8 -11
- package/lib/core/handler/EnableTypeHandler.js +8 -10
- package/lib/core/handler/GetGlobalStaticFieldHandler.js +28 -30
- package/lib/core/handler/GetInstanceFieldHandler.js +28 -28
- package/lib/core/handler/GetStaticFieldHandler.js +28 -28
- package/lib/core/handler/GetTypeHandler.js +30 -14
- package/lib/core/handler/Handler.js +12 -11
- package/lib/core/handler/InvokeGlobalMethodHandler.js +36 -40
- package/lib/core/handler/InvokeInstanceMethodHandler.js +31 -33
- package/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
- package/lib/core/handler/InvokeStaticMethodHandler.js +31 -33
- package/lib/core/handler/LoadLibraryHandler.js +9 -2
- package/lib/core/handler/ResolveReferenceHandler.js +4 -5
- package/lib/core/handler/SetGlobalStaticFieldHandler.js +29 -35
- package/lib/core/handler/SetInstanceFieldHandler.js +28 -28
- package/lib/core/handler/SetStaticFieldHandler.js +26 -26
- package/lib/core/handler/ValueHandler.js +3 -5
- package/lib/core/namespaceCache/NamespaceCache.js +12 -12
- package/lib/core/receiver/Receiver.js +15 -9
- package/lib/core/receiver/ReceiverNative.js +3 -3
- package/lib/core/referenceCache/ReferencesCache.js +4 -4
- package/lib/core/transmitter/Transmitter.js +2 -3
- package/lib/core/transmitter/TransmitterWebsocket.js +33 -0
- package/lib/core/transmitter/TransmitterWrapper.js +13 -7
- package/lib/core/typeCache/TypeCache.js +12 -12
- package/lib/core/webSocketClient/WebSocketClient.js +105 -107
- package/lib/sdk/ConfigRuntimeFactory.js +57 -52
- package/lib/sdk/Javonet.js +28 -32
- package/lib/sdk/RuntimeContext.js +118 -122
- package/lib/sdk/RuntimeFactory.js +10 -10
- package/lib/sdk/tools/JsonFileResolver.js +55 -37
- package/lib/sdk/tools/SdkExceptionHelper.js +33 -31
- package/lib/utils/RuntimeLogger.js +12 -9
- package/lib/utils/connectionData/TcpConnectionData.js +38 -30
- package/lib/utils/uuid/REGEX.js +2 -1
- package/lib/utils/uuid/rng.js +8 -8
- package/lib/utils/uuid/stringify.js +36 -36
- package/lib/utils/uuid/v4.js +17 -17
- package/lib/utils/uuid/validate.js +3 -3
- package/package.json +78 -41
- package/.prettierrc +0 -12
- package/Binaries/Nodejs/core/generator/handler/CreateInstanceGeneratorHandler.js +0 -17
- package/Binaries/Nodejs/core/generator/handler/GeneratorHandler.js +0 -30
- package/Binaries/Nodejs/core/generator/handler/GetInstanceFieldGeneratorHandler.js +0 -18
- package/Binaries/Nodejs/core/generator/handler/GetStaticFieldGeneratorHandler.js +0 -17
- package/Binaries/Nodejs/core/generator/handler/GetTypeGeneratorHandler.js +0 -26
- package/Binaries/Nodejs/core/generator/handler/Handlers.js +0 -51
- package/Binaries/Nodejs/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +0 -18
- package/Binaries/Nodejs/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +0 -20
- package/Binaries/Nodejs/core/generator/handler/shared/SharedArgumentNameHandler.js +0 -11
- package/Binaries/Nodejs/core/generator/handler/shared/SharedReturnTypeHandler.js +0 -10
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedBodyHandler.js +0 -14
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +0 -24
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +0 -19
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +0 -27
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +0 -20
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +0 -27
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +0 -31
- package/Binaries/Nodejs/core/generator/internal/CommonGenerator.js +0 -26
- package/Binaries/Nodejs/core/generator/internal/NodejsStringBuilder.js +0 -18
- package/Binaries/Nodejs/core/handler/CreateClassInstanceHandler.js +0 -38
- package/Binaries/Nodejs/core/handler/GetGlobalStaticFieldHandler.js +0 -39
- package/Binaries/Nodejs/core/handler/GetInstanceFieldHandler.js +0 -35
- package/Binaries/Nodejs/core/handler/GetStaticFieldHandler.js +0 -36
- package/Binaries/Nodejs/core/handler/GetTypeHandler.js +0 -47
- package/Binaries/Nodejs/core/handler/InvokeGlobalMethodHandler.js +0 -47
- package/Binaries/Nodejs/core/handler/InvokeInstanceMethodHandler.js +0 -40
- package/Binaries/Nodejs/core/handler/InvokeStaticMethodHandler.js +0 -40
- package/Binaries/Nodejs/core/handler/ResolveReferenceHandler.js +0 -14
- package/Binaries/Nodejs/core/handler/SetGlobalStaticFieldHandler.js +0 -44
- package/Binaries/Nodejs/core/handler/SetInstanceFieldHandler.js +0 -35
- package/Binaries/Nodejs/core/handler/SetStaticFieldHandler.js +0 -33
- package/Binaries/Nodejs/core/interpreter/Interpreter.js +0 -65
- package/Binaries/Nodejs/core/receiver/Receiver.js +0 -26
- package/Binaries/Nodejs/core/transmitter/TransmitterWrapper.js +0 -28
- package/Binaries/Nodejs/core/webSocketClient/WebSocketClient.js +0 -133
- package/Binaries/Nodejs/utils/Command.js +0 -66
- package/Binaries/Nodejs/utils/ConnectionType.js +0 -5
- package/Binaries/Nodejs/utils/RuntimeLogger.js +0 -27
- package/Binaries/Nodejs/utils/RuntimeNameHandler.js +0 -30
- package/Binaries/Nodejs/utils/StringEncodingMode.js +0 -6
- package/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js +0 -28
- package/Binaries/Nodejs/utils/connectionData/TcpConnectionData.js +0 -69
- package/Binaries/Nodejs/utils/connectionData/WsConnectionData.js +0 -33
- package/Binaries/Nodejs/utils/uuid/REGEX.js +0 -1
- package/Binaries/Nodejs/utils/uuid/rng.js +0 -12
- package/Binaries/Nodejs/utils/uuid/stringify.js +0 -51
- package/Binaries/Nodejs/utils/uuid/v4.js +0 -27
- package/Binaries/Nodejs/utils/uuid/validate.js +0 -6
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/Dist/CheckConflicts.pm +0 -361
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Dist/CheckConflicts/.packlist +0 -2
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/config.pl +0 -99
- 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
- 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
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/bin/dlrun +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/probe.pl +0 -300
- 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
- package/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/generator/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/generator/internal/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/core/interpreter/Interpreter.js +0 -65
- package/lib/utils/Command.js +0 -66
- package/lib/utils/ConnectionType.js +0 -5
- package/lib/utils/RuntimeName.js +0 -11
- package/lib/utils/RuntimeNameHandler.js +0 -30
- package/lib/utils/StringEncodingMode.js +0 -6
- package/lib/utils/connectionData/InMemoryConnectionData.js +0 -28
- package/lib/utils/connectionData/WsConnectionData.js +0 -33
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
const Interpreter = require(
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const InvocationContext = require("./InvocationContext");
|
|
5
|
-
const ConnectionType = require("../utils/ConnectionType");
|
|
6
|
-
const GeneratorHandler = require("../core/generator/handler/GeneratorHandler");
|
|
7
|
-
const ExceptionThrower = require("../utils/exception/ExceptionThrower");
|
|
8
|
-
|
|
1
|
+
const { ConnectionType, CommandType, ExceptionThrower, Command, Interpreter } = require('@javonet/core')
|
|
2
|
+
const GeneratorHandler = require('../core/generator/handler/GeneratorHandler')
|
|
3
|
+
const { InvocationWsContext, InvocationContext } = require('./InvocationContext')
|
|
9
4
|
|
|
10
5
|
/**
|
|
11
6
|
* Represents a single context which allows interaction with a selected technology.
|
|
@@ -19,60 +14,62 @@ const ExceptionThrower = require("../utils/exception/ExceptionThrower");
|
|
|
19
14
|
* @class
|
|
20
15
|
*/
|
|
21
16
|
class RuntimeContext {
|
|
22
|
-
static memoryRuntimeContexts = new Map()
|
|
23
|
-
static networkRuntimeContexts = new Map()
|
|
24
|
-
static webSocketRuntimeContexts = new Map()
|
|
25
|
-
#currentCommand
|
|
26
|
-
#responseCommand
|
|
27
|
-
#interpreter
|
|
28
|
-
|
|
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
|
-
|
|
63
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
);
|
|
115
|
-
this.#currentCommand = this.#buildCommand(localCommand);
|
|
116
|
-
this.execute();
|
|
117
|
-
return this;
|
|
104
|
+
let localCommand = new Command(this.runtimeName, CommandType.LoadLibrary, [libraryPath])
|
|
105
|
+
this.#currentCommand = this.#buildCommand(localCommand)
|
|
106
|
+
this.execute()
|
|
107
|
+
return this
|
|
118
108
|
}
|
|
119
109
|
|
|
120
110
|
/**
|
|
@@ -125,13 +115,16 @@ class RuntimeContext {
|
|
|
125
115
|
* @method
|
|
126
116
|
*/
|
|
127
117
|
getType(typeName, ...args) {
|
|
128
|
-
let localCommand = new Command(this.runtimeName, CommandType.GetType, [typeName, ...args])
|
|
129
|
-
this.#currentCommand = null
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
118
|
+
let localCommand = new Command(this.runtimeName, CommandType.GetType, [typeName, ...args])
|
|
119
|
+
this.#currentCommand = null
|
|
120
|
+
if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
|
|
121
|
+
return new InvocationWsContext(
|
|
122
|
+
this.runtimeName,
|
|
123
|
+
this.connectionData,
|
|
124
|
+
this.#buildCommand(localCommand)
|
|
125
|
+
)
|
|
126
|
+
}
|
|
127
|
+
return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
|
|
135
128
|
}
|
|
136
129
|
|
|
137
130
|
/**
|
|
@@ -144,13 +137,16 @@ class RuntimeContext {
|
|
|
144
137
|
* @method
|
|
145
138
|
*/
|
|
146
139
|
cast(...args) {
|
|
147
|
-
let localCommand = new Command(this.runtimeName, CommandType.Cast, args)
|
|
148
|
-
this.#currentCommand = null
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
140
|
+
let localCommand = new Command(this.runtimeName, CommandType.Cast, args)
|
|
141
|
+
this.#currentCommand = null
|
|
142
|
+
if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
|
|
143
|
+
return new InvocationWsContext(
|
|
144
|
+
this.runtimeName,
|
|
145
|
+
this.connectionData,
|
|
146
|
+
this.#buildCommand(localCommand)
|
|
147
|
+
)
|
|
148
|
+
}
|
|
149
|
+
return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
|
|
154
150
|
}
|
|
155
151
|
|
|
156
152
|
/**
|
|
@@ -163,17 +159,16 @@ class RuntimeContext {
|
|
|
163
159
|
* @method
|
|
164
160
|
*/
|
|
165
161
|
getEnumItem(...args) {
|
|
166
|
-
let localCommand = new Command(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
);
|
|
162
|
+
let localCommand = new Command(this.runtimeName, CommandType.GetEnumItem, args)
|
|
163
|
+
this.#currentCommand = null
|
|
164
|
+
if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
|
|
165
|
+
return new InvocationWsContext(
|
|
166
|
+
this.runtimeName,
|
|
167
|
+
this.connectionData,
|
|
168
|
+
this.#buildCommand(localCommand)
|
|
169
|
+
)
|
|
170
|
+
}
|
|
171
|
+
return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
|
|
177
172
|
}
|
|
178
173
|
|
|
179
174
|
/**
|
|
@@ -186,13 +181,16 @@ class RuntimeContext {
|
|
|
186
181
|
* @method
|
|
187
182
|
*/
|
|
188
183
|
asRef(...args) {
|
|
189
|
-
let localCommand = new Command(this.runtimeName, CommandType.AsRef, args)
|
|
190
|
-
this.#currentCommand = null
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
184
|
+
let localCommand = new Command(this.runtimeName, CommandType.AsRef, args)
|
|
185
|
+
this.#currentCommand = null
|
|
186
|
+
if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
|
|
187
|
+
return new InvocationWsContext(
|
|
188
|
+
this.runtimeName,
|
|
189
|
+
this.connectionData,
|
|
190
|
+
this.#buildCommand(localCommand)
|
|
191
|
+
)
|
|
192
|
+
}
|
|
193
|
+
return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
|
|
196
194
|
}
|
|
197
195
|
|
|
198
196
|
/**
|
|
@@ -205,52 +203,50 @@ class RuntimeContext {
|
|
|
205
203
|
* @method
|
|
206
204
|
*/
|
|
207
205
|
asOut(...args) {
|
|
208
|
-
let localCommand = new Command(this.runtimeName, CommandType.AsOut, args)
|
|
209
|
-
this.#currentCommand = null
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
206
|
+
let localCommand = new Command(this.runtimeName, CommandType.AsOut, args)
|
|
207
|
+
this.#currentCommand = null
|
|
208
|
+
if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
|
|
209
|
+
return new InvocationWsContext(
|
|
210
|
+
this.runtimeName,
|
|
211
|
+
this.connectionData,
|
|
212
|
+
this.#buildCommand(localCommand)
|
|
213
|
+
)
|
|
214
|
+
}
|
|
215
|
+
return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
#buildCommand = function (command) {
|
|
218
219
|
for (let i = 0; i < command.payload.length; i++) {
|
|
219
|
-
command.payload[i] = this.#encapsulatePayloadItem(command.payload[i])
|
|
220
|
+
command.payload[i] = this.#encapsulatePayloadItem(command.payload[i])
|
|
220
221
|
}
|
|
221
|
-
return command.prependArgToPayload(this.#currentCommand)
|
|
222
|
-
}
|
|
222
|
+
return command.prependArgToPayload(this.#currentCommand)
|
|
223
|
+
}
|
|
223
224
|
|
|
224
225
|
#encapsulatePayloadItem = function (payloadItem) {
|
|
225
|
-
|
|
226
|
+
// eslint-disable-next-line valid-typeof
|
|
227
|
+
if (typeof payloadItem === 'Command' || payloadItem instanceof Command) {
|
|
226
228
|
for (let i = 0; i < payloadItem.payload.length; i++) {
|
|
227
|
-
payloadItem.payload[i] = this.#encapsulatePayloadItem(
|
|
228
|
-
payloadItem.payload[i]
|
|
229
|
-
);
|
|
229
|
+
payloadItem.payload[i] = this.#encapsulatePayloadItem(payloadItem.payload[i])
|
|
230
230
|
}
|
|
231
|
-
return payloadItem
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
payloadItem
|
|
235
|
-
) {
|
|
236
|
-
return payloadItem.get_current_command();
|
|
231
|
+
return payloadItem
|
|
232
|
+
// eslint-disable-next-line valid-typeof
|
|
233
|
+
} else if (typeof payloadItem === 'InvocationContext' || payloadItem instanceof InvocationContext) {
|
|
234
|
+
return payloadItem.get_current_command()
|
|
237
235
|
} else if (payloadItem instanceof Array) {
|
|
238
236
|
for (let i = 0; i < payloadItem.length; i++) {
|
|
239
|
-
payloadItem[i] = this.#encapsulatePayloadItem(payloadItem[i])
|
|
237
|
+
payloadItem[i] = this.#encapsulatePayloadItem(payloadItem[i])
|
|
240
238
|
}
|
|
241
|
-
return new Command(this.runtimeName, CommandType.Array, payloadItem)
|
|
239
|
+
return new Command(this.runtimeName, CommandType.Array, payloadItem)
|
|
242
240
|
} else {
|
|
243
|
-
return new Command(this.runtimeName, CommandType.Value, [payloadItem])
|
|
241
|
+
return new Command(this.runtimeName, CommandType.Value, [payloadItem])
|
|
244
242
|
}
|
|
245
|
-
}
|
|
243
|
+
}
|
|
246
244
|
|
|
247
245
|
healthCheck() {
|
|
248
|
-
let localCommand = new Command(this.runtimeName, CommandType.Value, [
|
|
249
|
-
this.#currentCommand = this.#buildCommand(localCommand)
|
|
250
|
-
this.execute()
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
246
|
+
let localCommand = new Command(this.runtimeName, CommandType.Value, ['health_check'])
|
|
247
|
+
this.#currentCommand = this.#buildCommand(localCommand)
|
|
248
|
+
this.execute()
|
|
249
|
+
}
|
|
254
250
|
}
|
|
255
251
|
|
|
256
|
-
module.exports = RuntimeContext
|
|
252
|
+
module.exports = RuntimeContext
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
const RuntimeContext = require(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
16
|
-
throw new Error(
|
|
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 (
|
|
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(
|
|
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 (!
|
|
45
|
-
throw new Error(
|
|
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 (!
|
|
53
|
-
throw new Error(
|
|
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 (!
|
|
61
|
-
throw new Error(
|
|
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 (!
|
|
69
|
-
throw new Error(
|
|
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 (
|
|
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
|
-
|
|
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
|