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/index.js
CHANGED
|
@@ -1960,6 +1960,7 @@ export function convert(type, value, le, { blob = 'string', timestamp = 'ms' } =
|
|
|
1960
1960
|
case DdbType.handle:
|
|
1961
1961
|
case DdbType.datasource:
|
|
1962
1962
|
case DdbType.resource:
|
|
1963
|
+
case DdbType.compressed:
|
|
1963
1964
|
return value;
|
|
1964
1965
|
case DdbType.blob:
|
|
1965
1966
|
return blob === 'string' ? decode(value) : value;
|
|
@@ -2025,6 +2026,7 @@ export function converts(type, value, rows, le, options) {
|
|
|
2025
2026
|
case DdbType.resource:
|
|
2026
2027
|
case DdbType.functiondef:
|
|
2027
2028
|
case DdbType.blob:
|
|
2029
|
+
case DdbType.compressed:
|
|
2028
2030
|
return Array.prototype.map.call(value, (x) => convert(type, x, le, options));
|
|
2029
2031
|
case DdbType.void:
|
|
2030
2032
|
return [];
|
|
@@ -3175,18 +3177,19 @@ export class DDB {
|
|
|
3175
3177
|
// 逻辑类似 DdbObj.to_ddbobjs, 需要同步修改
|
|
3176
3178
|
let simple = true;
|
|
3177
3179
|
let has_ddbobj = false;
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
const type = typeof arg;
|
|
3183
|
-
if (type === 'string' || type === 'boolean') { }
|
|
3180
|
+
if (args)
|
|
3181
|
+
for (const arg of args) {
|
|
3182
|
+
if (arg && arg instanceof DdbObj)
|
|
3183
|
+
has_ddbobj = true;
|
|
3184
3184
|
else {
|
|
3185
|
-
|
|
3186
|
-
|
|
3185
|
+
const type = typeof arg;
|
|
3186
|
+
if (type === 'string' || type === 'boolean') { }
|
|
3187
|
+
else {
|
|
3188
|
+
simple = false;
|
|
3189
|
+
break;
|
|
3190
|
+
}
|
|
3187
3191
|
}
|
|
3188
3192
|
}
|
|
3189
|
-
}
|
|
3190
3193
|
if (!simple) {
|
|
3191
3194
|
if (has_ddbobj)
|
|
3192
3195
|
throw new Error(t('调用 ddb.invoke 的参数中不能同时有 DdbObj 与复杂 js 原生对象'));
|