babel-gettext-extractor
Advanced tools
Comparing version 4.1.2 to 4.1.3
17
index.js
@@ -87,14 +87,7 @@ var utils = require('./utils'); | ||
currentFileName = fileName; | ||
if (fs.existsSync(fileName)) { | ||
const fileContents = fs.readFileSync(fileName, 'utf8'); | ||
data = gettextParser.po.parse(fileContents); | ||
data.headers = Object.assign({}, data.headers || {}, headers); | ||
data.translations.context = data.translations.context || {}; | ||
} else { | ||
data = { | ||
charset: 'UTF-8', | ||
headers: headers, | ||
translations: { context: {} }, | ||
}; | ||
} | ||
data = { | ||
charset: 'UTF-8', | ||
headers: headers, | ||
translations: { context: {} }, | ||
}; | ||
@@ -101,0 +94,0 @@ headers['plural-forms'] = headers['plural-forms'] |
{ | ||
"name": "babel-gettext-extractor", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": " Extract gettext string with babel", | ||
@@ -30,3 +30,3 @@ "main": "index.js", | ||
"@babel/core": "^7.0.0", | ||
"gettext-parser": "^1.1.2" | ||
"gettext-parser": "1.4.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
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
9
19621
387
+ Addedcaniuse-lite@1.0.30001680(transitive)
+ Addedelectron-to-chromium@1.5.63(transitive)
- Removedcaniuse-lite@1.0.30001683(transitive)
- Removedelectron-to-chromium@1.5.64(transitive)
Updatedgettext-parser@1.4.0