Socket
Socket
Sign inDemoInstall

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 4.0.0 to 4.0.1

4

lib/mocompiler.js

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

let charset = sharedFuncs.formatCharset(this._table.charset || ct.parameters.charset || 'utf-8');
const charset = sharedFuncs.formatCharset(this._table.charset || ct.parameters.charset || 'utf-8');

@@ -137,3 +137,3 @@ // clean up content-type charset independently using fallback if missing

let value = [].concat(this._table.translations[msgctxt][msgid].msgstr || []).join('\u0000');
const value = [].concat(this._table.translations[msgctxt][msgid].msgstr || []).join('\u0000');

@@ -140,0 +140,0 @@ list.push({

@@ -142,3 +142,2 @@ const encoding = require('encoding');

const translation = {};
let parts;
let msgctxt;

@@ -156,3 +155,3 @@ let msgidPlural;

parts = msgid.split('\u0000');
const parts = msgid.split('\u0000');
msgid = parts.shift();

@@ -159,0 +158,0 @@

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

let charset = sharedFuncs.formatCharset(this._table.charset || ct.parameters.charset || 'utf-8');
const charset = sharedFuncs.formatCharset(this._table.charset || ct.parameters.charset || 'utf-8');

@@ -178,0 +178,0 @@ // clean up content-type charset independently using fallback if missing

{
"name": "gettext-parser",
"description": "Parse and compile gettext po and mo files to/from json, nothing more, nothing less",
"version": "4.0.0",
"version": "4.0.1",
"author": "Andris Reinman",

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

"encoding": "^0.1.12",
"readable-stream": "^3.3.0",
"safe-buffer": "^5.1.2"
"readable-stream": "^3.4.0",
"safe-buffer": "^5.2.0"
},
"devDependencies": {
"chai": "^4.2.0",
"eslint": "^5.16.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.1.1",
"eslint": "^6.0.1",
"eslint-config-standard": "^13.0.1",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"mocha": "^6.1.2"
"mocha": "^6.1.4"
},

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

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