dolphindb 3.0.223 → 3.0.224
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/browser.js +14 -7
- package/browser.js.map +1 -1
- package/index.js +14 -7
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -3253,14 +3253,21 @@ export class DDB {
|
|
|
3253
3253
|
' if func_name == "invoke":\n' +
|
|
3254
3254
|
' args_[0] = funcByName(args[0])\n' +
|
|
3255
3255
|
' return rpc(node, unifiedCall, funcByName(func_name), args_)\n'
|
|
3256
|
-
:
|
|
3256
|
+
: this.kdb ?
|
|
3257
3257
|
'\n' +
|
|
3258
|
-
'
|
|
3259
|
-
' args_
|
|
3260
|
-
' if
|
|
3261
|
-
'
|
|
3262
|
-
'
|
|
3263
|
-
|
|
3258
|
+
'jsrpc: {[node; func_name; args]\n' +
|
|
3259
|
+
' args_: args;\n' +
|
|
3260
|
+
' if[func_name="invoke"; args_[0]:funcByName[args[0]]];\n' +
|
|
3261
|
+
' rpc[node; unifiedCall; funcByName[func_name]; args_]\n' +
|
|
3262
|
+
'}\n'
|
|
3263
|
+
:
|
|
3264
|
+
'\n' +
|
|
3265
|
+
'def jsrpc (node, func_name, args) {\n' +
|
|
3266
|
+
' args_ = args\n' +
|
|
3267
|
+
' if (func_name == "invoke")\n' +
|
|
3268
|
+
' args_[0] = funcByName(args[0])\n' +
|
|
3269
|
+
' return rpc(node, unifiedCall, funcByName(func_name), args_)\n' +
|
|
3270
|
+
'}\n', { urgent: true }));
|
|
3264
3271
|
}
|
|
3265
3272
|
catch (error) {
|
|
3266
3273
|
this.pjsrpc = undefined;
|