javonet-nodejs-sdk 2.5.18 → 2.5.19
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.
|
@@ -75,10 +75,6 @@ class RuntimeContext {
|
|
|
75
75
|
* @returns {RuntimeContext}
|
|
76
76
|
*/
|
|
77
77
|
static getInstance(runtimeName, connectionData) {
|
|
78
|
-
if (!_Transmitter) {
|
|
79
|
-
const { Transmitter } = require("../core/transmitter/Transmitter.cjs");
|
|
80
|
-
_Transmitter = Transmitter;
|
|
81
|
-
}
|
|
82
78
|
switch (connectionData.connectionType) {
|
|
83
79
|
case import_ConnectionType.ConnectionType.IN_MEMORY:
|
|
84
80
|
const key = String(runtimeName);
|
|
@@ -88,6 +84,10 @@ class RuntimeContext {
|
|
|
88
84
|
runtimeCtx.#currentCommand = null;
|
|
89
85
|
return runtimeCtx;
|
|
90
86
|
} else {
|
|
87
|
+
if (!_Transmitter) {
|
|
88
|
+
const { Transmitter } = require("../core/transmitter/Transmitter.cjs");
|
|
89
|
+
_Transmitter = Transmitter;
|
|
90
|
+
}
|
|
91
91
|
const runtimeCtx = new RuntimeContext(runtimeName, connectionData);
|
|
92
92
|
RuntimeContext.memoryRuntimeContexts.set(key, runtimeCtx);
|
|
93
93
|
return runtimeCtx;
|
|
@@ -100,6 +100,10 @@ class RuntimeContext {
|
|
|
100
100
|
runtimeCtx.#currentCommand = null;
|
|
101
101
|
return runtimeCtx;
|
|
102
102
|
} else {
|
|
103
|
+
if (!_Transmitter) {
|
|
104
|
+
const { Transmitter } = require("../core/transmitter/Transmitter.cjs");
|
|
105
|
+
_Transmitter = Transmitter;
|
|
106
|
+
}
|
|
103
107
|
const runtimeCtx = new RuntimeContext(runtimeName, connectionData);
|
|
104
108
|
RuntimeContext.networkRuntimeContexts.set(key1, runtimeCtx);
|
|
105
109
|
return runtimeCtx;
|
|
@@ -81,10 +81,6 @@ class RuntimeContext {
|
|
|
81
81
|
* @returns {RuntimeContext}
|
|
82
82
|
*/
|
|
83
83
|
static getInstance(runtimeName, connectionData) {
|
|
84
|
-
if (!_Transmitter) {
|
|
85
|
-
const { Transmitter } = requireDynamic('../core/transmitter/Transmitter.js')
|
|
86
|
-
_Transmitter = Transmitter
|
|
87
|
-
}
|
|
88
84
|
switch (connectionData.connectionType) {
|
|
89
85
|
case ConnectionType.IN_MEMORY:
|
|
90
86
|
const key = String(runtimeName)
|
|
@@ -94,6 +90,10 @@ class RuntimeContext {
|
|
|
94
90
|
runtimeCtx.#currentCommand = null
|
|
95
91
|
return runtimeCtx
|
|
96
92
|
} else {
|
|
93
|
+
if (!_Transmitter) {
|
|
94
|
+
const { Transmitter } = requireDynamic('../core/transmitter/Transmitter.js')
|
|
95
|
+
_Transmitter = Transmitter
|
|
96
|
+
}
|
|
97
97
|
const runtimeCtx = new RuntimeContext(runtimeName, connectionData)
|
|
98
98
|
RuntimeContext.memoryRuntimeContexts.set(key, runtimeCtx)
|
|
99
99
|
return runtimeCtx
|
|
@@ -106,6 +106,10 @@ class RuntimeContext {
|
|
|
106
106
|
runtimeCtx.#currentCommand = null
|
|
107
107
|
return runtimeCtx
|
|
108
108
|
} else {
|
|
109
|
+
if (!_Transmitter) {
|
|
110
|
+
const { Transmitter } = requireDynamic('../core/transmitter/Transmitter.js')
|
|
111
|
+
_Transmitter = Transmitter
|
|
112
|
+
}
|
|
109
113
|
const runtimeCtx = new RuntimeContext(runtimeName, connectionData)
|
|
110
114
|
RuntimeContext.networkRuntimeContexts.set(key1, runtimeCtx)
|
|
111
115
|
return runtimeCtx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "javonet-nodejs-sdk",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.19",
|
|
4
4
|
"description": "Javonet allows you to reference and use modules or packages written in (Java/Kotlin/Groovy/Clojure, C#/VB.NET, Ruby, Perl, Python, JavaScript/TypeScript) like they were created in your technology. It works on Linux/Windows and MacOS for applications created in JVM, CLR/Netcore, Perl, Python, Ruby, NodeJS, C++ or GoLang and gives you unparalleled freedom and flexibility with native performance in building your mixed-technologies products. Let it be accessing best AI or cryptography libraries, devices SDKs, legacy client modules, internal custom packages or anything from public repositories available on NPM, Nuget, PyPI, Maven/Gradle, RubyGems or GitHub. Get free from programming languages barriers today! For more information check out our guides at https://www.javonet.com/guides/v2/",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "SdNCenter Sp. z o. o.",
|