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/index.d.ts
CHANGED
|
@@ -315,6 +315,9 @@ export declare class DdbTimeStamp extends DdbObj<bigint> {
|
|
|
315
315
|
export declare class DdbNanoTimeStamp extends DdbObj<bigint> {
|
|
316
316
|
constructor(value: bigint | null);
|
|
317
317
|
}
|
|
318
|
+
export declare class DdbBlob extends DdbObj<Uint8Array> {
|
|
319
|
+
constructor(value: Uint8Array | ArrayBuffer);
|
|
320
|
+
}
|
|
318
321
|
export declare class DdbPair extends DdbObj<Int32Array> {
|
|
319
322
|
constructor(l: number | null, r?: number | null);
|
|
320
323
|
}
|
|
@@ -334,7 +337,7 @@ export declare class DdbVectorString extends DdbObj<string[]> {
|
|
|
334
337
|
constructor(strings: string[], name?: string);
|
|
335
338
|
}
|
|
336
339
|
export declare class DdbVectorAny extends DdbObj {
|
|
337
|
-
constructor(objs: (DdbObj | string | boolean)[], name?: string);
|
|
340
|
+
constructor(objs: (DdbObj | string | boolean | ArrayBuffer)[], name?: string);
|
|
338
341
|
}
|
|
339
342
|
export declare class DdbVectorSymbol extends DdbObj<DdbSymbolExtendedValue> {
|
|
340
343
|
constructor(strings: string[], name?: string);
|
|
@@ -451,7 +454,7 @@ type DdbRpcType = 'script' | 'function' | 'variable' | 'connect';
|
|
|
451
454
|
export interface DdbRpcOptions {
|
|
452
455
|
script?: string;
|
|
453
456
|
func?: string;
|
|
454
|
-
args?: (DdbObj | string | boolean)[];
|
|
457
|
+
args?: (DdbObj | string | boolean | ArrayBuffer)[];
|
|
455
458
|
vars?: string[];
|
|
456
459
|
urgent?: boolean;
|
|
457
460
|
listener?: DdbMessageListener;
|
|
@@ -614,7 +617,7 @@ export declare class DDB {
|
|
|
614
617
|
When it is false, the returned DdbObj only contains buffer and le without parsing,
|
|
615
618
|
so as to facilitate subsequent forwarding and serialization
|
|
616
619
|
*/
|
|
617
|
-
call<TResult extends DdbObj>(func: string, args?: (DdbObj | string | boolean)[], { urgent, node, nodes, func_type, add_node_alias, listener, parse_object, }?: {
|
|
620
|
+
call<TResult extends DdbObj>(func: string, args?: (DdbObj | string | boolean | ArrayBuffer)[], { urgent, node, nodes, func_type, add_node_alias, listener, parse_object, }?: {
|
|
618
621
|
urgent?: boolean;
|
|
619
622
|
node?: string;
|
|
620
623
|
nodes?: string[];
|
package/index.js
CHANGED
|
@@ -1675,6 +1675,15 @@ export class DdbNanoTimeStamp extends DdbObj {
|
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
+
export class DdbBlob extends DdbObj {
|
|
1679
|
+
constructor(value) {
|
|
1680
|
+
super({
|
|
1681
|
+
form: DdbForm.scalar,
|
|
1682
|
+
type: DdbType.blob,
|
|
1683
|
+
value: value instanceof Uint8Array ? value : new Uint8Array(value)
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1678
1687
|
export class DdbPair extends DdbObj {
|
|
1679
1688
|
constructor(l, r = null) {
|
|
1680
1689
|
super({
|