dolphindb 2.0.521 → 2.0.524

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 CHANGED
@@ -1,4 +1,4 @@
1
- import 'xshell/prototype.browser';
1
+ import 'xshell/prototype.browser.js';
2
2
  export declare enum DdbForm {
3
3
  scalar = 0,
4
4
  vector = 1,
@@ -115,8 +115,7 @@ export declare enum DdbChartType {
115
115
  pie = 5,
116
116
  scatter = 6,
117
117
  trend = 7,
118
- kline = 8,
119
- stack = 9
118
+ kline = 8
120
119
  }
121
120
  export interface DdbChartValue {
122
121
  /** 原属性 chartType */
@@ -207,7 +206,7 @@ export declare class DdbObj<T extends DdbValue = DdbValue> {
207
206
  ];
208
207
  pack(): Uint8Array;
209
208
  static pack_vector_body(value: DdbVectorValue, type: DdbType, length: number): ArrayBufferView[];
210
- toString(): any;
209
+ toString(): string;
211
210
  /** 自动转换 js string, boolean 为 DdbObj */
212
211
  static to_ddbobj(value: DdbObj | string | boolean): DdbObj;
213
212
  /** 转换 js 数组为 DdbObj[] */
@@ -232,7 +231,7 @@ export declare class DdbObj<T extends DdbValue = DdbValue> {
232
231
  deep?: boolean;
233
232
  }): T;
234
233
  }
235
- export declare function format(type: DdbType, value: DdbValue, le: boolean): any;
234
+ export declare function format(type: DdbType, value: DdbValue, le: boolean): string;
236
235
  export declare class DdbVoid extends DdbObj<undefined> {
237
236
  constructor();
238
237
  }
package/browser.js CHANGED
@@ -8,8 +8,8 @@ const customParseFormat_js_1 = tslib_1.__importDefault(require("dayjs/plugin/cus
8
8
  dayjs_1.default.extend(customParseFormat_js_1.default);
9
9
  const ipaddr_js_1 = tslib_1.__importDefault(require("ipaddr.js"));
10
10
  const { fromByteArray: buf2ipaddr } = ipaddr_js_1.default;
11
- require("xshell/prototype.browser");
12
- const utils_browser_1 = require("xshell/utils.browser");
11
+ require("xshell/prototype.browser.js");
12
+ const utils_browser_js_1 = require("xshell/utils.browser.js");
13
13
  const net_browser_js_1 = require("xshell/net.browser.js");
14
14
  var DdbForm;
15
15
  (function (DdbForm) {
@@ -107,7 +107,6 @@ var DdbChartType;
107
107
  DdbChartType[DdbChartType["scatter"] = 6] = "scatter";
108
108
  DdbChartType[DdbChartType["trend"] = 7] = "trend";
109
109
  DdbChartType[DdbChartType["kline"] = 8] = "kline";
110
- DdbChartType[DdbChartType["stack"] = 9] = "stack";
111
110
  })(DdbChartType = exports.DdbChartType || (exports.DdbChartType = {}));
112
111
  exports.nulls = {
113
112
  int8: -0x80,
@@ -865,7 +864,7 @@ class DdbObj {
865
864
  })();
866
865
  if (!body)
867
866
  return new Uint8Array(0);
868
- return (0, utils_browser_1.concat)([
867
+ return (0, utils_browser_js_1.concat)([
869
868
  header,
870
869
  ...body
871
870
  ]);
@@ -2124,7 +2123,7 @@ class DDB {
2124
2123
  return 'connect\n';
2125
2124
  }
2126
2125
  })());
2127
- this.websocket.send((0, utils_browser_1.concat)([
2126
+ this.websocket.send((0, utils_browser_js_1.concat)([
2128
2127
  this.enc.encode(`API2 ${this.sid} ${command.length} / ${this.get_rpc_options({ urgent })}\n`),
2129
2128
  command,
2130
2129
  ...args.map((arg) => arg.pack())