dolphindb 3.0.100 → 3.0.102
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 +3 -0
- package/browser.js.map +1 -1
- package/docs.d.ts +13 -13
- package/docs.js +65 -44
- package/docs.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/package.json +5 -5
package/browser.d.ts
CHANGED
|
@@ -411,7 +411,7 @@ export interface ConvertOptions {
|
|
|
411
411
|
/** timestamp 类型转换为字符串表示时显示到秒还是毫秒 */
|
|
412
412
|
timestamp?: 's' | 'ms';
|
|
413
413
|
}
|
|
414
|
-
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, timestamp }?: ConvertOptions): string | number | bigint | boolean | Uint8Array |
|
|
414
|
+
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, timestamp }?: ConvertOptions): string | number | bigint | boolean | Uint8Array | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | DdbDecimal32VectorValue | Int32Array | DdbDecimal64VectorValue | BigInt64Array | DdbDecimal128VectorValue | BigInt128Array | DdbSymbolExtendedValue | string[] | Int8Array | Int16Array | Float32Array | Float64Array | DdbArrayVectorValue | DdbMatrixValue | Uint8Array[] | DdbObj<DdbValue>[] | DdbDurationVectorValue | number[] | DdbTensorValue | DdbChartValue;
|
|
415
415
|
/** 转换一个向量到 js 原生数组 */
|
|
416
416
|
export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean, options?: ConvertOptions): any[];
|
|
417
417
|
export declare class DdbVoid extends DdbObj<undefined> {
|
package/browser.js
CHANGED
|
@@ -3258,6 +3258,9 @@ export class DDB {
|
|
|
3258
3258
|
const message = this.dec.decode(buf.subarray(ils1, ilf1));
|
|
3259
3259
|
if (message !== 'OK') {
|
|
3260
3260
|
error.message = message;
|
|
3261
|
+
let lines = error.stack.split_lines();
|
|
3262
|
+
lines[0] += `: ${message}`;
|
|
3263
|
+
error.stack = lines.join_lines(false);
|
|
3261
3264
|
return { type: 'error', data: error };
|
|
3262
3265
|
}
|
|
3263
3266
|
const bufobj = buf.subarray(ilf1 + 1);
|