@lingui/macro
Advanced tools
Comparing version 3.14.0 to 3.15.0
22
index.js
@@ -59,2 +59,13 @@ "use strict"; | ||
var needsI18nImport = false; | ||
var alreadyVisitedCache = new WeakSet(); | ||
var alreadyVisited = function alreadyVisited(path) { | ||
if (alreadyVisitedCache.has(path)) { | ||
return true; | ||
} else { | ||
alreadyVisitedCache.add(path); | ||
return false; | ||
} | ||
}; | ||
Object.keys(references).forEach(function (tagName) { | ||
@@ -138,13 +149,2 @@ var nodes = references[tagName]; | ||
var alreadyVisitedCache = []; | ||
function alreadyVisited(path) { | ||
if (alreadyVisitedCache.includes(path)) { | ||
return true; | ||
} else { | ||
alreadyVisitedCache.push(path); | ||
return false; | ||
} | ||
} | ||
function getMacroType(tagName) { | ||
@@ -151,0 +151,0 @@ switch (tagName) { |
{ | ||
"name": "@lingui/macro", | ||
"version": "3.14.0", | ||
"version": "3.15.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.14.0", | ||
"@lingui/conf": "^3.15.0", | ||
"ramda": "^0.27.1" | ||
@@ -36,0 +36,0 @@ }, |
56193
Updated@lingui/conf@^3.15.0