dolphindb 3.0.20 → 3.0.22
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/README.zh.md +98 -13
- package/browser.js +9 -3
- package/browser.js.map +1 -1
- package/index.js +9 -3
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1850,9 +1850,7 @@ export function converts(type, value, rows, le) {
|
|
|
1850
1850
|
case DdbType.decimal64:
|
|
1851
1851
|
case DdbType.decimal128: {
|
|
1852
1852
|
const { scale, data } = value;
|
|
1853
|
-
|
|
1854
|
-
return seq(rows, i => {
|
|
1855
|
-
const x = data[i];
|
|
1853
|
+
return Array.prototype.map.call(data, (x) => {
|
|
1856
1854
|
if (is_decimal_null_value(type, x))
|
|
1857
1855
|
return '';
|
|
1858
1856
|
const s = String(x < 0 ? -x : x).padStart(scale, '0');
|
|
@@ -3180,6 +3178,14 @@ export class BigInt128Array {
|
|
|
3180
3178
|
return true;
|
|
3181
3179
|
}
|
|
3182
3180
|
return Reflect.set(target, key, value);
|
|
3181
|
+
},
|
|
3182
|
+
has(target, key) {
|
|
3183
|
+
if (typeof key === 'string') {
|
|
3184
|
+
const index = Number(key);
|
|
3185
|
+
if (Number.isInteger(index) && index >= 0 && index < target.length)
|
|
3186
|
+
return true;
|
|
3187
|
+
}
|
|
3188
|
+
return Reflect.has(target, key);
|
|
3183
3189
|
}
|
|
3184
3190
|
});
|
|
3185
3191
|
}
|