dolphindb 2.0.937 → 2.0.939
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 +3 -3
- package/browser.js +2 -1
- package/browser.js.map +1 -1
- package/index.d.ts +3 -3
- package/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -182,12 +182,12 @@ DdbObj[] | // any
|
|
|
182
182
|
DdbSymbolExtendedValue | DdbArrayVectorValue | DdbDecimal32VectorValue | DdbDecimal64VectorValue;
|
|
183
183
|
export type DdbValue = DdbScalarValue | DdbVectorValue | DdbMatrixValue | DdbDictValue | DdbChartValue;
|
|
184
184
|
export type DdbStringObj = DdbObj<string>;
|
|
185
|
-
export type DdbVectorObj = DdbObj<
|
|
185
|
+
export type DdbVectorObj<TValue extends DdbVectorValue = DdbVectorValue> = DdbObj<TValue>;
|
|
186
186
|
export type DdbVectorAnyObj = DdbObj<DdbObj[]>;
|
|
187
187
|
export type DdbVectorStringObj = DdbObj<string[]>;
|
|
188
188
|
export type DdbTableObj<TColumns extends DdbVectorObj[] = DdbVectorObj[]> = DdbObj<TColumns>;
|
|
189
|
-
export type DdbDictObj = DdbObj<[
|
|
190
|
-
export type DdbMatrixObj = DdbObj<
|
|
189
|
+
export type DdbDictObj<TKeys extends DdbVectorObj = DdbVectorObj, TValues extends DdbVectorObj = DdbVectorObj> = DdbObj<[TKeys, TValues]>;
|
|
190
|
+
export type DdbMatrixObj<TValue extends DdbMatrixValue = DdbMatrixValue> = DdbObj<TValue>;
|
|
191
191
|
export type DdbChartObj = DdbObj<DdbChartValue>;
|
|
192
192
|
export declare const nulls: {
|
|
193
193
|
readonly int8: -128;
|
package/index.js
CHANGED
|
@@ -2624,7 +2624,8 @@ export class DDB {
|
|
|
2624
2624
|
};
|
|
2625
2625
|
// 先准备好收到 websocket message 的 callback
|
|
2626
2626
|
this.on_message = buffer => {
|
|
2627
|
-
|
|
2627
|
+
// 复制一份,避免 handler 中异步直接使用传入的 streaming 这个对象时属性发生变化
|
|
2628
|
+
let streaming = { ...this.streaming, error: null };
|
|
2628
2629
|
try {
|
|
2629
2630
|
const dv = new DataView(buffer);
|
|
2630
2631
|
const buf = new Uint8Array(buffer);
|