dolphindb 2.0.936 → 2.0.937
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 +6 -3
- package/browser.js +9 -0
- package/browser.js.map +1 -1
- package/index.d.ts +6 -3
- package/index.js +9 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
package/browser.d.ts
CHANGED
|
@@ -322,6 +322,9 @@ export declare class DdbTimeStamp extends DdbObj<bigint> {
|
|
|
322
322
|
export declare class DdbNanoTimeStamp extends DdbObj<bigint> {
|
|
323
323
|
constructor(value: bigint | null);
|
|
324
324
|
}
|
|
325
|
+
export declare class DdbBlob extends DdbObj<Uint8Array> {
|
|
326
|
+
constructor(value: Uint8Array | ArrayBuffer);
|
|
327
|
+
}
|
|
325
328
|
export declare class DdbPair extends DdbObj<Int32Array> {
|
|
326
329
|
constructor(l: number | null, r?: number | null);
|
|
327
330
|
}
|
|
@@ -341,7 +344,7 @@ export declare class DdbVectorString extends DdbObj<string[]> {
|
|
|
341
344
|
constructor(strings: string[], name?: string);
|
|
342
345
|
}
|
|
343
346
|
export declare class DdbVectorAny extends DdbObj {
|
|
344
|
-
constructor(objs: (DdbObj | string | boolean)[], name?: string);
|
|
347
|
+
constructor(objs: (DdbObj | string | boolean | ArrayBuffer)[], name?: string);
|
|
345
348
|
}
|
|
346
349
|
export declare class DdbVectorSymbol extends DdbObj<DdbSymbolExtendedValue> {
|
|
347
350
|
constructor(strings: string[], name?: string);
|
|
@@ -460,7 +463,7 @@ type DdbRpcType = 'script' | 'function' | 'variable' | 'connect';
|
|
|
460
463
|
export interface DdbRpcOptions {
|
|
461
464
|
script?: string;
|
|
462
465
|
func?: string;
|
|
463
|
-
args?: (DdbObj | string | boolean)[];
|
|
466
|
+
args?: (DdbObj | string | boolean | ArrayBuffer)[];
|
|
464
467
|
vars?: string[];
|
|
465
468
|
urgent?: boolean;
|
|
466
469
|
listener?: DdbMessageListener;
|
|
@@ -624,7 +627,7 @@ export declare class DDB {
|
|
|
624
627
|
When it is false, the returned DdbObj only contains buffer and le without parsing,
|
|
625
628
|
so as to facilitate subsequent forwarding and serialization
|
|
626
629
|
*/
|
|
627
|
-
call<TResult extends DdbObj>(func: string, args?: (DdbObj | string | boolean)[], { urgent, node, nodes, func_type, add_node_alias, listener, parse_object, }?: {
|
|
630
|
+
call<TResult extends DdbObj>(func: string, args?: (DdbObj | string | boolean | ArrayBuffer)[], { urgent, node, nodes, func_type, add_node_alias, listener, parse_object, }?: {
|
|
628
631
|
urgent?: boolean;
|
|
629
632
|
node?: string;
|
|
630
633
|
nodes?: string[];
|
package/browser.js
CHANGED
|
@@ -1689,6 +1689,15 @@ export class DdbNanoTimeStamp extends DdbObj {
|
|
|
1689
1689
|
});
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
+
export class DdbBlob extends DdbObj {
|
|
1693
|
+
constructor(value) {
|
|
1694
|
+
super({
|
|
1695
|
+
form: DdbForm.scalar,
|
|
1696
|
+
type: DdbType.blob,
|
|
1697
|
+
value: value instanceof Uint8Array ? value : new Uint8Array(value)
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1692
1701
|
export class DdbPair extends DdbObj {
|
|
1693
1702
|
constructor(l, r = null) {
|
|
1694
1703
|
super({
|