dolphindb 3.1.15 → 3.1.17
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 +2 -2
- package/browser.js.map +1 -1
- package/common.js +3 -3
- package/common.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +5 -5
- package/test.js.map +1 -1
package/browser.d.ts
CHANGED
|
@@ -184,7 +184,7 @@ export interface InspectOptions {
|
|
|
184
184
|
export declare function format(type: DdbType, value: DdbValue, le: boolean, options?: InspectOptions): string;
|
|
185
185
|
/** 格式化向量、集合中的第 index 项为字符串,空值返回 'null' 字符串 formatted vector, the index-th item in the collection is a string, a null value returns a 'null' string */
|
|
186
186
|
export declare function formati(obj: DdbVectorObj, index: number, options?: InspectOptions): string;
|
|
187
|
-
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean |
|
|
187
|
+
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean | string[] | number[] | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbSymbolExtendedValue | DdbExtObjValue | DdbTensorValue | Uint8Array<ArrayBufferLike> | Int8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike> | BigInt64Array<ArrayBufferLike> | BigInt128Array | Uint8Array<ArrayBufferLike>[] | DdbObj<DdbValue>[] | IotVectorItemValue | DdbArrayVectorValue | DdbDecimal128VectorValue | DdbDurationVectorValue | DdbMatrixValue | DdbChartValue;
|
|
188
188
|
/** 转换一个向量到 js 原生数组 */
|
|
189
189
|
export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean, options?: ConvertOptions): any[] | Uint8Array;
|
|
190
190
|
/** 构造 void 类型,默认为 `DdbVoidType.undefined` */
|
package/browser.js
CHANGED
|
@@ -1791,8 +1791,8 @@ export function formati(obj, index, options = {}) {
|
|
|
1791
1791
|
// av
|
|
1792
1792
|
const type_ = obj.type - 64;
|
|
1793
1793
|
let offset = 0;
|
|
1794
|
-
// array vector 中每一项如果为 null
|
|
1795
|
-
options = { ...options, nullstr: true };
|
|
1794
|
+
// array vector 中每一项如果为 null 都展示,避免多个逗号堆在一起的情况, 同时禁用 grouping
|
|
1795
|
+
options = { ...options, nullstr: true, grouping: false };
|
|
1796
1796
|
for (const { lengths, data, rows } of obj.value) {
|
|
1797
1797
|
let acc_len = 0;
|
|
1798
1798
|
if (offset + rows <= index) {
|