dolphindb 3.0.2 → 3.0.3
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 +1 -1
- package/browser.js +2 -6
- package/browser.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +2 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/test.js +28 -8
- package/test.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export declare class DdbObj<TValue extends DdbValue = DdbValue> {
|
|
|
152
152
|
];
|
|
153
153
|
pack(): Uint8Array;
|
|
154
154
|
static pack_vector_body(value: DdbVectorValue, type: DdbType, length: number): ArrayBufferView[];
|
|
155
|
-
[inspect.custom](depth: number, _options: InspectOptions, _inspect: any): string
|
|
155
|
+
[inspect.custom](depth: number, _options: InspectOptions, _inspect: any): string;
|
|
156
156
|
inspect_type(): string;
|
|
157
157
|
/** 自动转换 js string, boolean 为 DdbObj */
|
|
158
158
|
static to_ddbobj(value: DdbObj | string | boolean): DdbObj;
|
package/index.js
CHANGED
|
@@ -1008,16 +1008,12 @@ export class DdbObj {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
1010
|
[inspect.custom](depth, _options, _inspect) {
|
|
1011
|
-
const options = { nullstr: true,
|
|
1011
|
+
const options = { nullstr: true, ..._options };
|
|
1012
1012
|
const type = this.inspect_type();
|
|
1013
1013
|
const data = (() => {
|
|
1014
1014
|
switch (this.form) {
|
|
1015
1015
|
case DdbForm.scalar:
|
|
1016
|
-
|
|
1017
|
-
if (this.type === DdbType.string)
|
|
1018
|
-
return this.value;
|
|
1019
|
-
else
|
|
1020
|
-
return format(this.type, this.value, this.le, options);
|
|
1016
|
+
return format(this.type, this.value, this.le, options);
|
|
1021
1017
|
case DdbForm.vector:
|
|
1022
1018
|
case DdbForm.pair:
|
|
1023
1019
|
case DdbForm.set: {
|