Comparing version 1.0.2 to 1.0.3
var fs = require('fs'); | ||
var isArray = require('lodash.isarray'); | ||
@@ -320,3 +319,3 @@ function trim(string) { | ||
if (text != null) { | ||
if (isArray(text) && text.length > 1) { | ||
if (Array.isArray(text) && text.length > 1) { | ||
text.forEach(function (t, i) { | ||
@@ -326,4 +325,7 @@ lines = lines.concat(mkObsolete + _process(keyword, t, i)); | ||
} else { | ||
text = isArray(text) ? text.join() : text; | ||
var processed = _process(keyword, text); | ||
var index = (self.msgid_plural && Array.isArray(text)) ? | ||
0 : | ||
undefined; | ||
text = Array.isArray(text) ? text.join() : text; | ||
var processed = _process(keyword, text, index); | ||
//handle \n in single-line texts (can not be handled in _escape) | ||
@@ -330,0 +332,0 @@ for (var i = 1; i < processed.length - 1; i++) { |
{ | ||
"name": "pofile", | ||
"description": "Parse and serialize Gettext PO files.", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": { | ||
@@ -38,16 +38,14 @@ "name": "Ruben Vermeersch", | ||
"devDependencies": { | ||
"browserify": "~3.11.1", | ||
"grunt": "~0.4.2", | ||
"grunt-browserify": "~1.3.0", | ||
"grunt-bump": "0.0.13", | ||
"grunt-contrib-clean": "~0.5.0", | ||
"grunt-contrib-jshint": "~0.7.2", | ||
"grunt-contrib-uglify": "~0.2.7", | ||
"grunt-contrib-watch": "~0.5.3", | ||
"grunt-jscs-checker": "^0.5.1", | ||
"grunt-mocha-cli": "~1.4.0" | ||
"browserify": "~14.0.0", | ||
"grunt": "~1.0.1", | ||
"grunt-browserify": "~5.0.0", | ||
"grunt-bump": "0.8.0", | ||
"grunt-contrib-clean": "~1.0.0", | ||
"grunt-contrib-jshint": "~1.1.0", | ||
"grunt-contrib-uglify": "~2.1.0", | ||
"grunt-contrib-watch": "~1.0.0", | ||
"grunt-jscs": "~3.0.1", | ||
"grunt-mocha-cli": "~3.0.0" | ||
}, | ||
"dependencies": { | ||
"lodash.isarray": "~2.4.1" | ||
} | ||
"dependencies": {} | ||
} |
@@ -84,3 +84,3 @@ # pofile - gettext .po parsing for JavaScript | ||
The `PO` class exposes the following members: | ||
The `PO.Item` class exposes the following members: | ||
@@ -87,0 +87,0 @@ * `msgid`: The message id. |
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
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
19020
0
341
- Removedlodash.isarray@~2.4.1
- Removedlodash._isnative@2.4.1(transitive)
- Removedlodash.isarray@2.4.1(transitive)