Comparing version 3.0.0 to 3.0.1
@@ -49,5 +49,5 @@ "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)(); | ||
const isTempDirManagedExternally = process.env.TMP_DIR_MANAGER_ENSURE_REMOVED_ON_EXIT === "false"; | ||
if (isTempDirManagedExternally) { | ||
promise = (_bluebirdLst || _load_bluebirdLst()).default.resolve(systemTmpDir); | ||
const isEnsureRemovedOnExit = process.env.TMP_DIR_MANAGER_ENSURE_REMOVED_ON_EXIT !== "false"; | ||
if (!isEnsureRemovedOnExit) { | ||
promise = Promise.resolve(systemTmpDir); | ||
} else if ((_fsExtraP || _load_fsExtraP()).mkdtemp == null) { | ||
@@ -60,3 +60,3 @@ const dir = _path.join(systemTmpDir, getTempName("temp-files")); | ||
return promise.then(it => (0, (_fsExtraP || _load_fsExtraP()).realpath)(it)).then(dir => { | ||
if (isTempDirManagedExternally) { | ||
if (isEnsureRemovedOnExit) { | ||
addExitHook(dir); | ||
@@ -158,3 +158,3 @@ } | ||
if (tempFiles.length === 0) { | ||
return (_bluebirdLst || _load_bluebirdLst()).default.resolve(); | ||
return Promise.resolve(); | ||
} | ||
@@ -161,0 +161,0 @@ this.tempFiles = []; |
{ | ||
"name": "temp-file", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"main": "out/main.js", | ||
@@ -20,11 +20,11 @@ "author": "Vladimir Krivosheev", | ||
"bluebird-lst": "^1.0.5", | ||
"fs-extra-p": "^4.4.4", | ||
"lazy-val": "^1.0.2" | ||
"fs-extra-p": "^4.5.0", | ||
"lazy-val": "^1.0.3" | ||
}, | ||
"devDependencies": { | ||
"@types/js-yaml": "^3.10.1", | ||
"@types/node": "^8.0.53", | ||
"@types/node": "^8.5.5", | ||
"babel-preset-ts-node6-bluebird": "^1.0.1", | ||
"ts-babel": "^4.1.8", | ||
"typescript": "^2.6.1" | ||
"typescript": "^2.6.2" | ||
}, | ||
@@ -31,0 +31,0 @@ "babel": { |
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
19097
Updatedfs-extra-p@^4.5.0
Updatedlazy-val@^1.0.3