messages-modules
Advanced tools
Comparing version 1.1.16 to 1.1.17
@@ -224,3 +224,3 @@ "use strict"; | ||
var binding = nodePath.scope.getBinding(currentName); | ||
if (!binding) { | ||
if (!binding || binding.referencePaths.length === 0) { | ||
return; // If the function is unused (no binding), no need to hijack. | ||
@@ -303,4 +303,2 @@ } | ||
if (isMatchingNamedImport(bodyNodePath, hijackTarget)) { | ||
// console.log('----------') | ||
// console.dir(bodyNodePath) | ||
hijackNamedImport(bodyNodePath, hijackTarget, messages); | ||
@@ -307,0 +305,0 @@ } |
{ | ||
"name": "messages-modules", | ||
"version": "1.1.16", | ||
"version": "1.1.17", | ||
"description": "Messages (localized strings) that are scoped locally.", | ||
@@ -51,3 +51,3 @@ "author": "Avansai (https://avansai.com)", | ||
"@types/jest": "^29.2.0", | ||
"@types/node": "^18.11.7", | ||
"@types/node": "^18.11.8", | ||
"@typescript-eslint/eslint-plugin": "^5.41.0", | ||
@@ -54,0 +54,0 @@ "@typescript-eslint/parser": "^5.41.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
1
28783
458