@schukai/monster 3.31.1 → 3.32.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -168,8 +168,6 @@ function transform(value) {
|
|
168
168
|
let key;
|
169
169
|
let defaultValue;
|
170
170
|
|
171
|
-
let element;
|
172
|
-
let attribute;
|
173
171
|
let translations;
|
174
172
|
let date;
|
175
173
|
let locale;
|
@@ -330,6 +328,15 @@ function transform(value) {
|
|
330
328
|
if (trueStatement === "\\value") {
|
331
329
|
trueStatement = "value";
|
332
330
|
}
|
331
|
+
|
332
|
+
if (trueStatement === "\\undefined") {
|
333
|
+
trueStatement = undefined;
|
334
|
+
}
|
335
|
+
|
336
|
+
if (trueStatement === "\\null") {
|
337
|
+
trueStatement = null;
|
338
|
+
}
|
339
|
+
|
333
340
|
if (falseStatement === "value") {
|
334
341
|
falseStatement = value;
|
335
342
|
}
|
@@ -337,6 +344,14 @@ function transform(value) {
|
|
337
344
|
falseStatement = "value";
|
338
345
|
}
|
339
346
|
|
347
|
+
if (falseStatement === "\\undefined") {
|
348
|
+
falseStatement = undefined;
|
349
|
+
}
|
350
|
+
|
351
|
+
if (falseStatement === "\\null") {
|
352
|
+
falseStatement = null;
|
353
|
+
}
|
354
|
+
|
340
355
|
let condition =
|
341
356
|
(value !== undefined && value !== "" && value !== "off" && value !== "false" && value !== false) ||
|
342
357
|
value === "on" ||
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED