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

gettext-parser

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gettext-parser - npm Package Compare versions

Comparing version 5.1.2 to 6.0.0

4

lib/pocompiler.js

@@ -285,6 +285,6 @@ const { Buffer } = require('safe-buffer');

if (this._table.charset === 'utf-8' || this._table.charset === 'ascii') {
return Buffer.from(response.join(eol + eol), 'utf-8');
return Buffer.from(response.join(eol + eol) + eol, 'utf-8');
}
return encoding.convert(response.join(eol + eol), this._table.charset);
return encoding.convert(response.join(eol + eol) + eol, this._table.charset);
};
{
"name": "gettext-parser",
"description": "Parse and compile gettext po and mo files to/from json, nothing more, nothing less",
"version": "5.1.2",
"version": "6.0.0",
"author": "Andris Reinman",

@@ -28,3 +28,3 @@ "contributors": [

"encoding": "^0.1.13",
"readable-stream": "^3.6.0",
"readable-stream": "^4.1.0",
"safe-buffer": "^5.2.1"

@@ -34,8 +34,8 @@ },

"chai": "^4.3.6",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.25.2",
"eslint": "^8.21.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.2.0",
"mocha": "^9.2.1"
"eslint-plugin-promise": "^6.0.0",
"mocha": "^10.0.0"
},

@@ -42,0 +42,0 @@ "keywords": [

@@ -80,3 +80,3 @@ gettext-parser [![ci](https://github.com/smhg/gettext-parser/actions/workflows/ci.yml/badge.svg)](https://github.com/smhg/gettext-parser/actions/workflows/ci.yml)

var output = gettextParser.po.compile(data);
require('fs').writeFileSync(output);
require('fs').writeFileSync('filename.po', output);
```

@@ -122,3 +122,3 @@

var output = gettextParser.mo.compile(data);
require('fs').writeFileSync(output);
require('fs').writeFileSync('filename.mo', output);
```

@@ -125,0 +125,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