dolphindb 2.0.976 → 2.0.978

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 CHANGED
@@ -45,7 +45,7 @@ npm install dolphindb
45
45
  ### 0. Initialize and connect to DolphinDB
46
46
  ```ts
47
47
  import { DDB } from 'dolphindb'
48
- // The import method for existing projects using CommonJS modules is const { DDB } = require('dolphindb')
48
+ // The import method for existing projects using CommonJS modules is const { DDB } = await import('dolphindb')
49
49
  // Use in browser: import { DDB } from 'dolphindb/browser.js'
50
50
 
51
51
  // Initially connect to an instance of DolphinDB using the WebSocket URL (without establishing an actual network connection)
package/README.zh.md CHANGED
@@ -45,7 +45,7 @@ npm install dolphindb
45
45
  ### 0. 初始化并连接到 DolphinDB
46
46
  ```ts
47
47
  import { DDB } from 'dolphindb'
48
- // 已有的使用 CommonJS 模块的项目的导入方法为 const { DDB } = require('dolphindb')
48
+ // 已有的使用 CommonJS 模块的项目的导入方法为 const { DDB } = await import('dolphindb')
49
49
  // 在浏览器中使用: import { DDB } from 'dolphindb/browser.js'
50
50
 
51
51
  // 使用 WebSocket URL 初始化连接到 DolphinDB 的实例(不建立实际的网络连接)
package/browser.js CHANGED
@@ -1284,7 +1284,7 @@ export function format(type, value, le, options = {}) {
1284
1284
  return colors ? green(str) : str;
1285
1285
  }
1286
1286
  case DdbType.date:
1287
- if (value === null || value === nulls.int16)
1287
+ if (value === null || value === nulls.int32)
1288
1288
  return get_nullstr();
1289
1289
  else {
1290
1290
  const str = date2str(value);
@@ -1305,7 +1305,7 @@ export function format(type, value, le, options = {}) {
1305
1305
  return colors ? magenta(str) : str;
1306
1306
  }
1307
1307
  case DdbType.minute:
1308
- if (value === null || value === nulls.int16)
1308
+ if (value === null || value === nulls.int32)
1309
1309
  return get_nullstr();
1310
1310
  else {
1311
1311
  const str = minute2str(value);