metarhia-common
Advanced tools
Comparing version 0.0.37 to 0.0.38
@@ -12,2 +12,3 @@ 'use strict'; | ||
'events', // Events and emitter | ||
'flags', // Flags data type | ||
'fp', // Functional programming | ||
@@ -14,0 +15,0 @@ 'id', // Keys and identifiers |
@@ -19,2 +19,3 @@ 'use strict'; | ||
'events', // Events and emitter | ||
'flags', // Flags data type | ||
'fp', // Functional programming | ||
@@ -21,0 +22,0 @@ 'id', // Keys and identifiers |
@@ -51,3 +51,3 @@ 'use strict'; | ||
while (end !== -1 && start < tpl.length) { | ||
result = tpl.substring(start, end); | ||
result += tpl.substring(start, end); | ||
start = end + 1; | ||
@@ -74,4 +74,4 @@ end = tpl.indexOf('@', start); | ||
if (value === undefined) { | ||
value = key === '.value' ? d : '[undefined]'; | ||
if (value === undefined && key === '.value') { | ||
value = d; | ||
} | ||
@@ -78,0 +78,0 @@ |
@@ -44,3 +44,3 @@ 'use strict'; | ||
while (end !== -1 && start < tpl.length) { | ||
result = tpl.substring(start, end); | ||
result += tpl.substring(start, end); | ||
start = end + 1; | ||
@@ -64,4 +64,4 @@ end = tpl.indexOf('@', start); | ||
let value = getByPath(d, key); | ||
if (value === undefined) { | ||
value = key === '.value' ? d : '[undefined]'; | ||
if (value === undefined && key === '.value') { | ||
value = d; | ||
} | ||
@@ -68,0 +68,0 @@ if (value === null) { |
{ | ||
"name": "metarhia-common", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Metarhia Common Library", |
@@ -16,2 +16,3 @@ 'use strict'; | ||
['Hello, @.name@', { person: { name: 'Ali' } }, 'person', true, 'Hello, Ali'], | ||
['@w@, @.name@', { w: 'Hello', person: { name: 'Ali' } }, 'person', true, 'Hello, Ali'], | ||
], | ||
@@ -18,0 +19,0 @@ 'common.section': [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
319048
89
9196
2