dolphindb 3.1.54 → 3.1.55
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.md +1 -1
- package/README.zh.md +1 -1
- package/browser.js +2 -1
- package/browser.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js +30 -16
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/test.js.map +1 -1
package/README.md
CHANGED
|
@@ -408,7 +408,7 @@ const result = await ddb.eval(
|
|
|
408
408
|
// import type { DdbLong } from 'dolphindb'
|
|
409
409
|
// const result = await ddb.eval<DdbLong>(...)
|
|
410
410
|
|
|
411
|
-
console.log(result
|
|
411
|
+
console.log(result === 2n) // true
|
|
412
412
|
```
|
|
413
413
|
|
|
414
414
|
In the preceding example, a script is uploaded through a string to the DolphinDB database for execution, and the execution result of the last statement `foo(1l, 1l)` is received.
|
package/README.zh.md
CHANGED
|
@@ -396,7 +396,7 @@ const result = await ddb.execute(
|
|
|
396
396
|
// TypeScript:
|
|
397
397
|
// const result = await ddb.execute<bigint>(...)
|
|
398
398
|
|
|
399
|
-
console.log(result
|
|
399
|
+
console.log(result === 2n) // true
|
|
400
400
|
```
|
|
401
401
|
|
|
402
402
|
上面例子中,通过字符串上传了一段脚本到 DolphinDB 数据库执行,并接收最后一条语句 `foo(1l, 1l)` 执行结果 result
|
package/browser.js
CHANGED
|
@@ -1889,7 +1889,8 @@ export function convert(type, value, le, { blob = 'string', char = 'string', tim
|
|
|
1889
1889
|
case DdbType.decimal32:
|
|
1890
1890
|
case DdbType.decimal64:
|
|
1891
1891
|
case DdbType.decimal128:
|
|
1892
|
-
|
|
1892
|
+
// 将表示 format 返回的表示空值的空字符串 '' 转为 null
|
|
1893
|
+
return format(type, value, le, { colors: false, timestamp }) || null;
|
|
1893
1894
|
default:
|
|
1894
1895
|
throw new Error(String(DdbType[type] || type) + t(' 暂时不支持转换为 js 对象'));
|
|
1895
1896
|
}
|