@dra2020/baseclient 1.0.137 → 1.0.138
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.
|
@@ -32,6 +32,13 @@ function isWhite(c: number): boolean
|
|
|
32
32
|
return c === Space || c === Newline || c === Tab || c == CR;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
function toString(a: any): string
|
|
36
|
+
{
|
|
37
|
+
if (typeof a === 'object' && a && typeof a.value === 'string')
|
|
38
|
+
return a.value;
|
|
39
|
+
return String(a);
|
|
40
|
+
}
|
|
41
|
+
|
|
35
42
|
enum TokType
|
|
36
43
|
{
|
|
37
44
|
Text,
|
|
@@ -637,7 +644,7 @@ export class FilterExpr
|
|
|
637
644
|
case TokType.Text:
|
|
638
645
|
for (let p in o) if (o.hasOwnProperty(p) && (prop == null || p.toLowerCase() === prop))
|
|
639
646
|
{
|
|
640
|
-
let s =
|
|
647
|
+
let s = toString(o[p]);
|
|
641
648
|
if (s)
|
|
642
649
|
{
|
|
643
650
|
let t = types ? types[p] : undefined;
|