dolphindb 2.0.973 → 2.0.975

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/index.js CHANGED
@@ -20,7 +20,7 @@ BigInt128Array.prototype[inspect.custom] = function () {
20
20
  return `${this[Symbol.toStringTag]}(${this.length}) [${value_str}]`;
21
21
  };
22
22
  /** 可以表示所有 DolphinDB 数据库中的数据类型 Can represent data types in all DolphinDB databases */
23
- class DdbObj {
23
+ export class DdbObj {
24
24
  static dec = new TextDecoder('utf-8');
25
25
  static enc = new TextEncoder();
26
26
  /** 维护已解析的 symbol base,比如流数据中后续的 symbol 向量可能只发送一个 base.id, base.size == 0, 依赖之前发送的 symbol base ?
@@ -1216,7 +1216,6 @@ class DdbObj {
1216
1216
  return obj;
1217
1217
  }
1218
1218
  }
1219
- export { DdbObj };
1220
1219
  /** 整数一定用这个 number formatter, InspectOptions.decimals 不传也用这个 */
1221
1220
  let default_formatter = Intl.NumberFormat('en-US', { maximumFractionDigits: 20 });
1222
1221
  let _decimals = 20;
@@ -2105,7 +2104,7 @@ export class DdbDatabaseError extends Error {
2105
2104
  this.options = options;
2106
2105
  }
2107
2106
  }
2108
- class DDB {
2107
+ export class DDB {
2109
2108
  /** 当前的 session id (http 或 tcp) */
2110
2109
  sid = '0';
2111
2110
  /** utf-8 text decoder */
@@ -2672,7 +2671,6 @@ class DDB {
2672
2671
  return this.streaming;
2673
2672
  }
2674
2673
  }
2675
- export { DDB };
2676
2674
  // const ddb_gateway = {
2677
2675
  // server: null as SocketServer,
2678
2676
  // clients: new Set<Socket>(),