dolphindb 3.0.214 → 3.0.216
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 +2 -2
- package/browser.js +1 -0
- package/browser.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -408,7 +408,7 @@ export interface ConvertOptions {
|
|
|
408
408
|
/** `'ms'` timestamp 类型转换为字符串表示时显示到秒还是毫秒 */
|
|
409
409
|
timestamp?: 's' | 'ms';
|
|
410
410
|
}
|
|
411
|
-
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean |
|
|
411
|
+
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean | number[] | string[] | Uint8Array<ArrayBufferLike> | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | Int8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike> | BigInt64Array<ArrayBufferLike> | BigInt128Array | Uint8Array<ArrayBufferLike>[] | DdbObj<DdbValue>[] | IotVectorItemValue | DdbSymbolExtendedValue | DdbArrayVectorValue | DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbDecimal128VectorValue | DdbDurationVectorValue | DdbMatrixValue | DdbChartValue | DdbTensorValue;
|
|
412
412
|
/** 转换一个向量到 js 原生数组 */
|
|
413
413
|
export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean, options?: ConvertOptions): any[] | Uint8Array;
|
|
414
414
|
/** 构造 void 类型,默认为 `DdbVoidType.undefined` */
|
|
@@ -606,7 +606,7 @@ type DdbRpcType = 'script' | 'function' | 'variable' | 'connect';
|
|
|
606
606
|
export interface DdbRpcOptions extends DdbEvalOptions {
|
|
607
607
|
script?: string;
|
|
608
608
|
func?: string;
|
|
609
|
-
args?:
|
|
609
|
+
args?: Convertable[];
|
|
610
610
|
vars?: string[];
|
|
611
611
|
skip_connection_check?: boolean;
|
|
612
612
|
on_more_messages?: (buffer: Uint8Array) => void;
|
package/index.js
CHANGED
|
@@ -1367,7 +1367,7 @@ export class DdbObj {
|
|
|
1367
1367
|
return tensor;
|
|
1368
1368
|
}
|
|
1369
1369
|
[inspect.custom](depth, _options, _inspect) {
|
|
1370
|
-
|
|
1370
|
+
let options = { nullstr: true, ..._options };
|
|
1371
1371
|
const type = this.inspect_type();
|
|
1372
1372
|
const data = (() => {
|
|
1373
1373
|
switch (this.form) {
|
|
@@ -1395,6 +1395,7 @@ export class DdbObj {
|
|
|
1395
1395
|
// ...
|
|
1396
1396
|
// av
|
|
1397
1397
|
const type_ = this.type - 64;
|
|
1398
|
+
options = { ...options, grouping: false };
|
|
1398
1399
|
const limit = 10;
|
|
1399
1400
|
const nullstr = inspect(null, options);
|
|
1400
1401
|
let array_items = new Array(Math.min(limit, this.rows));
|