tailwindcss-react-native
Advanced tools
@@ -9,10 +9,13 @@ "use strict"; | ||
| function hasNamedImport(path, variable, source) { | ||
| if (path.node.source.value === source) { | ||
| if (path.node.source.value.startsWith(source)) { | ||
| return path.node.specifiers.some((specifier) => { | ||
| if (!(0, types_1.isImportSpecifier)(specifier)) { | ||
| return; | ||
| if ((0, types_1.isImportDefaultSpecifier)(specifier)) { | ||
| return specifier.local.name === variable; | ||
| } | ||
| return (0, types_1.isStringLiteral)(specifier.imported) | ||
| ? specifier.imported.value === variable | ||
| : specifier.local.name === variable; | ||
| else if ((0, types_1.isImportSpecifier)(specifier)) { | ||
| return (0, types_1.isStringLiteral)(specifier.imported) | ||
| ? specifier.imported.value === variable | ||
| : specifier.imported.name === variable; | ||
| } | ||
| return false; | ||
| }); | ||
@@ -19,0 +22,0 @@ } |
+1
-1
| { | ||
| "version": "1.7.9", | ||
| "version": "1.7.10", | ||
| "name": "tailwindcss-react-native", | ||
@@ -4,0 +4,0 @@ "description": "Use Tailwindcss in your cross-platform React Native applications", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
164044
0.1%3436
0.09%