Comparing version 2.1.1 to 2.1.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19215
174