javonet-ruby-sdk 2.5.7 → 2.5.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Clr/JavonetClrRuntime.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +30 -18
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libpython3.11.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/version.txt +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNativeAuxiliary.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/index.js +64 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/handler/AbstractGeneratorHandler.js +0 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +27 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/GeneratorHandler.js +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +26 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +24 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/GetTypeGeneratorHandler.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/Handlers.js +58 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +15 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassInstanceHandler.js +4 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassNameHandler.js +10 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedMethodNameHandler.js +9 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +9 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedBodyHandler.js +18 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +29 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +21 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +31 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +21 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/internal/CommonGenerator.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/internal/NodejsStringBuilder.js +17 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/internal/SharedHandlerType.js +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/utils/StringUtils.js +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/AbstractHandler.js +12 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetItemHandler.js +3 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetRankHandler.js +5 -7
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetSizeHandler.js +3 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ArrayHandler.js +2 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ArraySetItemHandler.js +4 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/CastingHandler.js +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/CreateClassInstanceHandler.js +36 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/DestructReferenceHandler.js +3 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/EnableNamespaceHandler.js +8 -11
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/EnableTypeHandler.js +8 -10
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetGlobalStaticFieldHandler.js +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetInstanceFieldHandler.js +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetStaticFieldHandler.js +36 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetTypeHandler.js +63 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/Handler.js +12 -11
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeGlobalMethodHandler.js +43 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeInstanceMethodHandler.js +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeStaticMethodHandler.js +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/LoadLibraryHandler.js +9 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ResolveReferenceHandler.js +13 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetGlobalStaticFieldHandler.js +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetInstanceFieldHandler.js +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetStaticFieldHandler.js +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ValueHandler.js +3 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/interpreter/Interpreter.js +142 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/namespaceCache/NamespaceCache.js +12 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/protocol/CommandDeserializer.js +43 -48
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/protocol/CommandSerializer.js +4 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/protocol/TypeDeserializer.js +17 -15
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/protocol/TypeSerializer.js +6 -7
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/receiver/Receiver.js +32 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/receiver/ReceiverNative.js +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/referenceCache/ReferencesCache.js +4 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/transmitter/Transmitter.js +2 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/transmitter/TransmitterWebsocket.js +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/transmitter/TransmitterWrapper.js +34 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/typeCache/TypeCache.js +12 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/webSocketClient/WebSocketClient.js +131 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/declarations.d.ts +64 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/ConfigRuntimeFactory.js +145 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/InvocationContext.js +454 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/Javonet.js +89 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/RuntimeContext.js +266 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/RuntimeFactory.js +78 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/tools/JsonFileResolver.js +101 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/tools/SdkExceptionHelper.js +79 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/Command.js +69 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/CommandType.js +6 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/ConnectionType.js +8 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/ExceptionType.js +6 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/RuntimeLogger.js +30 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/RuntimeName.js +6 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/RuntimeNameHandler.js +34 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/StringEncodingMode.js +9 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/Type.js +5 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/connectionData/IConnectionData.js +4 -6
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/InMemoryConnectionData.js +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/TcpConnectionData.js +77 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/WsConnectionData.js +50 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/exception/ExceptionSerializer.js +24 -31
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/exception/ExceptionThrower.js +36 -30
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/REGEX.js +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/rng.js +12 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/stringify.js +51 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/v4.js +27 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/validate.js +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +90 -90
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +19 -19
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetInstanceFieldHandler.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/GetTypeHandler.py +7 -4
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/Receiver.py +3 -4
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/RuntimeLogger.py +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_instance_field_handler.rb +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/get_type_handler.rb +29 -18
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/load_library_handler.rb +8 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/set_instance_field_handler.rb +7 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/core/handler/set_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_instance_field_handler.rb +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/get_type_handler.rb +29 -18
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/load_library_handler.rb +8 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/set_instance_field_handler.rb +7 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/core/handler/set_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_instance_field_handler.rb +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/get_type_handler.rb +29 -18
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/load_library_handler.rb +8 -0
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/set_instance_field_handler.rb +7 -3
- data/lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/core/handler/set_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
- data/lib/javonet-ruby-sdk/core/handler/get_instance_field_handler.rb +3 -3
- data/lib/javonet-ruby-sdk/core/handler/get_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/core/handler/get_type_handler.rb +29 -18
- data/lib/javonet-ruby-sdk/core/handler/load_library_handler.rb +8 -0
- data/lib/javonet-ruby-sdk/core/handler/set_instance_field_handler.rb +7 -3
- data/lib/javonet-ruby-sdk/core/handler/set_static_field_handler.rb +2 -2
- data/lib/javonet-ruby-sdk/sdk/javonet.rb +11 -1
- metadata +105 -85
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/CreateInstanceGeneratorHandler.js +0 -17
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/GeneratorHandler.js +0 -30
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/GetInstanceFieldGeneratorHandler.js +0 -18
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/GetStaticFieldGeneratorHandler.js +0 -17
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/GetTypeGeneratorHandler.js +0 -26
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/Handlers.js +0 -51
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +0 -18
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +0 -20
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/SharedArgumentNameHandler.js +0 -11
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/SharedReturnTypeHandler.js +0 -10
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedBodyHandler.js +0 -14
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +0 -24
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +0 -19
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +0 -27
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +0 -20
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +0 -27
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +0 -31
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js +0 -26
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/NodejsStringBuilder.js +0 -18
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/CreateClassInstanceHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/GetGlobalStaticFieldHandler.js +0 -39
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/GetInstanceFieldHandler.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/GetStaticFieldHandler.js +0 -36
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/GetTypeHandler.js +0 -47
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/InvokeGlobalMethodHandler.js +0 -47
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/InvokeInstanceMethodHandler.js +0 -40
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/InvokeStaticMethodHandler.js +0 -40
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/ResolveReferenceHandler.js +0 -14
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/SetGlobalStaticFieldHandler.js +0 -44
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/SetInstanceFieldHandler.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/SetStaticFieldHandler.js +0 -33
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/interpreter/Interpreter.js +0 -65
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/receiver/Receiver.js +0 -26
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/transmitter/TransmitterWrapper.js +0 -28
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/webSocketClient/WebSocketClient.js +0 -133
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/Command.js +0 -66
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/ConnectionType.js +0 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/RuntimeLogger.js +0 -27
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/RuntimeNameHandler.js +0 -30
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/StringEncodingMode.js +0 -6
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js +0 -28
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/TcpConnectionData.js +0 -69
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/WsConnectionData.js +0 -33
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/uuid/REGEX.js +0 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/uuid/rng.js +0 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/uuid/stringify.js +0 -51
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/uuid/v4.js +0 -27
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/uuid/validate.js +0 -6
@@ -1,23 +1,20 @@
|
|
1
|
-
const TypeDeserializer = require(
|
2
|
-
const Command = require(
|
3
|
-
const Type = require(
|
4
|
-
const StringEncodingMode = require("../../utils/StringEncodingMode")
|
5
|
-
|
1
|
+
const TypeDeserializer = require('./TypeDeserializer')
|
2
|
+
const Command = require('../../utils/Command')
|
3
|
+
const Type = require('../../utils/Type')
|
6
4
|
|
7
5
|
class CommandDeserializer {
|
8
6
|
constructor(buffer) {
|
9
7
|
this.buffer = buffer
|
10
|
-
this.command = new Command(
|
11
|
-
buffer[0],
|
12
|
-
buffer[10],
|
13
|
-
[]
|
14
|
-
)
|
8
|
+
this.command = new Command(buffer[0], buffer[10], [])
|
15
9
|
this.position = 11
|
16
10
|
}
|
17
11
|
|
12
|
+
/**
|
13
|
+
* @returns {Command}
|
14
|
+
*/
|
18
15
|
deserialize() {
|
19
16
|
while (!this.isAtEnd()) {
|
20
|
-
this.command = this.command.addArgToPayload(
|
17
|
+
this.command = this.command.addArgToPayload(this.readObject(this.buffer[this.position]))
|
21
18
|
}
|
22
19
|
return this.command
|
23
20
|
}
|
@@ -27,7 +24,7 @@ class CommandDeserializer {
|
|
27
24
|
}
|
28
25
|
|
29
26
|
readObject(typeNum) {
|
30
|
-
|
27
|
+
const type = Object.entries(Type).find((entry) => entry[1] === typeNum)[0]
|
31
28
|
switch (type) {
|
32
29
|
case 'JAVONET_COMMAND':
|
33
30
|
return this.readCommand()
|
@@ -36,17 +33,17 @@ class CommandDeserializer {
|
|
36
33
|
case 'JAVONET_INTEGER':
|
37
34
|
return this.readInt()
|
38
35
|
case 'JAVONET_BOOLEAN':
|
39
|
-
return this.readBool()
|
36
|
+
return this.readBool()
|
40
37
|
case 'JAVONET_FLOAT':
|
41
|
-
return this.readFloat()
|
38
|
+
return this.readFloat()
|
42
39
|
case 'JAVONET_BYTE':
|
43
|
-
return this.readByte()
|
40
|
+
return this.readByte()
|
44
41
|
case 'JAVONET_CHAR':
|
45
|
-
return this.readChar()
|
42
|
+
return this.readChar()
|
46
43
|
case 'JAVONET_LONG_LONG':
|
47
|
-
return this.readLongLong()
|
44
|
+
return this.readLongLong()
|
48
45
|
case 'JAVONET_DOUBLE':
|
49
|
-
return this.readDouble()
|
46
|
+
return this.readDouble()
|
50
47
|
case 'JAVONET_UNSIGNED_LONG_LONG':
|
51
48
|
return this.readUllong
|
52
49
|
case 'JAVONET_UNSIGNED_INTEGER':
|
@@ -59,112 +56,110 @@ class CommandDeserializer {
|
|
59
56
|
}
|
60
57
|
|
61
58
|
readCommand() {
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
59
|
+
const p = this.position
|
60
|
+
const numberOfElementsInPayload = TypeDeserializer.deserializeInt(this.buffer.slice(p + 1, p + 5))
|
61
|
+
const runtime = this.buffer[p + 5]
|
62
|
+
const type = this.buffer[p + 6]
|
66
63
|
this.position += 7
|
67
|
-
|
64
|
+
const command = new Command(runtime, type, [])
|
68
65
|
return this.readCommandRecursively(numberOfElementsInPayload, command)
|
69
66
|
}
|
70
67
|
|
71
68
|
readCommandRecursively(numberOfElementsInPayloadLeft, cmd) {
|
72
69
|
if (numberOfElementsInPayloadLeft === 0) return cmd
|
73
|
-
|
70
|
+
const p = this.position
|
74
71
|
cmd = cmd.addArgToPayload(this.readObject(this.buffer[p]))
|
75
72
|
return this.readCommandRecursively(numberOfElementsInPayloadLeft - 1, cmd)
|
76
73
|
}
|
77
74
|
|
78
75
|
readString() {
|
79
76
|
let p = this.position
|
80
|
-
|
81
|
-
|
77
|
+
const stringEncodingMode = this.buffer[p + 1]
|
78
|
+
const size = TypeDeserializer.deserializeInt(this.buffer.slice(p + 2, p + 6))
|
82
79
|
this.position += 6
|
83
80
|
p = this.position
|
84
81
|
this.position += size
|
85
82
|
return TypeDeserializer.deserializeString(stringEncodingMode, this.buffer.slice(p, p + size))
|
86
|
-
|
87
83
|
}
|
88
84
|
|
89
85
|
readInt() {
|
90
|
-
|
86
|
+
const size = 4
|
91
87
|
this.position += 2
|
92
|
-
|
88
|
+
const p = this.position
|
93
89
|
this.position += size
|
94
90
|
return TypeDeserializer.deserializeInt(this.buffer.slice(p, p + size))
|
95
91
|
}
|
96
92
|
|
97
93
|
readBool() {
|
98
|
-
|
94
|
+
const size = 1
|
99
95
|
this.position += 2
|
100
|
-
|
96
|
+
const p = this.position
|
101
97
|
this.position += size
|
102
98
|
return TypeDeserializer.deserializeBool(this.buffer.slice(p, p + size))
|
103
99
|
}
|
104
100
|
|
105
101
|
readFloat() {
|
106
|
-
|
102
|
+
const size = 4
|
107
103
|
this.position += 2
|
108
|
-
|
104
|
+
const p = this.position
|
109
105
|
this.position += size
|
110
106
|
return TypeDeserializer.deserializeFloat(this.buffer.slice(p, p + size))
|
111
107
|
}
|
112
108
|
|
113
109
|
readByte() {
|
114
|
-
|
110
|
+
const size = 1
|
115
111
|
this.position += 2
|
116
|
-
|
112
|
+
const p = this.position
|
117
113
|
this.position += size
|
118
114
|
return TypeDeserializer.deserializeByte(this.buffer.slice(p, p + size))
|
119
115
|
}
|
120
116
|
|
121
117
|
readChar() {
|
122
|
-
|
118
|
+
const size = 1
|
123
119
|
this.position += 2
|
124
|
-
|
120
|
+
const p = this.position
|
125
121
|
this.position += size
|
126
122
|
return TypeDeserializer.deserializeChar(this.buffer.slice(p, p + size))
|
127
123
|
}
|
128
124
|
|
129
125
|
readLongLong() {
|
130
|
-
|
126
|
+
const size = 8
|
131
127
|
this.position += 2
|
132
|
-
|
128
|
+
const p = this.position
|
133
129
|
this.position += size
|
134
130
|
return TypeDeserializer.deserializeLongLong(this.buffer.slice(p, p + size))
|
135
131
|
}
|
136
132
|
|
137
133
|
readDouble() {
|
138
|
-
|
134
|
+
const size = 8
|
139
135
|
this.position += 2
|
140
|
-
|
136
|
+
const p = this.position
|
141
137
|
this.position += size
|
142
138
|
return TypeDeserializer.deserializeDouble(this.buffer.slice(p, p + size))
|
143
139
|
}
|
144
140
|
|
145
141
|
readUllong() {
|
146
|
-
|
142
|
+
const size = 8
|
147
143
|
this.position += 2
|
148
|
-
|
144
|
+
const p = this.position
|
149
145
|
this.position += size
|
150
146
|
return TypeDeserializer.deserializeULLong(this.buffer.slice(p, p + size))
|
151
147
|
}
|
152
148
|
|
153
149
|
readUInt() {
|
154
|
-
|
150
|
+
const size = 4
|
155
151
|
this.position += 2
|
156
|
-
|
152
|
+
const p = this.position
|
157
153
|
this.position += size
|
158
154
|
return TypeDeserializer.deserializeUInt(this.buffer.slice(p, p + size))
|
159
155
|
}
|
160
156
|
|
161
157
|
readNull() {
|
162
|
-
|
158
|
+
const size = 1
|
163
159
|
this.position += 2
|
164
|
-
let p = this.position
|
165
160
|
this.position += size
|
166
161
|
return TypeDeserializer.deserializeNull()
|
167
162
|
}
|
168
163
|
}
|
169
164
|
|
170
|
-
module.exports = CommandDeserializer
|
165
|
+
module.exports = CommandDeserializer
|
@@ -1,11 +1,10 @@
|
|
1
|
-
const Command = require(
|
1
|
+
const Command = require('../../utils/Command')
|
2
2
|
const TypeEncoder = require('./TypeSerializer')
|
3
3
|
const Runtime = require('../../utils/RuntimeName')
|
4
4
|
|
5
5
|
class CommandSerializer {
|
6
6
|
buffer = new Int8Array(2)
|
7
7
|
|
8
|
-
|
9
8
|
serialize(root_command, connectionData, runtimeVersion = 0) {
|
10
9
|
this.buffer[0] = root_command.runtimeName
|
11
10
|
this.buffer[1] = runtimeVersion
|
@@ -15,7 +14,7 @@ class CommandSerializer {
|
|
15
14
|
return this.buffer
|
16
15
|
}
|
17
16
|
|
18
|
-
#serializeRecursively = function(root_command) {
|
17
|
+
#serializeRecursively = function (root_command) {
|
19
18
|
for (let cmd of root_command.payload) {
|
20
19
|
if (cmd instanceof Command) {
|
21
20
|
this.#insertIntoBuffer(TypeEncoder.serializeCommand(cmd))
|
@@ -27,7 +26,7 @@ class CommandSerializer {
|
|
27
26
|
}
|
28
27
|
}
|
29
28
|
|
30
|
-
#insertIntoBuffer = function(arg) {
|
29
|
+
#insertIntoBuffer = function (arg) {
|
31
30
|
let newArray = new Int8Array(this.buffer.length + arg.length)
|
32
31
|
newArray.set(this.buffer, 0)
|
33
32
|
newArray.set(arg, this.buffer.length)
|
@@ -35,4 +34,4 @@ class CommandSerializer {
|
|
35
34
|
}
|
36
35
|
}
|
37
36
|
|
38
|
-
module.exports = CommandSerializer
|
37
|
+
module.exports = CommandSerializer
|
@@ -1,7 +1,6 @@
|
|
1
1
|
const Command = require('../../utils/Command')
|
2
|
-
const Type = require('../../utils/Type')
|
3
2
|
const StringEncodingMode = require('../../utils/StringEncodingMode')
|
4
|
-
const {
|
3
|
+
const { Buffer } = require('buffer')
|
5
4
|
|
6
5
|
class TypeDeserializer {
|
7
6
|
static deserializeCommand(encodedCommand) {
|
@@ -12,11 +11,12 @@ class TypeDeserializer {
|
|
12
11
|
switch (stringEncodingMode) {
|
13
12
|
case StringEncodingMode.ASCII:
|
14
13
|
return String.fromCharCode(...encodedString)
|
15
|
-
case StringEncodingMode.UTF8:
|
16
|
-
|
14
|
+
case StringEncodingMode.UTF8: {
|
15
|
+
const decoder = new TextDecoder('UTF-8')
|
17
16
|
return decoder.decode(new Uint8Array(encodedString))
|
18
|
-
|
19
|
-
|
17
|
+
}
|
18
|
+
case StringEncodingMode.UTF16: {
|
19
|
+
let str = ''
|
20
20
|
let newBuffer = new Uint8Array(encodedString)
|
21
21
|
for (let i = 0; i < newBuffer.length; i++) {
|
22
22
|
newBuffer[i] = encodedString[i]
|
@@ -24,20 +24,21 @@ class TypeDeserializer {
|
|
24
24
|
for (let i = 0; i < encodedString.length; i = i + 2) {
|
25
25
|
str += String.fromCharCode(newBuffer[i] + 256 * newBuffer[i + 1])
|
26
26
|
}
|
27
|
-
return str
|
27
|
+
return str
|
28
|
+
}
|
28
29
|
case StringEncodingMode.UTF32:
|
29
|
-
throw
|
30
|
+
throw 'Type utf32-encoded string not supported in JavaScript'
|
30
31
|
default:
|
31
|
-
throw
|
32
|
+
throw 'Unknown string encoding - not supported in JavaScript'
|
32
33
|
}
|
33
34
|
}
|
34
35
|
|
35
36
|
static deserializeInt(encodedInt) {
|
36
37
|
return (
|
37
|
-
(encodedInt[0] &
|
38
|
-
|
39
|
-
|
40
|
-
|
38
|
+
(encodedInt[0] & 0xff) |
|
39
|
+
((encodedInt[1] & 0xff) << 8) |
|
40
|
+
((encodedInt[2] & 0xff) << 16) |
|
41
|
+
((encodedInt[3] & 0xff) << 24)
|
41
42
|
)
|
42
43
|
}
|
43
44
|
|
@@ -73,8 +74,9 @@ class TypeDeserializer {
|
|
73
74
|
return Buffer.from(encodedUInt).readUIntLE(0, 4)
|
74
75
|
}
|
75
76
|
|
76
|
-
|
77
|
-
|
77
|
+
// eslint-disable-next-line no-unused-vars
|
78
|
+
static deserializeNull(encodedNull = null) {
|
79
|
+
return null
|
78
80
|
}
|
79
81
|
}
|
80
82
|
|
@@ -1,27 +1,26 @@
|
|
1
1
|
const Command = require('../../utils/Command')
|
2
2
|
const Type = require('../../utils/Type')
|
3
3
|
const StringEncodingMode = require('../../utils/StringEncodingMode')
|
4
|
+
const { Buffer } = require('buffer')
|
4
5
|
|
5
|
-
const
|
6
|
-
let encoder = new util.TextEncoder();
|
6
|
+
const encoder = new TextEncoder()
|
7
7
|
|
8
8
|
class TypeSerializer {
|
9
|
-
|
10
9
|
static encodePrimitive(payload_item) {
|
11
10
|
if (payload_item === null) {
|
12
11
|
return TypeSerializer.serializeNull()
|
13
12
|
}
|
14
13
|
if (payload_item instanceof Command) {
|
15
14
|
return TypeSerializer.serializeCommand(payload_item)
|
16
|
-
} else if (typeof
|
15
|
+
} else if (typeof payload_item === 'number' || payload_item instanceof Number) {
|
17
16
|
if (Number.isInteger(payload_item)) {
|
18
17
|
return TypeSerializer.serializeInt(payload_item)
|
19
18
|
} else {
|
20
19
|
return TypeSerializer.serializeDouble(payload_item)
|
21
20
|
}
|
22
|
-
} else if (typeof
|
21
|
+
} else if (typeof payload_item === 'string' || payload_item instanceof String) {
|
23
22
|
return TypeSerializer.serializeString(payload_item)
|
24
|
-
} else if (typeof
|
23
|
+
} else if (typeof payload_item === 'boolean' || payload_item instanceof Boolean) {
|
25
24
|
return TypeSerializer.serializeBool(payload_item)
|
26
25
|
} else {
|
27
26
|
throw 'Unknown type - not supported in JavaScript'
|
@@ -134,4 +133,4 @@ class TypeSerializer {
|
|
134
133
|
}
|
135
134
|
}
|
136
135
|
|
137
|
-
module.exports = TypeSerializer
|
136
|
+
module.exports = TypeSerializer
|
@@ -0,0 +1,32 @@
|
|
1
|
+
const { InMemoryConnectionData, CommandSerializer, Interpreter } = require('../../..')
|
2
|
+
|
3
|
+
let RuntimeLogger
|
4
|
+
|
5
|
+
class Receiver {
|
6
|
+
static connectionData = new InMemoryConnectionData()
|
7
|
+
Receiver() {
|
8
|
+
if (!RuntimeLogger) {
|
9
|
+
RuntimeLogger = require('../../utils/RuntimeLogger')
|
10
|
+
}
|
11
|
+
RuntimeLogger.printRuntimeInfo()
|
12
|
+
}
|
13
|
+
|
14
|
+
/**
|
15
|
+
* @param {number[]} messageByteArray
|
16
|
+
*/
|
17
|
+
static sendCommand(messageByteArray) {
|
18
|
+
return new CommandSerializer().serialize(
|
19
|
+
new Interpreter().process(messageByteArray),
|
20
|
+
this.connectionData
|
21
|
+
)
|
22
|
+
}
|
23
|
+
|
24
|
+
static heartBeat(messageByteArray) {
|
25
|
+
let response = new Int8Array(2)
|
26
|
+
response[0] = messageByteArray[11]
|
27
|
+
response[1] = messageByteArray[12] - 2
|
28
|
+
return response
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
module.exports = Receiver
|
@@ -1,8 +1,8 @@
|
|
1
|
-
const Receiver = require('./Receiver')
|
1
|
+
const Receiver = require('./Receiver')
|
2
2
|
|
3
3
|
class ReceiverNative {
|
4
4
|
static sendCommand(messageByteArray) {
|
5
|
-
|
5
|
+
return Receiver.sendCommand(messageByteArray)
|
6
6
|
}
|
7
7
|
|
8
8
|
static heartBeat(messageByteArray) {
|
@@ -10,4 +10,4 @@ class ReceiverNative {
|
|
10
10
|
}
|
11
11
|
}
|
12
12
|
|
13
|
-
global.ReceiverNative = ReceiverNative
|
13
|
+
global.ReceiverNative = ReceiverNative
|
data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/referenceCache/ReferencesCache.js
RENAMED
@@ -1,9 +1,9 @@
|
|
1
|
+
const v4 = require('../../utils/uuid/v4')
|
2
|
+
|
1
3
|
let _cache = {}
|
2
4
|
let _instance = null
|
3
|
-
const v4 = require('../../utils/uuid/v4')
|
4
5
|
|
5
6
|
class ReferencesCache {
|
6
|
-
|
7
7
|
static getInstance() {
|
8
8
|
if (_instance === null) {
|
9
9
|
_instance = new ReferencesCache()
|
@@ -23,8 +23,8 @@ class ReferencesCache {
|
|
23
23
|
|
24
24
|
deleteReference(referenceGuid) {
|
25
25
|
delete _cache[referenceGuid]
|
26
|
-
return 0
|
26
|
+
return 0
|
27
27
|
}
|
28
28
|
}
|
29
29
|
|
30
|
-
module.exports = ReferencesCache
|
30
|
+
module.exports = ReferencesCache
|
@@ -1,16 +1,15 @@
|
|
1
1
|
const wrapper = require('./TransmitterWrapper')
|
2
2
|
|
3
3
|
class Transmitter {
|
4
|
-
|
5
4
|
static initialize() {
|
6
5
|
return wrapper.initialize()
|
7
6
|
}
|
8
7
|
|
9
|
-
|
8
|
+
static sendCommand(messageArray) {
|
10
9
|
return wrapper.sendCommand(messageArray)
|
11
10
|
}
|
12
11
|
|
13
|
-
static activate = function(licenseKey) {
|
12
|
+
static activate = function (licenseKey) {
|
14
13
|
return wrapper.activate(licenseKey)
|
15
14
|
}
|
16
15
|
|
@@ -0,0 +1,33 @@
|
|
1
|
+
const WebSocketClient = require('../webSocketClient/WebSocketClient')
|
2
|
+
|
3
|
+
/** @typedef {import('../../../../core/lib/declarations').WsConnectionData} WsConnectionData */
|
4
|
+
|
5
|
+
class TransmitterWebsocket {
|
6
|
+
/**
|
7
|
+
* @returns {void}
|
8
|
+
*/
|
9
|
+
static initialize() {}
|
10
|
+
|
11
|
+
/**
|
12
|
+
* @returns {void}
|
13
|
+
*/
|
14
|
+
static setConfigSource() {}
|
15
|
+
|
16
|
+
/**
|
17
|
+
* @returns {void}
|
18
|
+
*/
|
19
|
+
static activate() {}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* @async
|
23
|
+
* @param {number[]} messageByteArray
|
24
|
+
* @param {WsConnectionData} connectionData
|
25
|
+
* @returns {Promise<number[]>} responseByteArray
|
26
|
+
*/
|
27
|
+
static async sendCommand(messageByteArray, connectionData) {
|
28
|
+
const { hostname } = connectionData
|
29
|
+
return new WebSocketClient(hostname).send(messageByteArray)
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
module.exports = TransmitterWebsocket
|
@@ -0,0 +1,34 @@
|
|
1
|
+
let library
|
2
|
+
|
3
|
+
class TransmitterWrapper {
|
4
|
+
static initialize() {
|
5
|
+
if (process.platform === 'win32')
|
6
|
+
library = require(
|
7
|
+
`${require('path').resolve(__dirname, '../../../../')}/build/Release/JavonetNodejsRuntimeAddon.node`
|
8
|
+
)
|
9
|
+
else if (process.platform === 'darwin')
|
10
|
+
library = require(
|
11
|
+
`${require('path').resolve(__dirname, '../../../../')}/build/Release/JavonetNodejsRuntimeAddon.node`
|
12
|
+
)
|
13
|
+
else
|
14
|
+
library = require(
|
15
|
+
`${require('path').resolve(__dirname, '../../../../')}/build/Release/JavonetNodejsRuntimeAddon.node`
|
16
|
+
)
|
17
|
+
let binariesRootPath = String(`${require('path').resolve(__dirname, '../../../../')}`)
|
18
|
+
return library.initializeTransmitter(binariesRootPath)
|
19
|
+
}
|
20
|
+
|
21
|
+
static activate(licenseKey) {
|
22
|
+
return library.activate(licenseKey)
|
23
|
+
}
|
24
|
+
|
25
|
+
static sendCommand(messageArray) {
|
26
|
+
return library.sendCommand(messageArray)
|
27
|
+
}
|
28
|
+
|
29
|
+
static setConfigSource(configSource) {
|
30
|
+
return library.setConfigSource(configSource)
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
module.exports = TransmitterWrapper
|
@@ -1,39 +1,39 @@
|
|
1
1
|
class TypeCache {
|
2
|
-
static _instance = null
|
3
|
-
typeCache = []
|
2
|
+
static _instance = null
|
3
|
+
typeCache = []
|
4
4
|
|
5
5
|
constructor() {
|
6
6
|
if (TypeCache._instance === null) {
|
7
|
-
TypeCache._instance = this
|
7
|
+
TypeCache._instance = this
|
8
8
|
}
|
9
|
-
return TypeCache._instance
|
9
|
+
return TypeCache._instance
|
10
10
|
}
|
11
11
|
|
12
12
|
cacheType(typRegex) {
|
13
|
-
this.typeCache.push(typRegex)
|
13
|
+
this.typeCache.push(typRegex)
|
14
14
|
}
|
15
15
|
|
16
16
|
isTypeCacheEmpty() {
|
17
|
-
return this.typeCache.length === 0
|
17
|
+
return this.typeCache.length === 0
|
18
18
|
}
|
19
19
|
|
20
20
|
isTypeAllowed(typeToCheck) {
|
21
21
|
for (let pattern of this.typeCache) {
|
22
22
|
if (new RegExp(pattern).test(typeToCheck.name)) {
|
23
|
-
return true
|
23
|
+
return true
|
24
24
|
}
|
25
25
|
}
|
26
|
-
return false
|
26
|
+
return false
|
27
27
|
}
|
28
28
|
|
29
29
|
getCachedTypes() {
|
30
|
-
return this.typeCache
|
30
|
+
return this.typeCache
|
31
31
|
}
|
32
32
|
|
33
33
|
clearCache() {
|
34
|
-
this.typeCache = []
|
35
|
-
return 0
|
34
|
+
this.typeCache = []
|
35
|
+
return 0
|
36
36
|
}
|
37
37
|
}
|
38
38
|
|
39
|
-
module.exports = TypeCache
|
39
|
+
module.exports = TypeCache
|