Comparing version 2.1.3 to 3.0.0
@@ -42,5 +42,5 @@ "use strict"; | ||
// add date to avoid use stale temp dir | ||
const tempDirPrefix = `${process.pid.toString(16)}-${Date.now().toString(16)}`; | ||
const tempDirPrefix = `${process.pid.toString(36)}-${Date.now().toString(36)}`; | ||
function getTempName(prefix) { | ||
return `${prefix == null ? "" : `${prefix}-`}${tempDirPrefix}-${(tmpFileCounter++).toString(16)}`; | ||
return `${prefix == null ? "" : `${prefix}-`}${tempDirPrefix}-${(tmpFileCounter++).toString(36)}`; | ||
} | ||
@@ -118,3 +118,3 @@ const tempDir = new (_lazyVal || _load_lazyVal()).Lazy(() => { | ||
const nameSuffix = suffix == null ? "" : suffix.startsWith(".") ? suffix : `-${suffix}`; | ||
const result = `${it}${_path.sep}${namePrefix}${(tmpFileCounter++).toString(16)}${nameSuffix}`; | ||
const result = `${it}${_path.sep}${namePrefix}${(tmpFileCounter++).toString(36)}${nameSuffix}`; | ||
this.tempFiles.push({ | ||
@@ -121,0 +121,0 @@ path: result, |
{ | ||
"name": "temp-file", | ||
"version": "2.1.3", | ||
"version": "3.0.0", | ||
"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