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 +4 -4
- package/browser.js +4 -5
- package/browser.js.map +1 -1
- package/common.d.ts +1 -1
- package/common.js +12 -14
- package/common.js.map +1 -1
- package/index.d.ts +4 -4
- package/index.js +4 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
258
|
+
constructor(datetimes?: ConvertableDdbTimeValue[], name?: string);
|
|
259
259
|
}
|
|
260
260
|
export declare class DdbVectorTimeStamp extends DdbObj<BigInt64Array> {
|
|
261
|
-
constructor(timestamps
|
|
261
|
+
constructor(timestamps?: ConvertableDdbTimeValue[], name?: string);
|
|
262
262
|
}
|
|
263
263
|
export declare class DdbVectorNanoTimeStamp extends DdbObj<BigInt64Array> {
|
|
264
|
-
constructor(nanotimestamps
|
|
264
|
+
constructor(nanotimestamps?: ConvertableDdbTimeValue[], name?: string);
|
|
265
265
|
}
|
|
266
266
|
export declare class DdbVectorDate extends DdbObj<BigInt64Array> {
|
|
267
|
-
constructor(dates
|
|
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
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
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,
|