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.2 to 0.2.3

7

lib/po.js

@@ -142,2 +142,6 @@ var fs = require('fs'),

}
else if (line.match(/^msgctxt/)) { // Context
finish();
item.msgctxt = extract(line);
}
else { // Probably multiline string or blank

@@ -164,2 +168,3 @@ if (line.length > 0) {

this.msgid = '';
this.msgctxt = '';
this.references = [];

@@ -203,3 +208,3 @@ this.msgid_plural = null;

['msgid', 'msgid_plural', 'msgstr'].forEach(function (keyword) {
['msgctxt', 'msgid', 'msgid_plural', 'msgstr'].forEach(function (keyword) {
var text = that[keyword];

@@ -206,0 +211,0 @@ if (text != null) {

2

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

@@ -6,0 +6,0 @@ "name": "Ruben Vermeersch",

@@ -95,2 +95,3 @@ # pofile - gettext .po parsing for JavaScript

`item.flags.fuzzy == true`.
* `msgctxt`: context of the message, an arbitrary string, can be used for disambiguation

@@ -97,0 +98,0 @@

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