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.36
to
1.0.37
+4
-5
lib/node-env.cjs

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

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

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

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