javonet-ruby-sdk 2.5.15 → 2.5.16
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.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/libJavonetActivationService.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/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/libJavonetActivationService.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/libUtils.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/JavonetPhpRuntimeNative.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/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/JavonetPhpRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPython2RuntimeNative.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/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/JavonetPhpRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPython2RuntimeNative.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/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/delegatesCache/DelegatesCache.cjs +59 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/AbstractHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ArrayGetItemHandler.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ArrayGetRankHandler.cjs +52 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ArrayGetSizeHandler.cjs +52 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ArrayHandler.cjs +41 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ArraySetItemHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/CastingHandler.cjs +34 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ConvertTypeHandler.cjs +53 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/CreateClassInstanceHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/DestructReferenceHandler.cjs +42 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/EnableNamespaceHandler.cjs +56 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/EnableTypeHandler.cjs +58 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetGlobalStaticFieldHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetInstanceFieldHandler.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetInstanceMethodAsDelegateHandler.cjs +83 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetStaticFieldHandler.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetStaticMethodAsDelegateHandler.cjs +85 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetTypeHandler.cjs +87 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/Handler.cjs +136 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeDelegateHandler.cjs +53 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeGlobalFunctionHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeInstanceMethodHandler.cjs +64 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeStaticMethodHandler.cjs +64 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/LoadLibraryHandler.cjs +71 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/PassDelegateHandler.cjs +164 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ResolveReferenceHandler.cjs +41 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/SetGlobalStaticFieldHandler.cjs +63 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/SetInstanceFieldHandler.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/SetStaticFieldHandler.cjs +59 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ValueHandler.cjs +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/interpreter/Interpreter.cjs +163 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/namespaceCache/NamespaceCache.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/CommandDeserializer.cjs +188 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/CommandSerializer.cjs +64 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/TypeDeserializer.cjs +91 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/TypeSerializer.cjs +153 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/receiver/Receiver.cjs +65 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/receiver/ReceiverNative.cjs +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/referenceCache/ReferencesCache.cjs +65 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/transmitter/Transmitter.cjs +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/transmitter/TransmitterWebsocket.cjs +55 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/transmitter/TransmitterWebsocketBrowser.cjs +59 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/transmitter/TransmitterWrapper.cjs +75 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/typeCache/TypeCache.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/webSocketClient/WebSocketClient.cjs +150 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/webSocketClient/WebSocketClientBrowser.cjs +153 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/ConfigRuntimeFactory.cjs +209 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/InvocationContext.cjs +495 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/Javonet.cjs +150 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/RuntimeContext.cjs +304 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/RuntimeFactory.cjs +98 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/browser/ConfigSourceResolver.cjs +153 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/browser/SdkExceptionHelper.cjs +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/nodejs/JsonFileResolver.cjs +120 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/nodejs/SdkExceptionHelper.cjs +100 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/delegatesCache/DelegatesCache.d.ts +21 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/AbstractHandler.d.ts +7 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ArrayGetItemHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ArrayGetRankHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ArrayGetSizeHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ArrayHandler.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ArraySetItemHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/CastingHandler.d.ts +3 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ConvertTypeHandler.d.ts +22 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/CreateClassInstanceHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/DestructReferenceHandler.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/EnableNamespaceHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/EnableTypeHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetGlobalStaticFieldHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetInstanceFieldHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetInstanceMethodAsDelegateHandler.d.ts +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetStaticFieldHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetStaticMethodAsDelegateHandler.d.ts +36 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetTypeHandler.d.ts +16 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/Handler.d.ts +27 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/InvokeDelegateHandler.d.ts +15 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/InvokeGlobalFunctionHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/InvokeInstanceMethodHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/InvokeStaticMethodHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/LoadLibraryHandler.d.ts +7 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/PassDelegateHandler.d.ts +104 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ResolveReferenceHandler.d.ts +12 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/SetGlobalStaticFieldHandler.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/SetInstanceFieldHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/SetStaticFieldHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ValueHandler.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/interpreter/Interpreter.d.ts +27 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/namespaceCache/NamespaceCache.d.ts +9 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/CommandDeserializer.d.ts +25 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/CommandSerializer.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/TypeDeserializer.d.ts +15 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/TypeSerializer.d.ts +17 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/receiver/Receiver.d.ts +14 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/receiver/ReceiverNative.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/referenceCache/ReferencesCache.d.ts +24 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/transmitter/Transmitter.d.ts +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/transmitter/TransmitterWebsocket.d.ts +21 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/transmitter/TransmitterWebsocketBrowser.d.ts +30 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/transmitter/TransmitterWrapper.d.ts +11 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/typeCache/TypeCache.d.ts +9 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/webSocketClient/WebSocketClient.d.ts +50 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/webSocketClient/WebSocketClientBrowser.d.ts +63 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{lib/sdk/ConfigRuntimeFactory.js → dist/types/sdk/ConfigRuntimeFactory.d.ts} +19 -101
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/InvocationContext.d.ts +207 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{lib/sdk/Javonet.js → dist/types/sdk/Javonet.d.ts} +17 -59
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/RuntimeContext.d.ts +103 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{lib/sdk/RuntimeFactory.js → dist/types/sdk/RuntimeFactory.d.ts} +12 -41
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/browser/ConfigSourceResolver.d.ts +46 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/browser/SdkExceptionHelper.d.ts +7 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/nodejs/JsonFileResolver.d.ts +13 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/nodejs/SdkExceptionHelper.d.ts +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Command.d.ts +42 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/CommandType.d.ts +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/ConnectionType.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/CustomError.d.ts +3 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/ExceptionType.d.ts +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Runtime.d.ts +24 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/RuntimeLogger.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/RuntimeLoggerBrowser.d.ts +15 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/RuntimeName.d.ts +13 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/RuntimeNameHandler.d.ts +7 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/StringEncodingMode.d.ts +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Type.d.ts +14 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/connectionData/IConnectionData.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/connectionData/InMemoryConnectionData.d.ts +16 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/connectionData/WsConnectionData.d.ts +31 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/exception/ExceptionSerializer.d.ts +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/exception/ExceptionThrower.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/guid/generateGuid.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/TypesConverter.d.ts +48 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/connectionData/TcpConnectionData.d.ts +25 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/uuid/REGEX.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/uuid/rng.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/uuid/stringify.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/uuid/v4.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/uuid/validate.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Command.cjs +87 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/CommandType.cjs +74 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/ConnectionType.cjs +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/CustomError.cjs +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/ExceptionType.cjs +40 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Runtime.cjs +103 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/RuntimeLogger.cjs +63 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/RuntimeLoggerBrowser.cjs +58 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/RuntimeName.cjs +43 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/RuntimeNameHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/StringEncodingMode.cjs +36 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Type.cjs +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/connectionData/IConnectionData.cjs +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/connectionData/InMemoryConnectionData.cjs +52 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/connectionData/WsConnectionData.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/exception/ExceptionSerializer.cjs +82 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/exception/ExceptionThrower.cjs +111 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/guid/generateGuid.cjs +34 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/TypesConverter.cjs +102 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/connectionData/TcpConnectionData.cjs +111 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/uuid/REGEX.cjs +28 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/uuid/rng.cjs +47 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/uuid/stringify.cjs +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/uuid/v4.cjs +43 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/uuid/validate.cjs +31 -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/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/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 +26 -26
- data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
- metadata +164 -79
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/index.js +0 -66
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/delegatesCache/DelegatesCache.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/AbstractHandler.js +0 -41
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ArrayGetItemHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ArrayGetRankHandler.js +0 -28
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ArrayGetSizeHandler.js +0 -29
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ArrayHandler.js +0 -18
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ArraySetItemHandler.js +0 -43
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/CastingHandler.js +0 -10
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ConvertTypeHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/CreateClassInstanceHandler.js +0 -36
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/DestructReferenceHandler.js +0 -19
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/EnableNamespaceHandler.js +0 -34
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/EnableTypeHandler.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetGlobalStaticFieldHandler.js +0 -37
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetInstanceFieldHandler.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetInstanceMethodAsDelegateHandler.js +0 -73
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetStaticFieldHandler.js +0 -36
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetStaticMethodAsDelegateHandler.js +0 -74
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetTypeHandler.js +0 -63
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/Handler.js +0 -98
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeDelegateHandler.js +0 -36
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeGlobalFunctionHandler.js +0 -39
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeInstanceMethodHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeStaticMethodHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/LoadLibraryHandler.js +0 -48
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/PassDelegateHandler.js +0 -157
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ResolveReferenceHandler.js +0 -13
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetGlobalStaticFieldHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetInstanceFieldHandler.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetStaticFieldHandler.js +0 -33
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ValueHandler.js +0 -13
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/interpreter/Interpreter.js +0 -142
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/namespaceCache/NamespaceCache.js +0 -39
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/protocol/CommandDeserializer.js +0 -181
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/protocol/CommandSerializer.js +0 -50
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/protocol/TypeDeserializer.js +0 -83
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/protocol/TypeSerializer.js +0 -143
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/receiver/Receiver.js +0 -32
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/receiver/ReceiverNative.js +0 -13
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/referenceCache/ReferencesCache.js +0 -30
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/transmitter/Transmitter.js +0 -21
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/transmitter/TransmitterWebsocket.js +0 -33
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/transmitter/TransmitterWrapper.js +0 -47
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/typeCache/TypeCache.js +0 -39
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/webSocketClient/WebSocketClient.js +0 -136
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/declarations.d.ts +0 -64
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/InvocationContext.js +0 -485
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/RuntimeContext.js +0 -300
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/tools/JsonFileResolver.js +0 -101
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/tools/SdkExceptionHelper.js +0 -79
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/Command.js +0 -69
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/CommandType.js +0 -47
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/ConnectionType.js +0 -8
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/CustomError.js +0 -8
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/ExceptionType.js +0 -13
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/RuntimeLogger.js +0 -30
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/RuntimeName.js +0 -16
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/RuntimeNameHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/StringEncodingMode.js +0 -9
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/Type.js +0 -17
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/TypesConverter.js +0 -91
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/IConnectionData.js +0 -15
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/InMemoryConnectionData.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/TcpConnectionData.js +0 -77
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/WsConnectionData.js +0 -50
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/exception/ExceptionSerializer.js +0 -64
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/exception/ExceptionThrower.js +0 -95
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/guid/generateGuid.js +0 -9
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/REGEX.js +0 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/rng.js +0 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/stringify.js +0 -51
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/v4.js +0 -27
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/validate.js +0 -6
@@ -0,0 +1,120 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
+
};
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
+
}
|
16
|
+
return to;
|
17
|
+
};
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
+
var JsonFileResolver_exports = {};
|
20
|
+
__export(JsonFileResolver_exports, {
|
21
|
+
JsonFileResolver: () => JsonFileResolver
|
22
|
+
});
|
23
|
+
module.exports = __toCommonJS(JsonFileResolver_exports);
|
24
|
+
var import_Runtime = require("../../../utils/Runtime.cjs");
|
25
|
+
const import_meta = {};
|
26
|
+
const requireDynamic = (0, import_Runtime.getRequire)(import_meta.url);
|
27
|
+
let fsExtra = null;
|
28
|
+
function hasOwnProperty(obj, key) {
|
29
|
+
return Object.prototype.hasOwnProperty.call(obj, key);
|
30
|
+
}
|
31
|
+
class JsonFileResolver {
|
32
|
+
constructor(path) {
|
33
|
+
this.path = path;
|
34
|
+
try {
|
35
|
+
if (!fsExtra) {
|
36
|
+
fsExtra = requireDynamic("fs-extra");
|
37
|
+
}
|
38
|
+
const data = fsExtra.readFileSync(this.path, "utf8");
|
39
|
+
this.jsonObject = JSON.parse(data);
|
40
|
+
} catch (err) {
|
41
|
+
throw err;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
getLicenseKey() {
|
45
|
+
if (!hasOwnProperty(this.jsonObject, "licenseKey")) {
|
46
|
+
throw new Error(
|
47
|
+
"License key not found in configuration file. Please check your configuration file."
|
48
|
+
);
|
49
|
+
}
|
50
|
+
return this.jsonObject.licenseKey;
|
51
|
+
}
|
52
|
+
getRuntimes() {
|
53
|
+
return this.jsonObject.runtimes;
|
54
|
+
}
|
55
|
+
getRuntime(runtimeName, configName) {
|
56
|
+
const runtimes = this.getRuntimes();
|
57
|
+
if (hasOwnProperty(runtimes, runtimeName)) {
|
58
|
+
const runtime = runtimes[runtimeName];
|
59
|
+
if (Array.isArray(runtime)) {
|
60
|
+
for (let item of runtime) {
|
61
|
+
if (item.name === configName) {
|
62
|
+
return item;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
} else if (runtime.name === configName) {
|
66
|
+
return runtime;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
throw new Error(
|
70
|
+
`Runtime config ${configName} not found in configuration file for runtime ${runtimeName}. Please check your configuration file.`
|
71
|
+
);
|
72
|
+
}
|
73
|
+
getChannel(runtimeName, configName) {
|
74
|
+
const runtime = this.getRuntime(runtimeName, configName);
|
75
|
+
if (!hasOwnProperty(runtime, "channel")) {
|
76
|
+
throw new Error(
|
77
|
+
`Channel key not found in configuration file for config ${configName}. Please check your configuration file.`
|
78
|
+
);
|
79
|
+
}
|
80
|
+
return runtime.channel;
|
81
|
+
}
|
82
|
+
getChannelType(runtimeName, configName) {
|
83
|
+
const channel = this.getChannel(runtimeName, configName);
|
84
|
+
if (!hasOwnProperty(channel, "type")) {
|
85
|
+
throw new Error(
|
86
|
+
`Channel type not found in configuration file for config ${configName}. Please check your configuration file.`
|
87
|
+
);
|
88
|
+
}
|
89
|
+
return channel.type;
|
90
|
+
}
|
91
|
+
getChannelHost(runtimeName, configName) {
|
92
|
+
const channel = this.getChannel(runtimeName, configName);
|
93
|
+
if (!hasOwnProperty(channel, "host")) {
|
94
|
+
throw new Error(
|
95
|
+
`Channel host not found in configuration file for config ${configName}. Please check your configuration file.`
|
96
|
+
);
|
97
|
+
}
|
98
|
+
return channel.host;
|
99
|
+
}
|
100
|
+
getChannelPort(runtimeName, configName) {
|
101
|
+
const channel = this.getChannel(runtimeName, configName);
|
102
|
+
if (!hasOwnProperty(channel, "port")) {
|
103
|
+
throw new Error(
|
104
|
+
`Channel port not found in configuration file for config ${configName}. Please check your configuration file.`
|
105
|
+
);
|
106
|
+
}
|
107
|
+
return channel.port;
|
108
|
+
}
|
109
|
+
getModules(runtimeName, configName) {
|
110
|
+
const runtime = this.getRuntime(runtimeName, configName);
|
111
|
+
if (hasOwnProperty(runtime, "modules")) {
|
112
|
+
return runtime.modules;
|
113
|
+
}
|
114
|
+
return "";
|
115
|
+
}
|
116
|
+
}
|
117
|
+
// Annotate the CommonJS export names for ESM import in node:
|
118
|
+
0 && (module.exports = {
|
119
|
+
JsonFileResolver
|
120
|
+
});
|
@@ -0,0 +1,100 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
+
};
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
+
}
|
16
|
+
return to;
|
17
|
+
};
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
+
var SdkExceptionHelper_exports = {};
|
20
|
+
__export(SdkExceptionHelper_exports, {
|
21
|
+
sendExceptionToAppInsights: () => sendExceptionToAppInsights
|
22
|
+
});
|
23
|
+
module.exports = __toCommonJS(SdkExceptionHelper_exports);
|
24
|
+
var import_Runtime = require("../../../utils/Runtime.cjs");
|
25
|
+
const import_meta = {};
|
26
|
+
const requireDynamic = (0, import_Runtime.getRequire)(import_meta.url);
|
27
|
+
let https = null;
|
28
|
+
let os = null;
|
29
|
+
const address = "https://dc.services.visualstudio.com/v2/track";
|
30
|
+
if ((0, import_Runtime.isNodejsRuntime)()) {
|
31
|
+
try {
|
32
|
+
https = requireDynamic("https", import_meta.url);
|
33
|
+
os = requireDynamic("os", import_meta.url);
|
34
|
+
} catch (error) {
|
35
|
+
throw error;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
function sendExceptionToAppInsights(e, licenseKey) {
|
39
|
+
return new Promise((resolve, reject) => {
|
40
|
+
try {
|
41
|
+
const instrumentationKey = "2c751560-90c8-40e9-b5dd-534566514723";
|
42
|
+
const javonetVersion = "2.0.0";
|
43
|
+
const nodeName = os.hostname();
|
44
|
+
const operationName = "JavonetSdkException";
|
45
|
+
const osName = os.platform();
|
46
|
+
const callingRuntimeName = "Nodejs";
|
47
|
+
const eventMessage = e.message;
|
48
|
+
const nowGMT = (/* @__PURE__ */ new Date()).toISOString();
|
49
|
+
const jsonPayload = JSON.stringify({
|
50
|
+
name: "AppEvents",
|
51
|
+
time: nowGMT,
|
52
|
+
iKey: instrumentationKey,
|
53
|
+
tags: {
|
54
|
+
"ai.application.ver": javonetVersion,
|
55
|
+
"ai.cloud.roleInstance": nodeName,
|
56
|
+
"ai.operation.id": "0",
|
57
|
+
"ai.operation.parentId": "0",
|
58
|
+
"ai.operation.name": operationName,
|
59
|
+
"ai.internal.sdkVersion": "javonet:" + javonetVersion,
|
60
|
+
"ai.internal.nodeName": nodeName
|
61
|
+
},
|
62
|
+
data: {
|
63
|
+
baseType: "EventData",
|
64
|
+
baseData: {
|
65
|
+
ver: 2,
|
66
|
+
name: eventMessage,
|
67
|
+
properties: {
|
68
|
+
OperatingSystem: osName,
|
69
|
+
LicenseKey: licenseKey,
|
70
|
+
CallingTechnology: callingRuntimeName
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
});
|
75
|
+
const options = {
|
76
|
+
method: "POST",
|
77
|
+
headers: {
|
78
|
+
"Content-Type": "application/json",
|
79
|
+
"Content-Length": jsonPayload.length
|
80
|
+
}
|
81
|
+
};
|
82
|
+
const req = https.request(address, options, (res) => {
|
83
|
+
console.log("POST Response Code ::", res.statusCode);
|
84
|
+
resolve(res.statusCode);
|
85
|
+
});
|
86
|
+
req.on("error", (error) => {
|
87
|
+
console.error(error);
|
88
|
+
reject(error);
|
89
|
+
});
|
90
|
+
req.write(jsonPayload);
|
91
|
+
req.end();
|
92
|
+
} catch (error) {
|
93
|
+
reject(error);
|
94
|
+
}
|
95
|
+
});
|
96
|
+
}
|
97
|
+
// Annotate the CommonJS export names for ESM import in node:
|
98
|
+
0 && (module.exports = {
|
99
|
+
sendExceptionToAppInsights
|
100
|
+
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
export const delegatesCacheInstance: DelegatesCache;
|
2
|
+
/**
|
3
|
+
* A cache for storing and retrieving delegates.
|
4
|
+
*/
|
5
|
+
declare class DelegatesCache {
|
6
|
+
cache: Map<any, any>;
|
7
|
+
/**
|
8
|
+
* Adds a delegate to the cache and returns its unique ID.
|
9
|
+
* @param {Function} delegateInstance - The delegate function to store.
|
10
|
+
* @returns {string} The unique ID for the delegate.
|
11
|
+
*/
|
12
|
+
addDelegate(delegateInstance: Function): string;
|
13
|
+
/**
|
14
|
+
* Retrieves a delegate by its unique ID.
|
15
|
+
* @param {string} delegateId - The unique ID of the delegate.
|
16
|
+
* @returns {Function} The delegate function.
|
17
|
+
* @throws {Error} If the delegate is not found.
|
18
|
+
*/
|
19
|
+
getDelegate(delegateId: string): Function;
|
20
|
+
}
|
21
|
+
export {};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* ConvertTypeHandler class handles the conversion of JType to Type.
|
3
|
+
*/
|
4
|
+
export class ConvertTypeHandler extends AbstractHandler {
|
5
|
+
/**
|
6
|
+
* Minimum required parameters count for the command.
|
7
|
+
* @type {number}
|
8
|
+
*/
|
9
|
+
requiredParametersCount: number;
|
10
|
+
/**
|
11
|
+
* Processes the given command to convert JType to Type.
|
12
|
+
* @param {Object} command - The command to process.
|
13
|
+
* @returns {any} The converted type.
|
14
|
+
*/
|
15
|
+
process(command: Object): any;
|
16
|
+
/**
|
17
|
+
* Validates the command to ensure it has enough parameters.
|
18
|
+
* @param {Object} command - The command to validate.
|
19
|
+
*/
|
20
|
+
validateCommand(command: Object): void;
|
21
|
+
}
|
22
|
+
import { AbstractHandler } from './AbstractHandler.js';
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* Handles retrieving an instance method as a delegate.
|
3
|
+
*/
|
4
|
+
export class GetInstanceMethodAsDelegateHandler extends AbstractHandler {
|
5
|
+
/** @type {Function|null} */
|
6
|
+
method: Function | null;
|
7
|
+
/** @type {number} */
|
8
|
+
requiredParametersCount: number;
|
9
|
+
/** @type {Array<*>} */
|
10
|
+
args: Array<any>;
|
11
|
+
/** @type {Object|null} */
|
12
|
+
instance: Object | null;
|
13
|
+
/**
|
14
|
+
* Processes a command to retrieve an instance method as a delegate.
|
15
|
+
* @param {Object} command - The command containing payload data.
|
16
|
+
* @param {Array<*>} command.payload - The payload containing instance, method name, and arguments.
|
17
|
+
* @returns {Function} The delegate for the instance method.
|
18
|
+
* @throws {Error} If the parameters mismatch or the method cannot be found.
|
19
|
+
*/
|
20
|
+
process(command: {
|
21
|
+
payload: Array<any>;
|
22
|
+
}): Function;
|
23
|
+
/**
|
24
|
+
* Retrieves the method from the type.
|
25
|
+
* @param {Object} type - The class or constructor to search for the method.
|
26
|
+
* @param {string} methodName - The name of the method.
|
27
|
+
* @returns {Function|null} The found method or null if not found.
|
28
|
+
*/
|
29
|
+
getMethod(type: Object, methodName: string): Function | null;
|
30
|
+
/**
|
31
|
+
* Creates an error message when the method is not found.
|
32
|
+
* @param {Object} type - The class or constructor.
|
33
|
+
* @param {string} methodName - The method name.
|
34
|
+
* @returns {Error} The error with detailed message.
|
35
|
+
*/
|
36
|
+
createMethodNotFoundError(type: Object, methodName: string): Error;
|
37
|
+
}
|
38
|
+
import { AbstractHandler } from './AbstractHandler.js';
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/**
|
2
|
+
* Handles retrieving a static method as a delegate.
|
3
|
+
*/
|
4
|
+
export class GetStaticMethodAsDelegateHandler extends AbstractHandler {
|
5
|
+
/** @type {Array<*>} */
|
6
|
+
args: Array<any>;
|
7
|
+
/** @type {Function|null} */
|
8
|
+
method: Function | null;
|
9
|
+
/** @type {number} */
|
10
|
+
requiredParametersCount: number;
|
11
|
+
/**
|
12
|
+
* Processes a command to retrieve a static method as a delegate.
|
13
|
+
* @param {Command} command - The command containing payload data.
|
14
|
+
* @param {Array<*>} command.payload - The payload containing type, method name, and arguments.
|
15
|
+
* @returns {Function} The delegate for the static method.
|
16
|
+
* @throws {Error} If the parameters mismatch or the method cannot be found.
|
17
|
+
*/
|
18
|
+
process(command: Command): Function;
|
19
|
+
/**
|
20
|
+
* Retrieves the method from the type.
|
21
|
+
* @param {Object} type - The class or constructor to search for the method.
|
22
|
+
* @param {string} methodName - The name of the method.
|
23
|
+
* @param {Array<Function>} argsType - The argument types.
|
24
|
+
* @param {Object} modifier - Parameter modifier (not used in JS implementation).
|
25
|
+
* @returns {Function|null} The found method or null if not found.
|
26
|
+
*/
|
27
|
+
getMethod(type: Object, methodName: string): Function | null;
|
28
|
+
/**
|
29
|
+
* Creates an error message when the method is not found.
|
30
|
+
* @param {Object} type - The class or constructor.
|
31
|
+
* @param {string} methodName - The method name.
|
32
|
+
* @returns {Error} The error with detailed message.
|
33
|
+
*/
|
34
|
+
createMethodNotFoundError(type: Object, methodName: string): Error;
|
35
|
+
}
|
36
|
+
import { AbstractHandler } from './AbstractHandler.js';
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export class GetTypeHandler extends AbstractHandler {
|
2
|
+
/** @type {number} */
|
3
|
+
requiredParametersCount: number;
|
4
|
+
/** @type {NamespaceCache | null} */
|
5
|
+
namespaceCache: NamespaceCache | null;
|
6
|
+
/** @type {TypeCache | null} */
|
7
|
+
typeCache: TypeCache | null;
|
8
|
+
/** @type {LoadLibraryHandler | null} */
|
9
|
+
loadLibaryHandler: LoadLibraryHandler | null;
|
10
|
+
process(command: any): any;
|
11
|
+
getAvailableTypes(): any[];
|
12
|
+
}
|
13
|
+
import { AbstractHandler } from './AbstractHandler.js';
|
14
|
+
import { NamespaceCache } from '../namespaceCache/NamespaceCache.js';
|
15
|
+
import { TypeCache } from '../typeCache/TypeCache.js';
|
16
|
+
import { LoadLibraryHandler } from './LoadLibraryHandler.js';
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export class Handler {
|
2
|
+
/**
|
3
|
+
* @param {import('../interpreter/Interpreter.js').Interpreter} interpreter
|
4
|
+
*/
|
5
|
+
constructor(interpreter: import("../interpreter/Interpreter.js").Interpreter);
|
6
|
+
interpreter: import("../interpreter/Interpreter.js").Interpreter;
|
7
|
+
/**
|
8
|
+
* @param {{ commandType: number; payload: any[]; runtimeName: number; }} command
|
9
|
+
*/
|
10
|
+
handleCommand(command: {
|
11
|
+
commandType: number;
|
12
|
+
payload: any[];
|
13
|
+
runtimeName: number;
|
14
|
+
}): Command;
|
15
|
+
/**
|
16
|
+
* @param {any} response
|
17
|
+
* @param {number} runtimeName
|
18
|
+
* @returns {Command}
|
19
|
+
*/
|
20
|
+
parseCommand(response: any, runtimeName: number): Command;
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* @type {Record<number, AbstractHandler>}
|
24
|
+
*/
|
25
|
+
export const handlers: Record<number, AbstractHandler>;
|
26
|
+
import { Command } from '../../utils/Command.js';
|
27
|
+
import { AbstractHandler } from './AbstractHandler.js';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/**
|
2
|
+
* Handles invoking a delegate by GUID.
|
3
|
+
*/
|
4
|
+
export class InvokeDelegateHandler extends AbstractHandler {
|
5
|
+
/** @type {number} */
|
6
|
+
requiredParametersCount: number;
|
7
|
+
/**
|
8
|
+
* Processes a command to invoke a delegate.
|
9
|
+
* @param {Command} command - The command containing payload data.
|
10
|
+
* @returns {*} The result of the delegate invocation.
|
11
|
+
* @throws {Error} If the parameters mismatch or the delegate cannot be found.
|
12
|
+
*/
|
13
|
+
process(command: Command): any;
|
14
|
+
}
|
15
|
+
import { AbstractHandler } from './AbstractHandler.js';
|
@@ -0,0 +1,104 @@
|
|
1
|
+
export type Command = import("../../utils/Command.js").Command;
|
2
|
+
export type Interpreter = import("../interpreter/Interpreter.js").Interpreter;
|
3
|
+
/**
|
4
|
+
* @typedef {import('../../utils/Command.js').Command} Command
|
5
|
+
* @typedef {import('../interpreter/Interpreter.js').Interpreter} Interpreter
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* PassDelegateHandler class responsible for processing a command to create a delegate.
|
9
|
+
*/
|
10
|
+
export class PassDelegateHandler extends AbstractHandler {
|
11
|
+
constructor(interpreter?: null);
|
12
|
+
/** @type {Interpreter | null | undefined} */
|
13
|
+
interpreter: Interpreter | null | undefined;
|
14
|
+
/**
|
15
|
+
* Minimum required parameters count for the command.
|
16
|
+
* @type {number}
|
17
|
+
*/
|
18
|
+
requiredParametersCount: number;
|
19
|
+
/**S
|
20
|
+
* Processes the given command to create and compile a delegate.
|
21
|
+
* @param {Command} command - The command to process.
|
22
|
+
* @returns {Function} The compiled delegate function.
|
23
|
+
*/
|
24
|
+
process(command: Command): Function;
|
25
|
+
/**
|
26
|
+
* Validates the command to ensure it has enough parameters.
|
27
|
+
* @param {Command} command - The command to validate.
|
28
|
+
*/
|
29
|
+
validateCommand(command: Command): void;
|
30
|
+
/**
|
31
|
+
* Retrieves the arguments from the command payload.
|
32
|
+
* @param {Command} command - The command containing the payload.
|
33
|
+
* @returns {Array<any>} The extracted arguments.
|
34
|
+
*/
|
35
|
+
getArguments(command: Command): Array<any>;
|
36
|
+
/**
|
37
|
+
* Extracts argument types from the arguments array.
|
38
|
+
* @param {Array<any>} args - The arguments array.
|
39
|
+
* @returns {Array<any>} The argument types.
|
40
|
+
*/
|
41
|
+
getArgumentTypes(args: Array<any>): Array<any>;
|
42
|
+
/**
|
43
|
+
* Retrieves the return type from the arguments array.
|
44
|
+
* @param {Array<any>} args - The arguments array.
|
45
|
+
* @returns {Function} The return type.
|
46
|
+
*/
|
47
|
+
getReturnType(args: Array<any>): Function;
|
48
|
+
/**
|
49
|
+
* Creates parameter expressions from argument types.
|
50
|
+
* @param {Array<any>} argsTypes - The argument types.
|
51
|
+
* @returns {Array<any>} The parameter expressions.
|
52
|
+
*/
|
53
|
+
createParameters(argsTypes: Array<any>): Array<any>;
|
54
|
+
/**
|
55
|
+
* Creates an array of arguments for the delegate.
|
56
|
+
* @param {string} delegateGuid - The delegate identifier.
|
57
|
+
* @param {Array<any>} parameters - The parameter expressions.
|
58
|
+
* @returns {Array<any>} The arguments array.
|
59
|
+
*/
|
60
|
+
createArgsArray(delegateGuid: string, parameters: Array<any>): Array<any>;
|
61
|
+
/**
|
62
|
+
* Creates a command expression.
|
63
|
+
* @param {string} callingRuntimeName - The runtime name.
|
64
|
+
* @param {Array<any>} payload - The arguments array.
|
65
|
+
* @returns {Object} The command object.
|
66
|
+
*/
|
67
|
+
createCommand(callingRuntimeName: string, payload: Array<any>): Object;
|
68
|
+
/**
|
69
|
+
* Creates a method call to execute the command.
|
70
|
+
* @param {Command} command - The command object.
|
71
|
+
* @returns {any} The response object.
|
72
|
+
*/
|
73
|
+
createExecuteCall(command: Command): any;
|
74
|
+
/**
|
75
|
+
* Retrieves the response payload from the execution call.
|
76
|
+
* @param {Object<string, any>} executeCall - Object containing the execution call.
|
77
|
+
* @returns {Array<any>} The response payload.
|
78
|
+
*/
|
79
|
+
getResponse(executeCall: {
|
80
|
+
[x: string]: any;
|
81
|
+
}): Array<any>;
|
82
|
+
/**
|
83
|
+
* Converts the first element of the response to the return type.
|
84
|
+
* @param {Array<any>} response - The response payload.
|
85
|
+
* @param {Function} returnType - The return type.
|
86
|
+
* @returns {*} The converted first element.
|
87
|
+
*/
|
88
|
+
convertFirstElement(response: Array<any>, returnType: Function): any;
|
89
|
+
/**
|
90
|
+
* Creates a block of expressions for the delegate.
|
91
|
+
* @param {Function} returnType - The return type.
|
92
|
+
* @param {*} convertedFirstElement - The converted first element.
|
93
|
+
* @returns {Object} The block expression.
|
94
|
+
*/
|
95
|
+
createBlock(returnType: Function, convertedFirstElement: any): Object;
|
96
|
+
/**
|
97
|
+
* Creates a delegate type.
|
98
|
+
* @param {Array<any>} parameters - The parameter expressions.
|
99
|
+
* @param {Function} returnType - The return type.
|
100
|
+
* @returns {Function} The delegate type.
|
101
|
+
*/
|
102
|
+
createDelegateType(parameters: Array<any>, returnType: Function): Function;
|
103
|
+
}
|
104
|
+
import { AbstractHandler } from './AbstractHandler.js';
|
data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ResolveReferenceHandler.d.ts
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
export type Command = import("../../utils/Command.js").Command;
|
2
|
+
/**
|
3
|
+
* @typedef {import('../../utils/Command.js').Command} Command
|
4
|
+
*/
|
5
|
+
export class ResolveReferenceHandler extends AbstractHandler {
|
6
|
+
/**
|
7
|
+
* @param {Command} command
|
8
|
+
* @returns {any}
|
9
|
+
*/
|
10
|
+
process(command: Command): any;
|
11
|
+
}
|
12
|
+
import { AbstractHandler } from './AbstractHandler.js';
|