electron-builder-util
Advanced tools
Comparing version 19.14.0 to 19.15.0
@@ -124,2 +124,6 @@ declare module "electron-builder-util/out/promise" { | ||
consume(file: string, fileStat: Stats, parent: string, siblingNames: Array<string>): any | ||
/** | ||
* @default false | ||
*/ | ||
isIncludeDir?: boolean | ||
} | ||
@@ -126,0 +130,0 @@ |
@@ -50,8 +50,11 @@ "use strict"; | ||
let addDirToResult = false; | ||
const isIncludeDir = consumer == null ? false : consumer.isIncludeDir === true; | ||
while (queue.length > 0) { | ||
const dirPath = queue.pop(); | ||
if (addDirToResult) { | ||
result.push(dirPath); | ||
} else { | ||
addDirToResult = true; | ||
if (isIncludeDir) { | ||
if (addDirToResult) { | ||
result.push(dirPath); | ||
} else { | ||
addDirToResult = true; | ||
} | ||
} | ||
@@ -64,3 +67,3 @@ const childNames = yield (0, (_fsExtraP || _load_fsExtraP()).readdir)(dirPath); | ||
const sortedFilePaths = yield (_bluebirdLst2 || _load_bluebirdLst2()).default.map(childNames, function (name) { | ||
if (name === ".DS_Store") { | ||
if (name === ".DS_Store" || name === ".gitkeep") { | ||
return null; | ||
@@ -172,3 +175,3 @@ } | ||
const _isUseHardLink = process.platform != "win32" && process.env.USE_HARD_LINKS !== "false" && ((_isCi || _load_isCi()).default || process.env.USE_HARD_LINKS === "true"); | ||
const _isUseHardLink = process.platform !== "win32" && process.env.USE_HARD_LINKS !== "false" && ((_isCi || _load_isCi()).default || process.env.USE_HARD_LINKS === "true"); | ||
function copyFile(src, dest) { | ||
@@ -214,3 +217,3 @@ let isEnsureDir = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; | ||
} | ||
return new (_bluebirdLst2 || _load_bluebirdLst2()).default(function (resolve, reject) { | ||
return new (_bluebirdLst2 || _load_bluebirdLst2()).default((resolve, reject) => { | ||
(0, (_fcopyPreBundled || _load_fcopyPreBundled()).default)(src, dest, stats == null ? undefined : { mode: stats.mode }, error => error == null ? resolve() : reject(error)); | ||
@@ -285,3 +288,3 @@ }); | ||
} else { | ||
links.push({ "file": destFile, "link": yield (0, (_fsExtraP || _load_fsExtraP()).readlink)(file) }); | ||
links.push({ file: destFile, link: yield (0, (_fsExtraP || _load_fsExtraP()).readlink)(file) }); | ||
} | ||
@@ -288,0 +291,0 @@ }); |
@@ -144,3 +144,3 @@ "use strict"; | ||
headers: options.headers || undefined, | ||
agent: agent | ||
agent | ||
}), destination, 0, options, function (error) { | ||
@@ -147,0 +147,0 @@ if (error == null) { |
@@ -132,3 +132,3 @@ "use strict"; | ||
function removePassword(input) { | ||
return input.replace(/(-String |-P |pass:| \/p |-pass )([^ ]+)/g, function (match, p1, p2) { | ||
return input.replace(/(-String |-P |pass:| \/p |-pass )([^ ]+)/g, (match, p1, p2) => { | ||
return `${p1}${(0, (_crypto || _load_crypto()).createHash)("sha256").update(p2).digest("hex")} (sha256 hash)`; | ||
@@ -144,3 +144,3 @@ }); | ||
return new (_bluebirdLst || _load_bluebirdLst()).default((resolve, reject) => { | ||
(0, (_child_process || _load_child_process()).execFile)(file, args, options, function (error, stdout, stderr) { | ||
(0, (_child_process || _load_child_process()).execFile)(file, args, options, (error, stdout, stderr) => { | ||
if (error == null) { | ||
@@ -303,5 +303,5 @@ if (isLogOutIfDebug && debug.enabled) { | ||
if (index >= 0) { | ||
let list = inList.slice(0, index); | ||
const list = inList.slice(0, index); | ||
list.push.apply(list, _toConsumableArray(defaultList)); | ||
if (index != inList.length - 1) { | ||
if (index !== inList.length - 1) { | ||
list.push.apply(list, _toConsumableArray(inList.slice(index + 1))); | ||
@@ -308,0 +308,0 @@ } |
{ | ||
"name": "electron-builder-util", | ||
"version": "19.14.0", | ||
"version": "19.15.0", | ||
"main": "out/util.js", | ||
@@ -22,3 +22,3 @@ "author": "Vladimir Krivosheev", | ||
"node-emoji": "^1.6.1", | ||
"electron-builder-http": "~19.14.0", | ||
"electron-builder-http": "~19.15.0", | ||
"source-map-support": "^0.4.15", | ||
@@ -25,0 +25,0 @@ "7zip-bin": "^2.1.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
118241
1270
+ Addedelectron-builder-http@19.15.5(transitive)
- Removedelectron-builder-http@19.14.0(transitive)