dolphindb 2.0.977 → 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dolphindb",
3
3
  "description": "DolphinDB JavaScript API",
4
- "version": "2.0.977",
4
+ "version": "2.0.978",
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "browser": "./browser.js",
@@ -25,19 +25,19 @@
25
25
  "JavaScript"
26
26
  ],
27
27
  "devDependencies": {
28
- "@types/node": "^20.3.2",
29
- "@typescript-eslint/eslint-plugin": "^5.60.1",
30
- "@typescript-eslint/parser": "^5.60.1",
31
- "eslint": "^8.43.0",
28
+ "@types/node": "^20.4.0",
29
+ "@typescript-eslint/eslint-plugin": "^5.61.0",
30
+ "@typescript-eslint/parser": "^5.61.0",
31
+ "eslint": "^8.44.0",
32
32
  "eslint-plugin-xlint": "^1.0.6",
33
33
  "ts-node": "^10.9.1",
34
- "typescript": "^5.1.3"
34
+ "typescript": "^5.1.6"
35
35
  },
36
36
  "dependencies": {
37
- "dayjs": "^1.11.8",
37
+ "dayjs": "^1.11.9",
38
38
  "ipaddr.js": "^2.1.0",
39
39
  "tslib": "^2.6.0",
40
- "xshell": "^1.0.30"
40
+ "xshell": "^1.0.36"
41
41
  },
42
42
  "scripts": {
43
43
  "build": "tsc",