Socket
Socket
Sign inDemoInstall

@lingui/macro

Package Overview
Dependencies
94
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.8.6 to 3.8.7

7

macroJs.js

@@ -38,3 +38,2 @@ "use strict";

var keepNewLineRe = /(?:\r\n|\r|\n)+\s+/g;
var removeExtraScapedLiterals = /(?:\\(.))/g;

@@ -330,6 +329,4 @@ function normalizeWhitespace(text) {

value: function clearBackslashes(value) {
// it's an unicode char so we should keep them
if (value.includes("\\u")) return value.replace(removeExtraScapedLiterals, "\/u"); // if not we replace the extra scaped literals
return value.replace(removeExtraScapedLiterals, "`");
// if not we replace the extra scaped literals
return value.replace(/\\`/g, "`");
}

@@ -336,0 +333,0 @@ /**

@@ -35,3 +35,2 @@ "use strict";

var pluralRuleRe = /(_[\d\w]+|zero|one|two|few|many|other)/;
var removeExtraScapedLiterals = /(?:\\(.))/g;

@@ -338,6 +337,4 @@ var jsx2icuExactChoice = function jsx2icuExactChoice(value) {

value: function clearBackslashes(value) {
// it's an unicode char so we should keep them
if (value.includes("\\u")) return value.replace(removeExtraScapedLiterals, "\/u"); // if not we replace the extra scaped literals
return value.replace(removeExtraScapedLiterals, "`");
// if not we replace the extra scaped literals
return value.replace(/\\`/g, "`");
}

@@ -344,0 +341,0 @@ /**

{
"name": "@lingui/macro",
"version": "3.8.6",
"version": "3.8.7",
"description": "Macro for generating messages in ICU MessageFormat syntax",

@@ -33,3 +33,3 @@ "main": "index.js",

"@babel/runtime": "^7.11.2",
"@lingui/conf": "^3.8.6",
"@lingui/conf": "^3.8.7",
"ramda": "^0.27.1"

@@ -36,0 +36,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc