@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.
package/dist/baseclient.js
CHANGED
|
@@ -1523,6 +1523,11 @@ const UpperR = 82;
|
|
|
1523
1523
|
function isWhite(c) {
|
|
1524
1524
|
return c === Space || c === Newline || c === Tab || c == CR;
|
|
1525
1525
|
}
|
|
1526
|
+
function toString(a) {
|
|
1527
|
+
if (typeof a === 'object' && a && typeof a.value === 'string')
|
|
1528
|
+
return a.value;
|
|
1529
|
+
return String(a);
|
|
1530
|
+
}
|
|
1526
1531
|
var TokType;
|
|
1527
1532
|
(function (TokType) {
|
|
1528
1533
|
TokType[TokType["Text"] = 0] = "Text";
|
|
@@ -1995,7 +2000,7 @@ class FilterExpr {
|
|
|
1995
2000
|
case TokType.Text:
|
|
1996
2001
|
for (let p in o)
|
|
1997
2002
|
if (o.hasOwnProperty(p) && (prop == null || p.toLowerCase() === prop)) {
|
|
1998
|
-
let s =
|
|
2003
|
+
let s = toString(o[p]);
|
|
1999
2004
|
if (s) {
|
|
2000
2005
|
let t = types ? types[p] : undefined;
|
|
2001
2006
|
if (t === 'skip')
|