dolphindb 3.1.5 → 3.1.6

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
@@ -255,16 +255,16 @@ export declare class DdbVectorBool extends DdbObj<Int8Array> {
255
255
  constructor(bools?: (boolean | null)[], name?: string);
256
256
  }
257
257
  export declare class DdbVectorDatetime extends DdbObj<Int32Array> {
258
- constructor(datetimes: ConvertableDdbTimeValue[], name?: string);
258
+ constructor(datetimes?: ConvertableDdbTimeValue[], name?: string);
259
259
  }
260
260
  export declare class DdbVectorTimeStamp extends DdbObj<BigInt64Array> {
261
- constructor(timestamps: ConvertableDdbTimeValue[], name?: string);
261
+ constructor(timestamps?: ConvertableDdbTimeValue[], name?: string);
262
262
  }
263
263
  export declare class DdbVectorNanoTimeStamp extends DdbObj<BigInt64Array> {
264
- constructor(nanotimestamps: ConvertableDdbTimeValue[], name?: string);
264
+ constructor(nanotimestamps?: ConvertableDdbTimeValue[], name?: string);
265
265
  }
266
266
  export declare class DdbVectorDate extends DdbObj<BigInt64Array> {
267
- constructor(dates: ConvertableDdbTimeValue[], name?: string);
267
+ constructor(dates?: ConvertableDdbTimeValue[], name?: string);
268
268
  }
269
269
  export declare class DdbSetInt extends DdbObj<Int32Array> {
270
270
  constructor(ints: (number | null)[] | Set<number> | Int32Array);
package/browser.js CHANGED
@@ -2279,11 +2279,10 @@ export class DdbVectorBool extends DdbObj {
2279
2279
  constructor(bools, name) {
2280
2280
  const length = bools?.length || 0;
2281
2281
  let value = new Int8Array(length);
2282
- if (length)
2283
- for (let i = 0; i < length; ++i) {
2284
- const x = bools[i];
2285
- value[i] = empty(x) ? nulls.int8 : x ? 1 : 0;
2286
- }
2282
+ for (let i = 0; i < length; ++i) {
2283
+ const x = bools[i];
2284
+ value[i] = empty(x) ? nulls.int8 : x ? 1 : 0;
2285
+ }
2287
2286
  super({
2288
2287
  form: DdbForm.vector,
2289
2288
  type: DdbType.bool,