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 0.2.5 to 0.2.6

10

lib/po.js

@@ -184,2 +184,8 @@ var fs = require('fs'),

// reverse what extract(string) method during PO.parse does
var _escape = function (string) {
string = string.replace(/\\/g, '\\\\');
return string.replace(/"/g, '\\"');
};
var _process = function (keyword, text, i) {

@@ -192,7 +198,7 @@ var lines = [],

parts.forEach(function (part) {
lines.push('"' + part + '"');
lines.push('"' + _escape(part) + '"');
});
}
else {
lines.push(keyword + index + ' "' + text + '"');
lines.push(keyword + index + ' "' + _escape(text) + '"');
}

@@ -199,0 +205,0 @@ return lines;

7

package.json
{
"name": "pofile",
"description": "Parse and serialize Gettext PO files.",
"version": "0.2.5",
"version": "0.2.6",
"author": {

@@ -11,4 +11,7 @@ "name": "Ruben Vermeersch",

"contributors": [
"Eyal Lewinsohn",
"Gabe Gorelick",
"Julian Bäume",
"Mike Holly"
"Mike Holly",
"Sander Houttekier"
],

@@ -15,0 +18,0 @@ "homepage": "http://github.com/rubenv/pofile",

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