Socket
Socket
Sign inDemoInstall

@lingui/macro

Package Overview
Dependencies
101
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.13.3 to 3.14.0

7

macroJsx.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc