gettext-parser
Advanced tools
Comparing version 5.1.2 to 6.0.0
@@ -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 @@ |
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
53146
+ Addedabort-controller@3.0.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedreadable-stream@4.5.2(transitive)
- Removedinherits@2.0.4(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedreadable-stream@^4.1.0