@rg-dev/stdlib
Advanced tools
+4
-5
@@ -363,10 +363,9 @@ var __create = Object.create; | ||
| function createTempFilePath() { | ||
| const tmpDir = import_os.default.tmpdir(); | ||
| const timestamp = Date.now(); | ||
| const p = import_path.default.join(tmpDir, `temp_file_${timestamp}`); | ||
| const name = `temp_file_${process.pid}_${Date.now()}_${Math.random().toString(36).slice(2)}`; | ||
| const fullPath = import_path.default.join(import_os.default.tmpdir(), name); | ||
| return { | ||
| getName: () => p, | ||
| getName: () => fullPath, | ||
| cleanUp: () => { | ||
| try { | ||
| fs.unlinkSync(p); | ||
| fs.unlinkSync(fullPath); | ||
| } catch (e) { | ||
@@ -373,0 +372,0 @@ } |
+4
-5
@@ -350,10 +350,9 @@ var __create = Object.create; | ||
| function createTempFilePath() { | ||
| const tmpDir = os.tmpdir(); | ||
| const timestamp = Date.now(); | ||
| const p = path.join(tmpDir, `temp_file_${timestamp}`); | ||
| const name = `temp_file_${process.pid}_${Date.now()}_${Math.random().toString(36).slice(2)}`; | ||
| const fullPath = path.join(os.tmpdir(), name); | ||
| return { | ||
| getName: () => p, | ||
| getName: () => fullPath, | ||
| cleanUp: () => { | ||
| try { | ||
| fs.unlinkSync(p); | ||
| fs.unlinkSync(fullPath); | ||
| } catch (e) { | ||
@@ -360,0 +359,0 @@ } |
+1
-1
| { | ||
| "name": "@rg-dev/stdlib", | ||
| "version": "1.0.36", | ||
| "version": "1.0.37", | ||
| "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
541290
0.01%13552
-0.01%