Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pofile

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pofile - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

10

lib/po.js
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++) {

26

package.json
{
"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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc