dolphindb 3.0.211 → 3.0.212
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 +6 -6
- package/README.zh.md +5 -2
- package/browser.d.ts +1 -1
- package/index.d.ts +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -612,12 +612,12 @@ To close streaming data subscription, use the following two methods to disconnec
|
|
|
612
612
|
- Manually disconnect by calling `sddb.disconnect()`
|
|
613
613
|
|
|
614
614
|
|
|
615
|
-
|
|
615
|
+
### Development method
|
|
616
616
|
|
|
617
617
|
```shell
|
|
618
618
|
# Install the latest version of nodejs (see above)
|
|
619
619
|
|
|
620
|
-
# Install pnpm package manager
|
|
620
|
+
# Install the pnpm package manager
|
|
621
621
|
npm install -g pnpm
|
|
622
622
|
|
|
623
623
|
git clone https://github.com/dolphindb/api-javascript.git
|
|
@@ -630,13 +630,13 @@ pnpm install
|
|
|
630
630
|
# Copy .vscode/settings.template.json to .vscode/settings.json
|
|
631
631
|
cp .vscode/settings.template.json .vscode/settings.json
|
|
632
632
|
|
|
633
|
-
# Refer to
|
|
633
|
+
# Refer to scripts in package.json
|
|
634
634
|
|
|
635
635
|
# Build
|
|
636
636
|
pnpm run build
|
|
637
637
|
|
|
638
|
-
#
|
|
639
|
-
pnpm run
|
|
638
|
+
# Format code and automatically fix code errors
|
|
639
|
+
pnpm run fix
|
|
640
640
|
|
|
641
641
|
# Test
|
|
642
642
|
pnpm run test
|
|
@@ -644,6 +644,6 @@ pnpm run test
|
|
|
644
644
|
# Scan entries
|
|
645
645
|
pnpm run scan
|
|
646
646
|
# Manually complete untranslated entries
|
|
647
|
-
# Run
|
|
647
|
+
# Run scan again to update the dictionary file dict.json
|
|
648
648
|
pnpm run scan
|
|
649
649
|
```
|
package/README.zh.md
CHANGED
|
@@ -606,6 +606,9 @@ git clone https://github.com/dolphindb/api-javascript.git
|
|
|
606
606
|
|
|
607
607
|
cd api-javascript
|
|
608
608
|
|
|
609
|
+
# 国内网络推荐配置 registry
|
|
610
|
+
pnpm config set registry https://registry.npmmirror.com
|
|
611
|
+
|
|
609
612
|
# 安装项目依赖
|
|
610
613
|
pnpm install
|
|
611
614
|
|
|
@@ -617,8 +620,8 @@ cp .vscode/settings.template.json .vscode/settings.json
|
|
|
617
620
|
# 构建
|
|
618
621
|
pnpm run build
|
|
619
622
|
|
|
620
|
-
#
|
|
621
|
-
pnpm run
|
|
623
|
+
# 格式化代码并自动修复代码错误
|
|
624
|
+
pnpm run fix
|
|
622
625
|
|
|
623
626
|
# 测试
|
|
624
627
|
pnpm run test
|
package/browser.d.ts
CHANGED
|
@@ -419,7 +419,7 @@ export interface ConvertOptions {
|
|
|
419
419
|
/** `'ms'` timestamp 类型转换为字符串表示时显示到秒还是毫秒 */
|
|
420
420
|
timestamp?: 's' | 'ms';
|
|
421
421
|
}
|
|
422
|
-
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean |
|
|
422
|
+
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean | number[] | Uint8Array<ArrayBufferLike> | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | Int8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike> | BigInt64Array<ArrayBufferLike> | BigInt128Array | string[] | Uint8Array<ArrayBufferLike>[] | DdbObj<DdbValue>[] | IotVectorItemValue | DdbSymbolExtendedValue | DdbArrayVectorValue | DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbDecimal128VectorValue | DdbDurationVectorValue | DdbMatrixValue | DdbChartValue | DdbTensorValue;
|
|
423
423
|
/** 转换一个向量到 js 原生数组 */
|
|
424
424
|
export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean, options?: ConvertOptions): any[] | Uint8Array;
|
|
425
425
|
/** 构造 void 类型,默认为 `DdbVoidType.undefined` */
|
package/index.d.ts
CHANGED
|
@@ -408,7 +408,7 @@ export interface ConvertOptions {
|
|
|
408
408
|
/** `'ms'` timestamp 类型转换为字符串表示时显示到秒还是毫秒 */
|
|
409
409
|
timestamp?: 's' | 'ms';
|
|
410
410
|
}
|
|
411
|
-
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean |
|
|
411
|
+
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean | number[] | string[] | Uint8Array<ArrayBufferLike> | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | Int8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike> | BigInt64Array<ArrayBufferLike> | BigInt128Array | Uint8Array<ArrayBufferLike>[] | DdbObj<DdbValue>[] | IotVectorItemValue | DdbSymbolExtendedValue | DdbArrayVectorValue | DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbDecimal128VectorValue | DdbDurationVectorValue | DdbMatrixValue | DdbChartValue | DdbTensorValue;
|
|
412
412
|
/** 转换一个向量到 js 原生数组 */
|
|
413
413
|
export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean, options?: ConvertOptions): any[] | Uint8Array;
|
|
414
414
|
/** 构造 void 类型,默认为 `DdbVoidType.undefined` */
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dolphindb",
|
|
3
3
|
"description": "DolphinDB JavaScript API",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.212",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"browser": "./browser.js",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsc",
|
|
10
|
-
"test": "node ./test.ts",
|
|
10
|
+
"test": "node --experimental-transform-types ./test.ts",
|
|
11
11
|
"lint": "eslint \"**/*.{ts,tsx}\"",
|
|
12
12
|
"fix": "eslint --fix \"**/*.{ts,tsx}\"",
|
|
13
13
|
"scan": "i18n-scan --input \"**/*.{ts,tsx}\""
|
|
@@ -37,6 +37,6 @@
|
|
|
37
37
|
"dayjs": "^1.11.13",
|
|
38
38
|
"ipaddr.js": "^2.2.0",
|
|
39
39
|
"tslib": "^2.8.1",
|
|
40
|
-
"xshell": "^1.1.
|
|
40
|
+
"xshell": "^1.1.20"
|
|
41
41
|
}
|
|
42
42
|
}
|