@schukai/monster 3.14.0 → 3.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schukai/monster",
3
- "version": "3.14.0",
3
+ "version": "3.14.1",
4
4
  "description": "Monster is a simple library for creating fast, robust and lightweight websites.",
5
5
  "keywords": [
6
6
  "framework",
@@ -406,6 +406,12 @@ function transform(value) {
406
406
  throw new Error("missing key parameter");
407
407
  }
408
408
 
409
+ // add empty strings
410
+ if (isString(key)&&key.trim()==="") {
411
+ concat += key;
412
+ continue;
413
+ }
414
+
409
415
  if (!pf2.exists(key)) {
410
416
  concat += key;
411
417
  continue;
@@ -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.14.0");
145
+ monsterVersion = new Version("3.14.1");
146
146
 
147
147
  return monsterVersion;
148
148
  }
@@ -28,6 +28,9 @@ describe('Transformer', function () {
28
28
 
29
29
  [
30
30
  ['concat:a.b.c:test:a.b.d', {a: {b: {c: 4, d: 6}}}, "4test6"],
31
+ ['concat:a.b.c:\\ \\ :a.b.d', {a: {b: {c: 4, d: 6}}}, "4 6"],
32
+ ['concat:a.b.c:,:a.b.d', {a: {b: {c: 4, d: 6}}}, "4,6"],
33
+ ['concat:a.b.c:,:\\ :a.b.d', {a: {b: {c: 4, d: 6}}}, "4, 6"],
31
34
  ['??:a', null, 'a'],
32
35
  ['??:a', undefined, 'a'],
33
36
  ['??:a', 'true', 'true'],
@@ -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.14.0")
10
+ monsterVersion = new Version("3.14.1")
11
11
 
12
12
  let m = getMonsterVersion();
13
13