dolphindb 3.1.36 → 3.1.38

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,7 +1,7 @@
1
1
  import type { Dayjs } from 'dayjs';
2
2
  import { Lock } from 'xshell/utils.browser.js';
3
3
  import { type WebSocketConnectionError } from 'xshell/net.browser.js';
4
- import { DdbChartType, DdbForm, DdbFunctionType, DdbType, DdbVoidType, type ConvertOptions, type DdbDecimal32Value, type DdbDecimal32VectorValue, type DdbDecimal64Value, type DdbDecimal64VectorValue, type DdbDurationValue, type DdbDurationVectorValue, type DdbFunctionDefValue, type DdbRpcType, type DdbScalarValue, type DdbSymbolExtendedValue, type DdbTableData, type DdbTensorValue, type IotVectorItemValue, type TensorData, type DdbExtObjValue, type ConvertableDdbTimeValue } from './common.ts';
4
+ import { DdbChartType, DdbForm, DdbFunctionType, DdbType, DdbVoidType, type ConvertOptions, type DdbDecimal32Value, type DdbDecimal32VectorValue, type DdbDecimal64Value, type DdbDecimal64VectorValue, type DdbDurationValue, type DdbDurationVectorValue, type DdbFunctionDefValue, type DdbRpcType, type DdbScalarValue, type DdbSymbolExtendedValue, type DdbTableData, type DdbTensorValue, type IotVectorItemValue, type TensorData, type DdbExtObjValue, type ConvertableDdbTimeValue, type DdbLanguage } from './common.ts';
5
5
  export * from './common.ts';
6
6
  export interface DdbDecimal128VectorValue {
7
7
  scale: number;
@@ -418,7 +418,7 @@ export declare class DDB {
418
418
  kdb: boolean;
419
419
  /** 是否为 dolphindb 语言 */
420
420
  dolphindb: boolean;
421
- language: 'dolphindb' | 'python' | 'kdb';
421
+ language: DdbLanguage;
422
422
  /** 表示本次会话执行的 SQL 标准 */
423
423
  sql: SqlStandard;
424
424
  /** 是否为流数据连接,非流数据这个字段恒为 null Whether it is a streaming data connection, this field is always null for non-streaming data */
package/browser.js CHANGED
@@ -2952,7 +2952,7 @@ export class DDB {
2952
2952
  });
2953
2953
  if (!this.ticket)
2954
2954
  try {
2955
- await this.invoke('login', [this.username, this.password]);
2955
+ await ddb.invoke('login', [this.username, this.password]);
2956
2956
  }
2957
2957
  catch (error) {
2958
2958
  console.log(t('ddb.cancel 无 ticket,尝试通过密码 login 失败'));