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.1 to 4.1.2

8

index.js

@@ -39,4 +39,5 @@ var utils = require('./utils');

if (fs.existsSync(dirname)) {
return true;
return;
}
ensureDirectoryExistence(dirname);

@@ -90,6 +91,3 @@ fs.mkdirSync(dirname);

data = gettextParser.po.parse(fileContents);
data.headers = {
...(data.headers || {}),
...headers,
};
data.headers = Object.assign({}, data.headers || {}, headers);
data.translations.context = data.translations.context || {};

@@ -96,0 +94,0 @@ } else {

{
"name": "babel-gettext-extractor",
"version": "4.1.1",
"version": "4.1.2",
"description": " Extract gettext string with babel",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,2 @@

[![Build Status](https://travis-ci.org/mozilla/babel-gettext-extractor.svg?branch=master)](https://travis-ci.org/mozilla/babel-gettext-extractor)
[![Build Status](https://travis-ci.com/getsentry/babel-gettext-extractor.svg?branch=master)](https://travis-ci.org/getsentry/babel-gettext-extractor)
[![npm version](https://img.shields.io/npm/v/babel-gettext-extractor.svg)](https://www.npmjs.com/package/babel-gettext-extractor)

@@ -3,0 +3,0 @@

@@ -189,3 +189,3 @@ var assert = require('assert');

},
fileName: (file) => 'test/' + file.opts.sourceFileName + '-dynamic-filename.po',
fileName: (file) => 'test/' + file.opts.generatorOpts.sourceFileName + '-dynamic-filename.po',
}],

@@ -192,0 +192,0 @@ ],

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