dolphindb 3.0.221 → 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.d.ts +1 -1
- package/browser.js +14 -7
- package/browser.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +14 -7
- package/index.js.map +1 -1
- package/language.d.ts +1 -1
- package/language.js +1 -0
- package/language.js.map +1 -1
- package/package.json +4 -4
package/browser.d.ts
CHANGED
|
@@ -419,7 +419,7 @@ export interface ConvertOptions {
|
|
|
419
419
|
/** `'ms'` timestamp 类型转换为字符串表示时显示到秒还是毫秒 */
|
|
420
420
|
timestamp?: 's' | 'ms';
|
|
421
421
|
}
|
|
422
|
-
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean |
|
|
422
|
+
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean | number[] | Uint8Array<ArrayBufferLike> | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | Int8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike> | BigInt64Array<ArrayBufferLike> | BigInt128Array | string[] | Uint8Array<ArrayBufferLike>[] | DdbObj<DdbValue>[] | IotVectorItemValue | DdbSymbolExtendedValue | DdbArrayVectorValue | DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbDecimal128VectorValue | DdbDurationVectorValue | DdbMatrixValue | DdbChartValue | DdbTensorValue;
|
|
423
423
|
/** 转换一个向量到 js 原生数组 */
|
|
424
424
|
export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean, options?: ConvertOptions): any[] | Uint8Array;
|
|
425
425
|
/** 构造 void 类型,默认为 `DdbVoidType.undefined` */
|
package/browser.js
CHANGED
|
@@ -3275,14 +3275,21 @@ export class DDB {
|
|
|
3275
3275
|
' if func_name == "invoke":\n' +
|
|
3276
3276
|
' args_[0] = funcByName(args[0])\n' +
|
|
3277
3277
|
' return rpc(node, unifiedCall, funcByName(func_name), args_)\n'
|
|
3278
|
-
:
|
|
3278
|
+
: this.kdb ?
|
|
3279
3279
|
'\n' +
|
|
3280
|
-
'
|
|
3281
|
-
' args_
|
|
3282
|
-
' if
|
|
3283
|
-
'
|
|
3284
|
-
'
|
|
3285
|
-
|
|
3280
|
+
'jsrpc: {[node; func_name; args]\n' +
|
|
3281
|
+
' args_: args;\n' +
|
|
3282
|
+
' if[func_name="invoke"; args_[0]:funcByName[args[0]]];\n' +
|
|
3283
|
+
' rpc[node; unifiedCall; funcByName[func_name]; args_]\n' +
|
|
3284
|
+
'}\n'
|
|
3285
|
+
:
|
|
3286
|
+
'\n' +
|
|
3287
|
+
'def jsrpc (node, func_name, args) {\n' +
|
|
3288
|
+
' args_ = args\n' +
|
|
3289
|
+
' if (func_name == "invoke")\n' +
|
|
3290
|
+
' args_[0] = funcByName(args[0])\n' +
|
|
3291
|
+
' return rpc(node, unifiedCall, funcByName(func_name), args_)\n' +
|
|
3292
|
+
'}\n', { urgent: true }));
|
|
3286
3293
|
}
|
|
3287
3294
|
catch (error) {
|
|
3288
3295
|
this.pjsrpc = undefined;
|