dolphindb 2.0.954 → 2.0.956
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/.eslintrc.json +97 -0
- package/.eslintrc.schema.json +1509 -0
- package/.vscode/extensions.json +10 -0
- package/.vscode/settings.json +13 -0
- package/.vscode/settings.template.json +13 -0
- package/browser.js +3 -3
- package/browser.js.map +1 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/language.js +1 -1
- package/language.js.map +1 -1
- package/package.json +10 -5
- package/test.js +17 -0
- package/test.js.map +1 -1
package/index.js
CHANGED
|
@@ -169,7 +169,7 @@ class DdbObj {
|
|
|
169
169
|
});
|
|
170
170
|
const type = buf[0];
|
|
171
171
|
const form = buf[1];
|
|
172
|
-
if (buf.length <= 2)
|
|
172
|
+
if (buf.length <= 2)
|
|
173
173
|
return new this({
|
|
174
174
|
le,
|
|
175
175
|
form,
|
|
@@ -177,7 +177,6 @@ class DdbObj {
|
|
|
177
177
|
length: 2,
|
|
178
178
|
value: null,
|
|
179
179
|
});
|
|
180
|
-
}
|
|
181
180
|
// set 里面 data 嵌套了一个 vector, 跳过 vector 的 type 和 form
|
|
182
181
|
const i_data = form === DdbForm.set ? 4 : 2;
|
|
183
182
|
const buf_data = buf.subarray(i_data);
|
|
@@ -2321,6 +2320,7 @@ class DDB {
|
|
|
2321
2320
|
resolve();
|
|
2322
2321
|
}
|
|
2323
2322
|
catch (error) {
|
|
2323
|
+
this.error ??= error;
|
|
2324
2324
|
reject(error);
|
|
2325
2325
|
}
|
|
2326
2326
|
});
|