babel-gettext-extractor
Advanced tools
Comparing version 4.1.1 to 4.1.2
@@ -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 @@ ], |
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
19683
394