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/browser.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
|
}
|
|
@@ -1179,7 +1179,10 @@ function format(type, value, le) {
|
|
|
1179
1179
|
case DdbType.int128:
|
|
1180
1180
|
return int1282str(value, le);
|
|
1181
1181
|
case DdbType.blob:
|
|
1182
|
-
return
|
|
1182
|
+
return (value.length > 100 ?
|
|
1183
|
+
DdbObj.dec.decode(value.subarray(0, 98)) + '…'
|
|
1184
|
+
:
|
|
1185
|
+
DdbObj.dec.decode(value)).quote('single');
|
|
1183
1186
|
case DdbType.point: {
|
|
1184
1187
|
let [x, y] = value;
|
|
1185
1188
|
if (x === exports.nulls.double)
|
|
@@ -1539,7 +1542,7 @@ function time2str(time, format = 'HH:mm:ss.SSS') {
|
|
|
1539
1542
|
.format(format);
|
|
1540
1543
|
}
|
|
1541
1544
|
exports.time2str = time2str;
|
|
1542
|
-
function minute2str(minute, format = 'HH:mm') {
|
|
1545
|
+
function minute2str(minute, format = 'HH:mm[m]') {
|
|
1543
1546
|
return (minute === null || minute === exports.nulls.int32) ?
|
|
1544
1547
|
'null'
|
|
1545
1548
|
:
|