@rg-dev/stdlib
Advanced tools
+4
-1
@@ -356,3 +356,3 @@ var __create = Object.create; | ||
| const timestamp = Date.now(); | ||
| const tempDirName = `temp_dir_${timestamp}`; | ||
| const tempDirName = `temp_dir_${timestamp}_${Math.random().toString(36).slice(2)}`; | ||
| const tempDirPath = import_path.default.join(tmpDir, tempDirName); | ||
@@ -364,2 +364,5 @@ console.log("tempDir", tempDirPath); | ||
| function createTempFilePath(ext) { | ||
| if (ext.startsWith(".")) { | ||
| ext = ext.slice(1); | ||
| } | ||
| const name = `temp_file_${process.pid}_${Date.now()}_${Math.random().toString(36).slice(2)}${ext ? `.${ext}` : ""}`; | ||
@@ -366,0 +369,0 @@ const fullPath = import_path.default.join(import_os.default.tmpdir(), name); |
+4
-1
@@ -343,3 +343,3 @@ var __create = Object.create; | ||
| const timestamp = Date.now(); | ||
| const tempDirName = `temp_dir_${timestamp}`; | ||
| const tempDirName = `temp_dir_${timestamp}_${Math.random().toString(36).slice(2)}`; | ||
| const tempDirPath = path.join(tmpDir, tempDirName); | ||
@@ -351,2 +351,5 @@ console.log("tempDir", tempDirPath); | ||
| function createTempFilePath(ext) { | ||
| if (ext.startsWith(".")) { | ||
| ext = ext.slice(1); | ||
| } | ||
| const name = `temp_file_${process.pid}_${Date.now()}_${Math.random().toString(36).slice(2)}${ext ? `.${ext}` : ""}`; | ||
@@ -353,0 +356,0 @@ const fullPath = path.join(os.tmpdir(), name); |
+1
-1
| { | ||
| "name": "@rg-dev/stdlib", | ||
| "version": "1.0.38", | ||
| "version": "1.0.39", | ||
| "description": "", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Network access
Supply chain riskThis module accesses the network.
Found 4 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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances 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
Network access
Supply chain riskThis module accesses the network.
Found 4 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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances 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
541558
0.04%13558
0.04%