@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schukai/monster",
3
- "version": "3.31.1",
3
+ "version": "3.32.0",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -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" ||
@@ -142,7 +142,7 @@ function getMonsterVersion() {
142
142
  }
143
143
 
144
144
  /** don't touch, replaced by make with package.json version */
145
- monsterVersion = new Version("3.31.1");
145
+ monsterVersion = new Version("3.32.0");
146
146
 
147
147
  return monsterVersion;
148
148
  }
@@ -7,7 +7,7 @@ describe('Monster', function () {
7
7
  let monsterVersion
8
8
 
9
9
  /** don´t touch, replaced by make with package.json version */
10
- monsterVersion = new Version("3.31.1")
10
+ monsterVersion = new Version("3.32.0")
11
11
 
12
12
  let m = getMonsterVersion();
13
13