Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@rg-dev/stdlib

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rg-dev/stdlib - npm Package Compare versions

Comparing version
1.0.35
to
1.0.36
+10
-1
lib/node-env.cjs

@@ -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) {

+4
-1

@@ -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>;

@@ -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) {

{
"name": "@rg-dev/stdlib",
"version": "1.0.35",
"version": "1.0.36",
"description": "",

@@ -5,0 +5,0 @@ "scripts": {