Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

temp-file

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

temp-file - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

9

out/main.js

@@ -49,10 +49,13 @@ "use strict";

const systemTmpDir = process.env.TEST_TMP_DIR || process.env.ELECTRON_BUILDER_TMP_DIR || process.env.ELECTRON_BUILDER_TEST_DIR || (0, (_os || _load_os()).tmpdir)();
if ((_fsExtraP || _load_fsExtraP()).mkdtemp == null) {
const isTempDirManagedExternally = process.env.TMP_DIR_MANAGER_ENSURE_REMOVED_ON_EXIT !== "false";
if (isTempDirManagedExternally) {
promise = (_bluebirdLst || _load_bluebirdLst()).default.resolve(systemTmpDir);
} else if ((_fsExtraP || _load_fsExtraP()).mkdtemp == null) {
const dir = _path.join(systemTmpDir, getTempName("temp-files"));
promise = (0, (_fsExtraP || _load_fsExtraP()).ensureDir)(dir, { mode: 448 }).then(() => dir);
} else {
promise = (0, (_fsExtraP || _load_fsExtraP()).mkdtemp)(`${_path.join(systemTmpDir, "temp-files")}-`);
promise = (0, (_fsExtraP || _load_fsExtraP()).mkdtemp)(`${_path.join(systemTmpDir, "temp-dir")}-`);
}
return promise.then(it => (0, (_fsExtraP || _load_fsExtraP()).realpath)(it)).then(dir => {
if (process.env.TMP_DIR_MANAGER_ENSURE_REMOVED_ON_EXIT !== "false") {
if (isTempDirManagedExternally) {
addExitHook(dir);

@@ -59,0 +62,0 @@ }

{
"name": "temp-file",
"version": "2.1.1",
"version": "2.1.2",
"main": "out/main.js",

@@ -5,0 +5,0 @@ "author": "Vladimir Krivosheev",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc