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

babel-gettext-extractor

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-gettext-extractor - npm Package Compare versions

Comparing version 4.1.2 to 4.1.3

CHANGELOG.md

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": {

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