@lingui/macro
Advanced tools
Comparing version 3.13.3 to 3.14.0
@@ -70,7 +70,4 @@ "use strict"; | ||
(0, _defineProperty2.default)(this, "safeJsxAttribute", function (name, value) { | ||
// Quoted JSX attributes use XML-style escapes instead of JavaScript-style escapes. | ||
// This means that <Trans id="Say \"hi\"!" /> is invalid, but <Trans id={"Say \"hi\"!"} /> is valid. | ||
// We could consider removing this condition and always wrap in a jsxExpressionContainer. | ||
var attributeValue = value.includes('"') ? _this.types.jsxExpressionContainer(_this.types.stringLiteral(value)) : _this.types.stringLiteral(value); | ||
return _this.types.jsxAttribute(_this.types.jsxIdentifier(name), attributeValue); | ||
// This handles quoted JSX attributes and html entities. | ||
return _this.types.jsxAttribute(_this.types.jsxIdentifier(name), _this.types.jsxExpressionContainer(_this.types.stringLiteral(value))); | ||
}); | ||
@@ -77,0 +74,0 @@ (0, _defineProperty2.default)(this, "replacePath", function (path) { |
{ | ||
"name": "@lingui/macro", | ||
"version": "3.13.3", | ||
"version": "3.14.0", | ||
"description": "Macro for generating messages in ICU MessageFormat syntax", | ||
@@ -33,3 +33,3 @@ "main": "index.js", | ||
"@babel/runtime": "^7.11.2", | ||
"@lingui/conf": "^3.13.3", | ||
"@lingui/conf": "^3.14.0", | ||
"ramda": "^0.27.1" | ||
@@ -36,0 +36,0 @@ }, |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
56148
1288
7
Updated@lingui/conf@^3.14.0