@schukai/monster 3.14.0 → 3.14.1
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -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;
|
package/source/types/version.mjs
CHANGED
@@ -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'],
|
package/test/cases/monster.mjs
CHANGED