dolphindb 3.0.109 → 3.0.111
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 +12 -9
- package/browser.js.map +1 -1
- package/index.js +12 -9
- package/index.js.map +1 -1
- package/package.json +1 -1
package/browser.js
CHANGED
|
@@ -1986,6 +1986,7 @@ export function convert(type, value, le, { blob = 'string', timestamp = 'ms' } =
|
|
|
1986
1986
|
case DdbType.handle:
|
|
1987
1987
|
case DdbType.datasource:
|
|
1988
1988
|
case DdbType.resource:
|
|
1989
|
+
case DdbType.compressed:
|
|
1989
1990
|
return value;
|
|
1990
1991
|
case DdbType.blob:
|
|
1991
1992
|
return blob === 'string' ? decode(value) : value;
|
|
@@ -2051,6 +2052,7 @@ export function converts(type, value, rows, le, options) {
|
|
|
2051
2052
|
case DdbType.resource:
|
|
2052
2053
|
case DdbType.functiondef:
|
|
2053
2054
|
case DdbType.blob:
|
|
2055
|
+
case DdbType.compressed:
|
|
2054
2056
|
return Array.prototype.map.call(value, (x) => convert(type, x, le, options));
|
|
2055
2057
|
case DdbType.void:
|
|
2056
2058
|
return [];
|
|
@@ -3197,18 +3199,19 @@ export class DDB {
|
|
|
3197
3199
|
// 逻辑类似 DdbObj.to_ddbobjs, 需要同步修改
|
|
3198
3200
|
let simple = true;
|
|
3199
3201
|
let has_ddbobj = false;
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
const type = typeof arg;
|
|
3205
|
-
if (type === 'string' || type === 'boolean') { }
|
|
3202
|
+
if (args)
|
|
3203
|
+
for (const arg of args) {
|
|
3204
|
+
if (arg && arg instanceof DdbObj)
|
|
3205
|
+
has_ddbobj = true;
|
|
3206
3206
|
else {
|
|
3207
|
-
|
|
3208
|
-
|
|
3207
|
+
const type = typeof arg;
|
|
3208
|
+
if (type === 'string' || type === 'boolean') { }
|
|
3209
|
+
else {
|
|
3210
|
+
simple = false;
|
|
3211
|
+
break;
|
|
3212
|
+
}
|
|
3209
3213
|
}
|
|
3210
3214
|
}
|
|
3211
|
-
}
|
|
3212
3215
|
if (!simple) {
|
|
3213
3216
|
if (has_ddbobj)
|
|
3214
3217
|
throw new Error(t('调用 ddb.invoke 的参数中不能同时有 DdbObj 与复杂 js 原生对象'));
|