@rg-dev/stdlib
Advanced tools
+10
-1
@@ -365,3 +365,12 @@ var __create = Object.create; | ||
| const timestamp = Date.now(); | ||
| return import_path.default.join(tmpDir, `temp_file_${timestamp}`); | ||
| const p = import_path.default.join(tmpDir, `temp_file_${timestamp}`); | ||
| return { | ||
| getName: () => p, | ||
| cleanUp: () => { | ||
| try { | ||
| fs.unlinkSync(p); | ||
| } catch (e) { | ||
| } | ||
| } | ||
| }; | ||
| } | ||
@@ -368,0 +377,0 @@ async function throwIfDirNotEmpty(dirPath) { |
@@ -34,3 +34,6 @@ import { Response } from 'express'; | ||
| declare function createTempDir(): string; | ||
| declare function createTempFilePath(): string; | ||
| declare function createTempFilePath(): { | ||
| getName: () => string; | ||
| cleanUp: () => void; | ||
| }; | ||
| declare function throwIfDirNotEmpty(dirPath: string): Promise<void>; | ||
@@ -37,0 +40,0 @@ declare function checkCommandExistsOrThrow(cmd: string): Promise<void>; |
@@ -34,3 +34,6 @@ import { Response } from 'express'; | ||
| declare function createTempDir(): string; | ||
| declare function createTempFilePath(): string; | ||
| declare function createTempFilePath(): { | ||
| getName: () => string; | ||
| cleanUp: () => void; | ||
| }; | ||
| declare function throwIfDirNotEmpty(dirPath: string): Promise<void>; | ||
@@ -37,0 +40,0 @@ declare function checkCommandExistsOrThrow(cmd: string): Promise<void>; |
+10
-1
@@ -352,3 +352,12 @@ var __create = Object.create; | ||
| const timestamp = Date.now(); | ||
| return path.join(tmpDir, `temp_file_${timestamp}`); | ||
| const p = path.join(tmpDir, `temp_file_${timestamp}`); | ||
| return { | ||
| getName: () => p, | ||
| cleanUp: () => { | ||
| try { | ||
| fs.unlinkSync(p); | ||
| } catch (e) { | ||
| } | ||
| } | ||
| }; | ||
| } | ||
@@ -355,0 +364,0 @@ async function throwIfDirNotEmpty(dirPath) { |
+1
-1
| { | ||
| "name": "@rg-dev/stdlib", | ||
| "version": "1.0.35", | ||
| "version": "1.0.36", | ||
| "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
541210
0.07%13554
0.16%