dolphindb 2.0.515 → 2.0.516
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 +6 -3
- package/browser.js.map +1 -1
- package/index.js +6 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -913,7 +913,7 @@ class DdbObj {
|
|
|
913
913
|
case DdbForm.dict:
|
|
914
914
|
return `dict<${DdbType[this.value[0].type]}, ${DdbType[this.value[1].type]}>`;
|
|
915
915
|
case DdbForm.matrix:
|
|
916
|
-
return `matrix<${
|
|
916
|
+
return `matrix<${tname}>[${this.rows}r][${this.cols}c]`;
|
|
917
917
|
default:
|
|
918
918
|
return `${DdbForm[this.form]} ${tname}`;
|
|
919
919
|
}
|
|
@@ -1203,7 +1203,10 @@ function format(type, value, le, options) {
|
|
|
1203
1203
|
:
|
|
1204
1204
|
int1282str(value, le);
|
|
1205
1205
|
case DdbType.blob:
|
|
1206
|
-
return (0, utils_js_1.inspect)(
|
|
1206
|
+
return (0, utils_js_1.inspect)(value.length > 100 ?
|
|
1207
|
+
DdbObj.dec.decode(value.subarray(0, 98)) + '…'
|
|
1208
|
+
:
|
|
1209
|
+
DdbObj.dec.decode(value), options);
|
|
1207
1210
|
case DdbType.point: {
|
|
1208
1211
|
let [x, y] = value;
|
|
1209
1212
|
if (x === exports.nulls.double)
|
|
@@ -1570,7 +1573,7 @@ function time2str(time, format = 'HH:mm:ss.SSS') {
|
|
|
1570
1573
|
.format(format);
|
|
1571
1574
|
}
|
|
1572
1575
|
exports.time2str = time2str;
|
|
1573
|
-
function minute2str(minute, format = 'HH:mm') {
|
|
1576
|
+
function minute2str(minute, format = 'HH:mm[m]') {
|
|
1574
1577
|
return (minute === null || minute === exports.nulls.int32) ?
|
|
1575
1578
|
'null'
|
|
1576
1579
|
:
|