dolphindb 2.0.977 → 2.0.979
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/docs.zh.json +2 -2
- package/package.json +8 -8
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 } =
|
|
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 } =
|
|
48
|
+
// 已有的使用 CommonJS 模块的项目的导入方法为 const { DDB } = await import('dolphindb')
|
|
49
49
|
// 在浏览器中使用: import { DDB } from 'dolphindb/browser.js'
|
|
50
50
|
|
|
51
51
|
// 使用 WebSocket URL 初始化连接到 DolphinDB 的实例(不建立实际的网络连接)
|
package/docs.zh.json
CHANGED
|
@@ -62875,7 +62875,7 @@
|
|
|
62875
62875
|
{
|
|
62876
62876
|
"type": "text",
|
|
62877
62877
|
"value": [
|
|
62878
|
-
"返回相应的纳秒时间戳。返回值类型是NANOTIMESTAMP,时间类型变量。如果参数 *X* 中没有日期,则返回值是
|
|
62878
|
+
"返回相应的纳秒时间戳。返回值类型是 NANOTIMESTAMP,时间类型变量。如果参数 *X* 中没有日期,则返回值是1970.01.01 00:00:00.000000000 + *X* 纳秒的时间戳。"
|
|
62879
62879
|
]
|
|
62880
62880
|
}
|
|
62881
62881
|
]
|
|
@@ -62890,7 +62890,7 @@
|
|
|
62890
62890
|
"value": [
|
|
62891
62891
|
"",
|
|
62892
62892
|
" $ nanotimestamp(1000000000);",
|
|
62893
|
-
"
|
|
62893
|
+
" 1970.01.01T00:00:01.000000000",
|
|
62894
62894
|
"",
|
|
62895
62895
|
" $ nanotimestamp(2012.12.03 12:06:09 2012.12.03 13:08:01);",
|
|
62896
62896
|
" [2012.12.03T12:06:09.000000000,2012.12.03T13:08:01.000000000]",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dolphindb",
|
|
3
3
|
"description": "DolphinDB JavaScript API",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.979",
|
|
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.
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
30
|
-
"@typescript-eslint/parser": "^
|
|
31
|
-
"eslint": "^8.
|
|
28
|
+
"@types/node": "^20.4.1",
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
30
|
+
"@typescript-eslint/parser": "^6.0.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.
|
|
34
|
+
"typescript": "^5.1.6"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"dayjs": "^1.11.
|
|
37
|
+
"dayjs": "^1.11.9",
|
|
38
38
|
"ipaddr.js": "^2.1.0",
|
|
39
39
|
"tslib": "^2.6.0",
|
|
40
|
-
"xshell": "^1.0.
|
|
40
|
+
"xshell": "^1.0.38"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsc",
|