dolphindb 3.0.203 → 3.0.205
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/browser.d.ts +2 -2
- package/browser.js +2 -4
- package/browser.js.map +1 -1
- package/docs.js +1 -1
- package/docs.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -4
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/test.js.map +1 -1
package/browser.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const nulls: {
|
|
|
10
10
|
readonly float32: -3.4028234663852886e+38;
|
|
11
11
|
/** -Number.MAX_VALUE */
|
|
12
12
|
readonly double: number;
|
|
13
|
-
readonly bytes16: Uint8Array
|
|
13
|
+
readonly bytes16: Uint8Array<ArrayBuffer>;
|
|
14
14
|
};
|
|
15
15
|
export declare enum DdbForm {
|
|
16
16
|
scalar = 0,
|
|
@@ -417,7 +417,7 @@ export interface ConvertOptions {
|
|
|
417
417
|
/** `'ms'` timestamp 类型转换为字符串表示时显示到秒还是毫秒 */
|
|
418
418
|
timestamp?: 's' | 'ms';
|
|
419
419
|
}
|
|
420
|
-
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean |
|
|
420
|
+
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbDecimal128VectorValue | BigInt128Array | DdbSymbolExtendedValue | string[] | DdbArrayVectorValue | DdbMatrixValue | Uint8Array<ArrayBufferLike> | Int8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike> | BigInt64Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike>[] | DdbObj<DdbValue>[] | IotVectorItemValue | DdbDurationVectorValue | number[] | DdbTensorValue | DdbChartValue;
|
|
421
421
|
/** 转换一个向量到 js 原生数组 */
|
|
422
422
|
export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean, options?: ConvertOptions): any[] | Uint8Array;
|
|
423
423
|
export declare class DdbVoid extends DdbObj<undefined> {
|
package/browser.js
CHANGED
|
@@ -7,7 +7,7 @@ import 'xshell/prototype.browser.js';
|
|
|
7
7
|
import { blue, cyan, green, grey, magenta } from 'xshell/chalk.browser.js';
|
|
8
8
|
import { concat, assert, Lock, genid, seq, zip_object, decode, delay } from 'xshell/utils.browser.js';
|
|
9
9
|
import { connect_websocket } from 'xshell/net.browser.js';
|
|
10
|
-
import { t } from
|
|
10
|
+
import { t } from "./i18n/index.js";
|
|
11
11
|
export const nulls = {
|
|
12
12
|
int8: -0x80, // -128
|
|
13
13
|
int16: -0x80_00, // -32768
|
|
@@ -3276,10 +3276,8 @@ export class DDB {
|
|
|
3276
3276
|
else {
|
|
3277
3277
|
const type = typeof arg;
|
|
3278
3278
|
if (type === 'string' || type === 'boolean') { }
|
|
3279
|
-
else
|
|
3279
|
+
else
|
|
3280
3280
|
simple = false;
|
|
3281
|
-
break;
|
|
3282
|
-
}
|
|
3283
3281
|
}
|
|
3284
3282
|
let result;
|
|
3285
3283
|
if (simple)
|