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.
@@ -0,0 +1,10 @@
1
+ {
2
+ "recommendations": [
3
+ "MS-CEINTL.vscode-language-pack-zh-hans",
4
+ "mhutchie.git-graph",
5
+ "eamodio.gitlens",
6
+ "syler.sass-indented",
7
+ "dbaeumer.vscode-eslint"
8
+ ],
9
+ "unwantedRecommendations": []
10
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "typescript.tsdk": "node_modules/typescript/lib",
3
+ "files.trimTrailingWhitespace": false,
4
+ "editor.trimAutoWhitespace": false,
5
+ "editor.formatOnSave": false,
6
+ "editor.formatOnPaste": false,
7
+ "prettier.tabWidth": 4,
8
+ "editor.tabSize": 4,
9
+ "editor.codeActionsOnSave": {
10
+ "source.fixAll": true,
11
+ "source.organizeImports": false
12
+ }
13
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "typescript.tsdk": "node_modules/typescript/lib",
3
+ "files.trimTrailingWhitespace": false,
4
+ "editor.trimAutoWhitespace": false,
5
+ "editor.formatOnSave": false,
6
+ "editor.formatOnPaste": false,
7
+ "prettier.tabWidth": 4,
8
+ "editor.tabSize": 4,
9
+ "editor.codeActionsOnSave": {
10
+ "source.fixAll": true,
11
+ "source.organizeImports": false
12
+ }
13
+ }
package/browser.js CHANGED
@@ -171,7 +171,7 @@ class DdbObj {
171
171
  });
172
172
  const type = buf[0];
173
173
  const form = buf[1];
174
- if (buf.length <= 2) {
174
+ if (buf.length <= 2)
175
175
  return new this({
176
176
  le,
177
177
  form,
@@ -179,7 +179,6 @@ class DdbObj {
179
179
  length: 2,
180
180
  value: null,
181
181
  });
182
- }
183
182
  // set 里面 data 嵌套了一个 vector, 跳过 vector 的 type 和 form
184
183
  const i_data = form === DdbForm.set ? 4 : 2;
185
184
  const buf_data = buf.subarray(i_data);
@@ -1238,7 +1237,7 @@ class DdbObj {
1238
1237
  return this.value.map(col => ({
1239
1238
  title: col.name,
1240
1239
  dataIndex: col.name,
1241
- render: (value) => format(col.type, value, col.le, { nullstr: false, quote: false })
1240
+ render: value => format(col.type, value, col.le, { nullstr: false, quote: false })
1242
1241
  }));
1243
1242
  }
1244
1243
  to_rows() {
@@ -2331,6 +2330,7 @@ class DDB {
2331
2330
  resolve();
2332
2331
  }
2333
2332
  catch (error) {
2333
+ this.error ??= error;
2334
2334
  reject(error);
2335
2335
  }
2336
2336
  });