gulp-i18n-leverage
Advanced tools
Comparing version 1.0.8 to 1.0.9
10
index.js
@@ -208,2 +208,12 @@ /* | ||
// adjust patch path for array item addition | ||
for (i in patch) { | ||
item = patch[i]; | ||
if (item.op === 'add' && | ||
item.path.match(/\/-$/)) { | ||
item.path = item.path.replace(/\/-$/, ''); | ||
item.path = item.path + '/' + (findValue(current, item.path).length - 1); | ||
} | ||
} | ||
// construct valueOpMap | ||
@@ -210,0 +220,0 @@ for (i in patch) { |
{ | ||
"name": "gulp-i18n-leverage", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Merge changes in default JSON into localized JSON for i18n-behavior", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
155423
3861