gettext-parser
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49963
1181
Updatedreadable-stream@^3.4.0
Updatedsafe-buffer@^5.2.0