wizard-ql 4.0.0 → 4.0.1
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/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -924,12 +924,12 @@ class WizardParser {
|
|
|
924
924
|
return this._parse(tokens, 0);
|
|
925
925
|
}
|
|
926
926
|
addQuotesIfNecessary(value) {
|
|
927
|
+
const QUOTE = this.CONFIG.symbols.quotes[0];
|
|
927
928
|
if (value instanceof Date) {
|
|
928
|
-
return this.CONFIG.dateSerializer ? this.CONFIG.dateSerializer(value) : value.toISOString();
|
|
929
|
+
return this.CONFIG.dateSerializer ? this.CONFIG.dateSerializer(value) : QUOTE + value.toISOString() + QUOTE;
|
|
929
930
|
}
|
|
930
931
|
if (typeof value !== "string")
|
|
931
932
|
return value.toString();
|
|
932
|
-
const QUOTE = this.CONFIG.symbols.quotes[0];
|
|
933
933
|
if (value === "true")
|
|
934
934
|
return `${QUOTE}true${QUOTE}`;
|
|
935
935
|
if (value === "false")
|
|
@@ -1277,9 +1277,9 @@ function createDOMInput({ input, config, onUpdate, parseOnInitialize }) {
|
|
|
1277
1277
|
};
|
|
1278
1278
|
}
|
|
1279
1279
|
export {
|
|
1280
|
-
|
|
1281
|
-
WizardParser,
|
|
1282
|
-
TYPE_PRIORITY,
|
|
1280
|
+
ConstraintError,
|
|
1283
1281
|
ParseError,
|
|
1284
|
-
|
|
1282
|
+
TYPE_PRIORITY,
|
|
1283
|
+
WizardParser,
|
|
1284
|
+
createDOMInput
|
|
1285
1285
|
};
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
},
|
|
7
7
|
"homepage": "https://github.com/exoRift/wizard-ql",
|
|
8
8
|
"description": "WizardQL is a natural-language-like query language for constructing data queries for resources that meet conditions.",
|
|
9
|
-
"version": "4.0.
|
|
9
|
+
"version": "4.0.1",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git+https://github.com/exoRift/wizard-ql.git"
|