javonet-nodejs-sdk 2.5.10 → 2.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
- package/Binaries/Clr/JavonetClrRuntime.dll +0 -0
- package/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
- package/Binaries/Native/Linux/ARM64/version.txt +1 -1
- package/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +30 -30
- package/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/X64/libUtils.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
- package/Binaries/Native/Linux/X64/version.txt +1 -1
- package/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
- package/Binaries/Native/MacOs/X64/version.txt +1 -1
- package/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
- package/Binaries/Native/Windows/ARM64/version.txt +0 -0
- package/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/X64/Utils.dll +0 -0
- package/Binaries/Native/Windows/X64/version.txt +1 -1
- package/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/X86/Utils.dll +0 -0
- package/Binaries/Native/Windows/X86/version.txt +1 -1
- package/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
- package/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
- package/Binaries/Nodejs/lib/core/handler/Handler.js +6 -9
- package/Binaries/Nodejs/lib/core/handler/InvokeGlobalFunctionHandler.js +39 -0
- package/Binaries/Nodejs/lib/core/interpreter/Interpreter.js +11 -15
- package/Binaries/Nodejs/lib/core/protocol/TypeSerializer.js +7 -0
- package/Binaries/Nodejs/lib/core/transmitter/Transmitter.js +4 -4
- package/Binaries/Nodejs/lib/core/transmitter/TransmitterWrapper.js +27 -14
- package/Binaries/Nodejs/lib/sdk/ConfigRuntimeFactory.js +1 -1
- package/Binaries/Nodejs/lib/sdk/InvocationContext.js +7 -17
- package/Binaries/Nodejs/lib/sdk/Javonet.js +17 -1
- package/Binaries/Nodejs/lib/sdk/RuntimeContext.js +27 -0
- package/Binaries/Nodejs/lib/utils/CommandType.js +1 -2
- package/Binaries/Nodejs/lib/utils/CustomError.js +8 -0
- package/Binaries/Perl/Linux/X64/deps/bin/yamlpp-load +11 -0
- package/Binaries/Perl/Linux/X64/deps/bin/yamlpp-load-dump +11 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Common.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Constructor.pm +7 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Dumper.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Emitter.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Exception.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Grammar.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Highlight.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Lexer.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Loader.pm +3 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Parser.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Perl.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Reader.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Render.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Representer.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema/Binary.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema/Catchall.pm +76 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema/Core.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema/Failsafe.pm +23 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema/Include.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema/JSON.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema/Merge.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema/Perl.pm +13 -9
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema/Tie/IxHash.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema/YAML1_1.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Schema.pm +10 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Type/MergeKey.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Writer/File.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP/Writer.pm +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/YAML/PP.pm +39 -5
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Attribute-Util-1.07/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Capture-Tiny-0.50/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-0.25/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-XS-0.10/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Clone-0.47/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-Cmp-0.010/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-OptList-0.114/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-UUID-1.227/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-GlobalDestruction-0.14/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-OverloadInfo-0.007/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-StackTrace-2.05/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Dist-CheckConflicts-0.11/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Eval-Closure-0.14/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Config-0.010/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Helpers-0.028/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-InstallPaths-0.014/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-CheckLib-0.31/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-Platypus-2.10/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/File-Which-1.27/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/IPC-System-Simple-1.30/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/MRO-Compat-0.15/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-0.4234/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-Tiny-0.051/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Implementation-0.09/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-0.016/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-Conflicts-0.003/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Moose-2.2207/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Nice-Try-v1.3.15/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-1.281/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-XS-0.910/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-DeprecationManager-0.18/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-0.40/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-XS-0.30/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Params-Util-1.102/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Path-Tiny-0.146/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Safe-Isa-1.000010/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-List-Utils-1.68/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scope-Guard-0.21/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-0.991/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-Progressive-0.001013/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Install-0.929/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Task-Weaken-1.06/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Fatal-0.017/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Try-Tiny-0.32/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Want-0.29/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/{YAML-PP-v0.38.0 → YAML-PP-v0.39.0}/MYMETA.json +39 -35
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/YAML-PP-v0.39.0/install.json +1 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/aliased-0.34/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/autobox-v3.0.2/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/YAML/PP/.packlist +2 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +91 -91
- package/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/CommandHandler/InvokeGlobalFunctionHandler.pm +63 -0
- package/Binaries/Perl/Linux/X64/lib/Javonet/Core/Handler/PerlHandler.pm +7 -0
- package/Binaries/Perl/Linux/X64/lib/Javonet/Core/Transmitter/PerlTransmitter.pm +6 -1
- package/Binaries/Perl/Linux/X64/lib/Javonet/Core/Transmitter/PerlTransmitterWrapper.pm +15 -0
- package/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +22 -4
- package/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/PerlCommandType.pm +6 -1
- package/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Internal/Abstract/AbstractRuntimeContext.pm +17 -0
- package/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Internal/RuntimeContext.pm +21 -0
- package/Binaries/Perl/Windows/X64/deps/bin/yamlpp-load +11 -0
- package/Binaries/Perl/Windows/X64/deps/bin/yamlpp-load-dump +11 -0
- package/Binaries/Perl/Windows/X64/deps/bin/yamlpp-load-dump.bat +11 -0
- package/Binaries/Perl/Windows/X64/deps/bin/yamlpp-load.bat +11 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Attribute-Util-1.07/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-Cmp-0.010/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-UUID-1.227/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Nice-Try-v1.3.15/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-1.281/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-XS-0.910/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Safe-Isa-1.000010/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Test-Fatal-0.017/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Want-0.29/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/{YAML-PP-v0.38.0 → YAML-PP-v0.39.0}/MYMETA.json +39 -35
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/YAML-PP-v0.39.0/install.json +1 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/autobox-v3.0.2/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/YAML/PP/.packlist +1 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +24 -24
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Common.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Constructor.pm +7 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Dumper.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Emitter.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Exception.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Grammar.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Highlight.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Lexer.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Loader.pm +3 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Parser.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Perl.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Reader.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Render.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Representer.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema/Binary.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema/Catchall.pm +76 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema/Core.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema/Failsafe.pm +23 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema/Include.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema/JSON.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema/Merge.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema/Perl.pm +13 -9
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema/Tie/IxHash.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema/YAML1_1.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Schema.pm +10 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Type/MergeKey.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Writer/File.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP/Writer.pm +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/YAML/PP.pm +39 -5
- package/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/CommandHandler/InvokeGlobalFunctionHandler.pm +63 -0
- package/Binaries/Perl/Windows/X64/lib/Javonet/Core/Handler/PerlHandler.pm +7 -0
- package/Binaries/Perl/Windows/X64/lib/Javonet/Core/Transmitter/PerlTransmitter.pm +6 -1
- package/Binaries/Perl/Windows/X64/lib/Javonet/Core/Transmitter/PerlTransmitterWrapper.pm +15 -0
- package/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +22 -4
- package/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/PerlCommandType.pm +6 -1
- package/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Internal/Abstract/AbstractRuntimeContext.pm +17 -0
- package/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Internal/RuntimeContext.pm +21 -0
- package/Binaries/Python/javonet/core/handler/Handler.py +2 -0
- package/Binaries/Python/javonet/core/handler/InvokeGlobalFunctionHandler.py +46 -0
- package/Binaries/Python/javonet/core/transmitter/Transmitter.py +5 -1
- package/Binaries/Python/javonet/core/transmitter/TransmitterWrapper.py +20 -1
- package/Binaries/Python/javonet/utils/CommandType.py +2 -1
- package/Binaries/Ruby/Linux/X64/core/handler/handler.rb +3 -0
- package/Binaries/Ruby/Linux/X64/core/handler/invoke_global_function_handler.rb +45 -0
- package/Binaries/Ruby/Linux/X64/core/handler/invoke_instance_method_handler.rb +9 -5
- package/Binaries/Ruby/Linux/X64/core/handler/invoke_static_method_handler.rb +4 -3
- package/Binaries/Ruby/Linux/X64/core/receiver/receiver.rb +6 -2
- package/Binaries/Ruby/Linux/X64/core/transmitter/transmitter.rb +10 -0
- package/Binaries/Ruby/Linux/X64/core/transmitter/transmitter_wrapper.rb +1 -0
- package/Binaries/Ruby/Linux/X64/utils/command_type.rb +18 -3
- package/Binaries/Ruby/MacOs/X64/core/handler/handler.rb +3 -0
- package/Binaries/Ruby/MacOs/X64/core/handler/invoke_global_function_handler.rb +45 -0
- package/Binaries/Ruby/MacOs/X64/core/handler/invoke_instance_method_handler.rb +9 -5
- package/Binaries/Ruby/MacOs/X64/core/handler/invoke_static_method_handler.rb +4 -3
- package/Binaries/Ruby/MacOs/X64/core/receiver/receiver.rb +6 -2
- package/Binaries/Ruby/MacOs/X64/core/transmitter/transmitter.rb +10 -0
- package/Binaries/Ruby/MacOs/X64/core/transmitter/transmitter_wrapper.rb +1 -0
- package/Binaries/Ruby/MacOs/X64/utils/command_type.rb +18 -3
- package/Binaries/Ruby/Windows/X64/core/handler/handler.rb +3 -0
- package/Binaries/Ruby/Windows/X64/core/handler/invoke_global_function_handler.rb +45 -0
- package/Binaries/Ruby/Windows/X64/core/handler/invoke_instance_method_handler.rb +9 -5
- package/Binaries/Ruby/Windows/X64/core/handler/invoke_static_method_handler.rb +4 -3
- package/Binaries/Ruby/Windows/X64/core/receiver/receiver.rb +6 -2
- package/Binaries/Ruby/Windows/X64/core/transmitter/transmitter.rb +10 -0
- package/Binaries/Ruby/Windows/X64/core/transmitter/transmitter_wrapper.rb +1 -0
- package/Binaries/Ruby/Windows/X64/utils/command_type.rb +18 -3
- package/Binaries/version.txt +1 -1
- package/addon/JavonetNodejsRuntimeAddon.cpp +114 -16
- package/addon/JavonetNodejsRuntimeAddon.h +12 -2
- package/dist/Javonet.d.ts +119 -688
- package/dist/lib/core/handler/Handler.js +6 -9
- package/dist/lib/core/handler/InvokeGlobalFunctionHandler.js +39 -0
- package/dist/lib/core/interpreter/Interpreter.js +11 -15
- package/dist/lib/core/protocol/TypeSerializer.js +7 -0
- package/dist/lib/core/transmitter/Transmitter.js +4 -4
- package/dist/lib/core/transmitter/TransmitterWrapper.js +27 -14
- package/dist/lib/sdk/ConfigRuntimeFactory.js +1 -1
- package/dist/lib/sdk/InvocationContext.js +7 -17
- package/dist/lib/sdk/Javonet.js +17 -1
- package/dist/lib/sdk/RuntimeContext.js +27 -0
- package/dist/lib/utils/CommandType.js +1 -2
- package/dist/lib/utils/CustomError.js +8 -0
- package/lib/core/handler/Handler.js +6 -9
- package/lib/core/handler/InvokeGlobalFunctionHandler.js +39 -0
- package/lib/core/transmitter/Transmitter.js +4 -4
- package/lib/core/transmitter/TransmitterWrapper.js +27 -14
- package/lib/sdk/ConfigRuntimeFactory.js +1 -1
- package/lib/sdk/Javonet.js +17 -1
- package/package.json +1 -1
- package/Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler.js +0 -11
- package/Binaries/Nodejs/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +0 -27
- package/Binaries/Nodejs/lib/core/generator/handler/GeneratorHandler.js +0 -38
- package/Binaries/Nodejs/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +0 -26
- package/Binaries/Nodejs/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +0 -24
- package/Binaries/Nodejs/lib/core/generator/handler/GetTypeGeneratorHandler.js +0 -39
- package/Binaries/Nodejs/lib/core/generator/handler/Handlers.js +0 -58
- package/Binaries/Nodejs/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +0 -33
- package/Binaries/Nodejs/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +0 -35
- package/Binaries/Nodejs/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +0 -35
- package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +0 -15
- package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +0 -12
- package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedClassNameHandler.js +0 -44
- package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedMethodNameHandler.js +0 -42
- package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +0 -9
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedBodyHandler.js +0 -18
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +0 -29
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +0 -21
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +0 -31
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +0 -21
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +0 -33
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +0 -39
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +0 -39
- package/Binaries/Nodejs/lib/core/generator/internal/CommonGenerator.js +0 -39
- package/Binaries/Nodejs/lib/core/generator/internal/NodejsStringBuilder.js +0 -17
- package/Binaries/Nodejs/lib/core/generator/internal/SharedHandlerType.js +0 -10
- package/Binaries/Nodejs/lib/core/generator/utils/StringUtils.js +0 -7
- package/Binaries/Nodejs/lib/core/handler/InvokeGlobalMethodHandler.js +0 -43
- package/Binaries/Nodejs/lib/core/handler/InvokeStandaloneMethodHandler.js +0 -56
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/YAML-PP-v0.38.0/install.json +0 -1
- package/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Internal/Abstract/AbstractModuleContext.pm +0 -11
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/YAML-PP-v0.38.0/install.json +0 -1
- package/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Internal/Abstract/AbstractModuleContext.pm +0 -11
- package/dist/lib/core/generator/handler/AbstractGeneratorHandler.js +0 -11
- package/dist/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +0 -27
- package/dist/lib/core/generator/handler/GeneratorHandler.js +0 -38
- package/dist/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +0 -26
- package/dist/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +0 -24
- package/dist/lib/core/generator/handler/GetTypeGeneratorHandler.js +0 -39
- package/dist/lib/core/generator/handler/Handlers.js +0 -58
- package/dist/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +0 -33
- package/dist/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +0 -35
- package/dist/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +0 -35
- package/dist/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +0 -15
- package/dist/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +0 -12
- package/dist/lib/core/generator/handler/shared/SharedClassNameHandler.js +0 -44
- package/dist/lib/core/generator/handler/shared/SharedMethodNameHandler.js +0 -42
- package/dist/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +0 -9
- package/dist/lib/core/generator/handler/shared/body/SharedBodyHandler.js +0 -18
- package/dist/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +0 -29
- package/dist/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +0 -21
- package/dist/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +0 -31
- package/dist/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +0 -21
- package/dist/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +0 -33
- package/dist/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +0 -39
- package/dist/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +0 -39
- package/dist/lib/core/generator/internal/CommonGenerator.js +0 -39
- package/dist/lib/core/generator/internal/NodejsStringBuilder.js +0 -17
- package/dist/lib/core/generator/internal/SharedHandlerType.js +0 -10
- package/dist/lib/core/generator/utils/StringUtils.js +0 -7
- package/dist/lib/core/handler/InvokeGlobalMethodHandler.js +0 -43
- package/dist/lib/core/handler/InvokeStandaloneMethodHandler.js +0 -56
- package/lib/core/generator/handler/AbstractGeneratorHandler.js +0 -11
- package/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +0 -27
- package/lib/core/generator/handler/GeneratorHandler.js +0 -38
- package/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +0 -26
- package/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +0 -24
- package/lib/core/generator/handler/GetTypeGeneratorHandler.js +0 -39
- package/lib/core/generator/handler/Handlers.js +0 -58
- package/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +0 -33
- package/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +0 -35
- package/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +0 -35
- package/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +0 -15
- package/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +0 -12
- package/lib/core/generator/handler/shared/SharedClassNameHandler.js +0 -44
- package/lib/core/generator/handler/shared/SharedMethodNameHandler.js +0 -42
- package/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +0 -9
- package/lib/core/generator/handler/shared/body/SharedBodyHandler.js +0 -18
- package/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +0 -29
- package/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +0 -21
- package/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +0 -31
- package/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +0 -21
- package/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +0 -33
- package/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +0 -39
- package/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +0 -39
- package/lib/core/generator/internal/CommonGenerator.js +0 -39
- package/lib/core/generator/internal/NodejsStringBuilder.js +0 -17
- package/lib/core/generator/internal/SharedHandlerType.js +0 -10
- package/lib/core/generator/utils/StringUtils.js +0 -7
- package/lib/core/handler/InvokeGlobalMethodHandler.js +0 -43
- package/lib/core/handler/InvokeStandaloneMethodHandler.js +0 -56
- package/lib/sdk/RuntimeContext.js +0 -36
|
@@ -92,7 +92,9 @@ class InvocationContext {
|
|
|
92
92
|
execute() {
|
|
93
93
|
this.#interpreter = new Interpreter()
|
|
94
94
|
this.#responseCommand = this.#interpreter.execute(this.#currentCommand, this.#connectionData)
|
|
95
|
-
|
|
95
|
+
if (this.#responseCommand === undefined) {
|
|
96
|
+
throw new Error('responseCommand is undefined in Invocation Context execute method')
|
|
97
|
+
}
|
|
96
98
|
if (this.#responseCommand.commandType === CommandType.Exception) {
|
|
97
99
|
throw ExceptionThrower.throwException(this.#responseCommand)
|
|
98
100
|
}
|
|
@@ -122,22 +124,6 @@ class InvocationContext {
|
|
|
122
124
|
return this.#createInstanceContext(localCommand)
|
|
123
125
|
}
|
|
124
126
|
|
|
125
|
-
/**
|
|
126
|
-
* Invokes a standalone method on the target runtime.
|
|
127
|
-
* @param {string} methodName - The name of the method to invoke.
|
|
128
|
-
* @param {...any} args - Method arguments.
|
|
129
|
-
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the static method.
|
|
130
|
-
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/invoking-static-method)
|
|
131
|
-
* @method
|
|
132
|
-
*/
|
|
133
|
-
invokeStandaloneMethod(methodName, ...args) {
|
|
134
|
-
let localCommand = new Command(this.#runtimeName, CommandType.InvokeStandaloneMethod, [
|
|
135
|
-
methodName,
|
|
136
|
-
...args,
|
|
137
|
-
])
|
|
138
|
-
return this.#createInstanceContext(localCommand)
|
|
139
|
-
}
|
|
140
|
-
|
|
141
127
|
/**
|
|
142
128
|
* Retrieves the value of a static field from the target runtime.
|
|
143
129
|
* @param {string} fieldName - The name of the field to get.
|
|
@@ -480,6 +466,10 @@ class InvocationWsContext extends InvocationContext {
|
|
|
480
466
|
this.#connectionData
|
|
481
467
|
)
|
|
482
468
|
|
|
469
|
+
if (this.#responseCommand === undefined) {
|
|
470
|
+
throw new Error('responseCommand is undefined in Invocation Context execute method')
|
|
471
|
+
}
|
|
472
|
+
|
|
483
473
|
if (this.#responseCommand.commandType === CommandType.Exception) {
|
|
484
474
|
throw ExceptionThrower.throwException(this.#responseCommand)
|
|
485
475
|
}
|
|
@@ -4,6 +4,7 @@ const Transmitter = require('../core/transmitter/Transmitter')
|
|
|
4
4
|
const ConfigRuntimeFactory = require('./ConfigRuntimeFactory')
|
|
5
5
|
const RuntimeLogger = require('../utils/RuntimeLogger')
|
|
6
6
|
const TcpConnectionData = require('../utils/connectionData/TcpConnectionData')
|
|
7
|
+
const { mkdirSync } = require('node:fs')
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* The Javonet class is a singleton class that serves as the entry point for interacting with Javonet.
|
|
@@ -14,7 +15,6 @@ const TcpConnectionData = require('../utils/connectionData/TcpConnectionData')
|
|
|
14
15
|
class Javonet {
|
|
15
16
|
// Static block to initialize the Transmitter
|
|
16
17
|
static {
|
|
17
|
-
Transmitter.initialize()
|
|
18
18
|
//SDKExceptionHelper.sendExceptionToAppInsights("SdkMessage", "Javonet SDK initialized");
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -80,6 +80,22 @@ class Javonet {
|
|
|
80
80
|
static setConfigSource(configSource) {
|
|
81
81
|
Transmitter.setConfigSource(configSource)
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Sets the working directory for the Javonet SDK.
|
|
86
|
+
*
|
|
87
|
+
* @param {string} path - The working directory.
|
|
88
|
+
*/
|
|
89
|
+
static setJavonetWorkingDirectory(path) {
|
|
90
|
+
path = path.replace(/\\/g, "/");
|
|
91
|
+
if (!path.endsWith("/")) {
|
|
92
|
+
path += "/";
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
mkdirSync(path, { recursive: true, mode: 0o700 });
|
|
96
|
+
Transmitter.setJavonetWorkingDirectory(path)
|
|
97
|
+
}
|
|
98
|
+
|
|
83
99
|
}
|
|
84
100
|
|
|
85
101
|
module.exports = {
|
|
@@ -103,6 +103,9 @@ class RuntimeContext {
|
|
|
103
103
|
execute() {
|
|
104
104
|
this.#responseCommand = this.#interpreter.execute(this.#currentCommand, this.connectionData)
|
|
105
105
|
this.#currentCommand = null
|
|
106
|
+
if (this.#responseCommand === undefined) {
|
|
107
|
+
throw new Error('responseCommand is undefined in Runtime Context execute method')
|
|
108
|
+
}
|
|
106
109
|
if (this.#responseCommand.commandType === CommandType.Exception) {
|
|
107
110
|
throw ExceptionThrower.throwException(this.#responseCommand)
|
|
108
111
|
}
|
|
@@ -233,6 +236,30 @@ class RuntimeContext {
|
|
|
233
236
|
return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand))
|
|
234
237
|
}
|
|
235
238
|
|
|
239
|
+
/**
|
|
240
|
+
* Invokes a function from the called runtime. This method is used when working with functions from the called runtime.
|
|
241
|
+
* The arguments include the function name and the arguments to be passed to the function.
|
|
242
|
+
* After invoking the function, the result can be used for further operations.
|
|
243
|
+
* @param {string} functionName - The name of the function to invoke.
|
|
244
|
+
* @param {...any} args - The arguments to be passed to the function.
|
|
245
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to invoke the function.
|
|
246
|
+
* @see [Invoking Functions Guide](https://www.javonet.com/guides/v2/csharp/functions/invoking-functions)
|
|
247
|
+
* @method
|
|
248
|
+
*/
|
|
249
|
+
invokeGlobalFunction(functionName, ...args) {
|
|
250
|
+
let localCommand = new Command(this.runtimeName, CommandType.InvokeGlobalFunction, [functionName, ...args]);
|
|
251
|
+
this.#currentCommand = null;
|
|
252
|
+
if (this.connectionData.connectionType === ConnectionType.WEB_SOCKET) {
|
|
253
|
+
return new InvocationWsContext(
|
|
254
|
+
this.runtimeName,
|
|
255
|
+
this.connectionData,
|
|
256
|
+
this.#buildCommand(localCommand)
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
return new InvocationContext(this.runtimeName, this.connectionData, this.#buildCommand(localCommand));
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
|
|
236
263
|
#buildCommand = function (command) {
|
|
237
264
|
for (let i = 0; i < command.payload.length; i++) {
|
|
238
265
|
command.payload[i] = this.#encapsulatePayloadItem(command.payload[i])
|
|
@@ -16,7 +16,7 @@ const CommandType = /** @type {const} */ ({
|
|
|
16
16
|
GetInstanceField: 13,
|
|
17
17
|
Optimize: 14,
|
|
18
18
|
GenerateLib: 15,
|
|
19
|
-
|
|
19
|
+
InvokeGlobalFunction: 16,
|
|
20
20
|
DestructReference: 17,
|
|
21
21
|
ArrayReference: 18,
|
|
22
22
|
ArrayGetItem: 19,
|
|
@@ -42,7 +42,6 @@ const CommandType = /** @type {const} */ ({
|
|
|
42
42
|
PassDelegate: 39,
|
|
43
43
|
InvokeDelegate: 40,
|
|
44
44
|
ConvertType: 41,
|
|
45
|
-
InvokeStandaloneMethod: 42,
|
|
46
45
|
})
|
|
47
46
|
|
|
48
47
|
module.exports = CommandType
|
|
@@ -13,7 +13,10 @@ GetOptions(
|
|
|
13
13
|
'help|h' => \my $help,
|
|
14
14
|
'boolean=s' => \my $boolean,
|
|
15
15
|
'cyclic' => \my $cyclic,
|
|
16
|
+
'duplicate-keys' => \my $duplicate_keys,
|
|
16
17
|
'merge' => \my $merge,
|
|
18
|
+
#'catchall' => \my $catchall,
|
|
19
|
+
'require-footer' => \my $require_footer,
|
|
17
20
|
'perl' => \my $perl,
|
|
18
21
|
'module|M=s' => \my $module,
|
|
19
22
|
'yaml-version=s' => \my $yaml_version,
|
|
@@ -32,6 +35,9 @@ if ($merge) {
|
|
|
32
35
|
if ($perl) {
|
|
33
36
|
push @schema, 'Perl';
|
|
34
37
|
}
|
|
38
|
+
#if ($catchall) {
|
|
39
|
+
# push @schema, 'Catchall';
|
|
40
|
+
#}
|
|
35
41
|
|
|
36
42
|
my ($file) = @ARGV;
|
|
37
43
|
my $yaml;
|
|
@@ -70,8 +76,10 @@ sub _yamlpp {
|
|
|
70
76
|
schema => \@schema,
|
|
71
77
|
boolean => $boolean,
|
|
72
78
|
cyclic_refs => $cyclic ? 'allow' : 'fatal',
|
|
79
|
+
duplicate_keys => $duplicate_keys ? 1 : 0,
|
|
73
80
|
preserve => PRESERVE_ORDER,
|
|
74
81
|
yaml_version => \@yaml_versions,
|
|
82
|
+
require_footer => $require_footer,
|
|
75
83
|
);
|
|
76
84
|
my @docs = $ypp->load_string($yaml);
|
|
77
85
|
return @docs;
|
|
@@ -133,12 +141,15 @@ Usage:
|
|
|
133
141
|
Options:
|
|
134
142
|
--boolean= 'perl', 'JSON::PP', 'boolean'
|
|
135
143
|
--cyclic Allow cyclic references
|
|
144
|
+
--duplicate-keys Allow duplicate keys
|
|
136
145
|
--merge Enable loading merge keys '<<'
|
|
146
|
+
--require-footer Require '...' and the end of each document
|
|
137
147
|
--perl Enable loading perl types and objects (use only
|
|
138
148
|
on trusted input!)
|
|
139
149
|
--module -M YAML::PP (default), YAML, YAML::PP::LibYAML,
|
|
140
150
|
YAML::Syck, YAML::Tiny, YAML::XS, YAML::PP::Ref
|
|
141
151
|
--yaml-version= '1.2' (default), '1.1', '1.2,1.1', '1.1,1.2'
|
|
142
152
|
EOM
|
|
153
|
+
#--catchall Ignore any unknown tags
|
|
143
154
|
exit $rc;
|
|
144
155
|
}
|
|
@@ -15,11 +15,14 @@ GetOptions(
|
|
|
15
15
|
'help|h' => \my $help,
|
|
16
16
|
'boolean=s' => \my $boolean,
|
|
17
17
|
'cyclic' => \my $cyclic,
|
|
18
|
+
'duplicate-keys' => \my $duplicate_keys,
|
|
18
19
|
'indent=i' => \my $indent,
|
|
19
20
|
'width=i' => \my $width,
|
|
20
21
|
'header!' => \my $header,
|
|
21
22
|
'footer!' => \my $footer,
|
|
22
23
|
'merge' => \my $merge,
|
|
24
|
+
#'catchall' => \my $catchall,
|
|
25
|
+
'require-footer' => \my $require_footer,
|
|
23
26
|
'perl' => \my $perl,
|
|
24
27
|
'preserve|P=s' => \my $preserve,
|
|
25
28
|
'module|M=s' => \my $module,
|
|
@@ -49,6 +52,9 @@ if ($merge) {
|
|
|
49
52
|
if ($perl) {
|
|
50
53
|
push @schema, 'Perl';
|
|
51
54
|
}
|
|
55
|
+
#if ($catchall) {
|
|
56
|
+
# push @schema, 'Catchall';
|
|
57
|
+
#}
|
|
52
58
|
|
|
53
59
|
my $preserve_order = 1;
|
|
54
60
|
if (defined $preserve) {
|
|
@@ -131,6 +137,7 @@ sub _yamlpp {
|
|
|
131
137
|
schema => \@schema,
|
|
132
138
|
boolean => $boolean,
|
|
133
139
|
cyclic_refs => $cyclic ? 'allow' : 'fatal',
|
|
140
|
+
duplicate_keys => $duplicate_keys ? 1 : 0,
|
|
134
141
|
preserve => $preserve,
|
|
135
142
|
indent => $indent,
|
|
136
143
|
width => $width,
|
|
@@ -138,6 +145,7 @@ sub _yamlpp {
|
|
|
138
145
|
footer => $footer ? 1 : 0,
|
|
139
146
|
yaml_version => \@yaml_versions,
|
|
140
147
|
version_directive => $version_directive || 0,
|
|
148
|
+
require_footer => $require_footer,
|
|
141
149
|
);
|
|
142
150
|
if ($inc) {
|
|
143
151
|
$inc->yp($ypp);
|
|
@@ -279,11 +287,13 @@ Usage:
|
|
|
279
287
|
Options:
|
|
280
288
|
--boolean= 'perl', 'JSON::PP', 'boolean'
|
|
281
289
|
--cyclic Allow cyclic references
|
|
290
|
+
--duplicate-keys Allow duplicate keys
|
|
282
291
|
--indent= Number of spaces for indentation
|
|
283
292
|
--width= Maximum column width (only used in flow style for now)
|
|
284
293
|
--[no-]header Print '---' (default)
|
|
285
294
|
--[no-]footer Print '...'
|
|
286
295
|
--merge Enable loading merge keys '<<'
|
|
296
|
+
--require-footer Require '...' and the end of each document
|
|
287
297
|
--perl Enable loading perl types and objects (use only
|
|
288
298
|
on trusted input!)
|
|
289
299
|
--preserve, -P Comma separated: 'order', 'scalar', 'flow', 'alias'.
|
|
@@ -299,5 +309,6 @@ Options:
|
|
|
299
309
|
--include-absolute Allow absolute paths and ../../../ in includes (use
|
|
300
310
|
only on trusted input!)
|
|
301
311
|
EOM
|
|
312
|
+
# --catchall Ignore any unknown tags
|
|
302
313
|
exit $rc;
|
|
303
314
|
}
|
|
@@ -3,7 +3,7 @@ use strict;
|
|
|
3
3
|
use warnings;
|
|
4
4
|
package YAML::PP::Constructor;
|
|
5
5
|
|
|
6
|
-
our $VERSION = 'v0.
|
|
6
|
+
our $VERSION = 'v0.39.0'; # VERSION
|
|
7
7
|
|
|
8
8
|
use YAML::PP;
|
|
9
9
|
use YAML::PP::Common qw/
|
|
@@ -25,6 +25,7 @@ sub new {
|
|
|
25
25
|
unless (defined $duplicate_keys) {
|
|
26
26
|
$duplicate_keys = 0;
|
|
27
27
|
}
|
|
28
|
+
my $require_footer = delete $args{require_footer};
|
|
28
29
|
my $preserve = delete $args{preserve} || 0;
|
|
29
30
|
if ($preserve == 1) {
|
|
30
31
|
$preserve = PRESERVE_ORDER | PRESERVE_SCALAR_STYLE | PRESERVE_FLOW_STYLE | PRESERVE_ALIAS;
|
|
@@ -44,6 +45,7 @@ sub new {
|
|
|
44
45
|
cyclic_refs => $cyclic_refs,
|
|
45
46
|
preserve => $preserve,
|
|
46
47
|
duplicate_keys => $duplicate_keys,
|
|
48
|
+
require_footer => $require_footer,
|
|
47
49
|
}, $class;
|
|
48
50
|
$self->init;
|
|
49
51
|
return $self;
|
|
@@ -89,6 +91,7 @@ sub preserve_scalar_style { return $_[0]->{preserve} & PRESERVE_SCALAR_STYLE }
|
|
|
89
91
|
sub preserve_flow_style { return $_[0]->{preserve} & PRESERVE_FLOW_STYLE }
|
|
90
92
|
sub preserve_alias { return $_[0]->{preserve} & PRESERVE_ALIAS }
|
|
91
93
|
sub duplicate_keys { return $_[0]->{duplicate_keys} }
|
|
94
|
+
sub require_footer { return $_[0]->{require_footer} }
|
|
92
95
|
|
|
93
96
|
sub document_start_event {
|
|
94
97
|
my ($self, $event) = @_;
|
|
@@ -118,6 +121,9 @@ sub document_end_event {
|
|
|
118
121
|
die "Got unexpected end of document";
|
|
119
122
|
}
|
|
120
123
|
my $docs = $self->docs;
|
|
124
|
+
if ($event->{implicit} and $self->require_footer) {
|
|
125
|
+
die sprintf "load: Document (%d) did not end with '...' (require_footer=1)", 1 + scalar @$docs;
|
|
126
|
+
}
|
|
121
127
|
push @$docs, $last->{ref}->[0];
|
|
122
128
|
$self->set_anchors({});
|
|
123
129
|
$self->set_stack([]);
|
|
@@ -3,7 +3,7 @@ use strict;
|
|
|
3
3
|
use warnings;
|
|
4
4
|
package YAML::PP::Loader;
|
|
5
5
|
|
|
6
|
-
our $VERSION = 'v0.
|
|
6
|
+
our $VERSION = 'v0.39.0'; # VERSION
|
|
7
7
|
|
|
8
8
|
use YAML::PP::Parser;
|
|
9
9
|
use YAML::PP::Constructor;
|
|
@@ -16,6 +16,7 @@ sub new {
|
|
|
16
16
|
my $default_yaml_version = delete $args{default_yaml_version} || '1.2';
|
|
17
17
|
my $preserve = delete $args{preserve};
|
|
18
18
|
my $duplicate_keys = delete $args{duplicate_keys};
|
|
19
|
+
my $require_footer = delete $args{require_footer};
|
|
19
20
|
my $schemas = delete $args{schemas};
|
|
20
21
|
$schemas ||= {
|
|
21
22
|
'1.2' => YAML::PP->default_schema(
|
|
@@ -29,6 +30,7 @@ sub new {
|
|
|
29
30
|
default_yaml_version => $default_yaml_version,
|
|
30
31
|
preserve => $preserve,
|
|
31
32
|
duplicate_keys => $duplicate_keys,
|
|
33
|
+
require_footer => $require_footer,
|
|
32
34
|
);
|
|
33
35
|
my $parser = delete $args{parser};
|
|
34
36
|
unless ($parser) {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
use strict;
|
|
2
|
+
use warnings;
|
|
3
|
+
package YAML::PP::Schema::Catchall;
|
|
4
|
+
|
|
5
|
+
our $VERSION = 'v0.39.0'; # VERSION
|
|
6
|
+
|
|
7
|
+
use Carp qw/ croak /;
|
|
8
|
+
|
|
9
|
+
use YAML::PP::Common qw/ YAML_PLAIN_SCALAR_STYLE YAML_SINGLE_QUOTED_SCALAR_STYLE /;
|
|
10
|
+
|
|
11
|
+
sub register {
|
|
12
|
+
my ($self, %args) = @_;
|
|
13
|
+
my $schema = $args{schema};
|
|
14
|
+
my $options = $args{options};
|
|
15
|
+
my $empty_null = 0;
|
|
16
|
+
for my $opt (@$options) {
|
|
17
|
+
if ($opt eq 'empty=str') {
|
|
18
|
+
}
|
|
19
|
+
elsif ($opt eq 'empty=null') {
|
|
20
|
+
$empty_null = 1;
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
croak "Invalid option for JSON Schema: '$opt'";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
$schema->add_resolver(
|
|
28
|
+
tag => qr{^(?:!|tag:)},
|
|
29
|
+
match => [ all => sub {
|
|
30
|
+
my ($constructor, $event) = @_;
|
|
31
|
+
my $value = $event->{value};
|
|
32
|
+
return $value;
|
|
33
|
+
}],
|
|
34
|
+
implicit => 0,
|
|
35
|
+
);
|
|
36
|
+
$schema->add_sequence_resolver(
|
|
37
|
+
tag => qr{^(?:!|tag:)},
|
|
38
|
+
on_data => sub {
|
|
39
|
+
my ($constructor, $ref, $list) = @_;
|
|
40
|
+
push @$$ref, @$list;
|
|
41
|
+
},
|
|
42
|
+
);
|
|
43
|
+
$schema->add_mapping_resolver(
|
|
44
|
+
tag => qr{^(?:!|tag:)},
|
|
45
|
+
on_data => sub {
|
|
46
|
+
my ($constructor, $ref, $list) = @_;
|
|
47
|
+
for (my $i = 0; $i < @$list; $i += 2) {
|
|
48
|
+
$$ref->{ $list->[ $i ] } = $list->[ $i + 1 ];
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
1;
|
|
57
|
+
|
|
58
|
+
__END__
|
|
59
|
+
|
|
60
|
+
=pod
|
|
61
|
+
|
|
62
|
+
=encoding utf-8
|
|
63
|
+
|
|
64
|
+
=head1 NAME
|
|
65
|
+
|
|
66
|
+
YAML::PP::Schema::JSON - YAML 1.2 JSON Schema
|
|
67
|
+
|
|
68
|
+
=head1 SYNOPSIS
|
|
69
|
+
|
|
70
|
+
my $yp = YAML::PP->new( schema => ['JSON'] );
|
|
71
|
+
my $yp = YAML::PP->new( schema => [qw/ JSON empty=str /] );
|
|
72
|
+
my $yp = YAML::PP->new( schema => [qw/ JSON empty=null /] );
|
|
73
|
+
|
|
74
|
+
=head1 DESCRIPTION
|
|
75
|
+
|
|
76
|
+
=cut
|
|
@@ -2,10 +2,32 @@ use strict;
|
|
|
2
2
|
use warnings;
|
|
3
3
|
package YAML::PP::Schema::Failsafe;
|
|
4
4
|
|
|
5
|
-
our $VERSION = 'v0.
|
|
5
|
+
our $VERSION = 'v0.39.0'; # VERSION
|
|
6
6
|
|
|
7
7
|
sub register {
|
|
8
8
|
my ($self, %args) = @_;
|
|
9
|
+
my $schema = $args{schema};
|
|
10
|
+
|
|
11
|
+
$schema->add_resolver(
|
|
12
|
+
tag => 'tag:yaml.org,2002:str',
|
|
13
|
+
match => [ all => sub { $_[1]->{value} } ],
|
|
14
|
+
);
|
|
15
|
+
$schema->add_sequence_resolver(
|
|
16
|
+
tag => 'tag:yaml.org,2002:seq',
|
|
17
|
+
on_data => sub {
|
|
18
|
+
my ($constructor, $ref, $list) = @_;
|
|
19
|
+
push @$$ref, @$list;
|
|
20
|
+
},
|
|
21
|
+
);
|
|
22
|
+
$schema->add_mapping_resolver(
|
|
23
|
+
tag => 'tag:yaml.org,2002:map',
|
|
24
|
+
on_data => sub {
|
|
25
|
+
my ($constructor, $ref, $list) = @_;
|
|
26
|
+
for (my $i = 0; $i < @$list; $i += 2) {
|
|
27
|
+
$$ref->{ $list->[ $i ] } = $list->[ $i + 1 ];
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
);
|
|
9
31
|
|
|
10
32
|
return;
|
|
11
33
|
}
|