Socket
Socket
Sign inDemoInstall

electron-builder-util

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-builder-util - npm Package Compare versions

Comparing version 11.0.0 to 11.2.0

36

out/fs.js

@@ -68,19 +68,39 @@ "use strict";

const dirs = [];
yield (_bluebirdLstC2 || _load_bluebirdLstC2()).default.map(childNames, function (name) {
// our handler is async, but we should add sorted files, so, we add file to result not in the mapper, but after map
const sortedFilePaths = yield (_bluebirdLstC2 || _load_bluebirdLstC2()).default.map(childNames, function (name) {
const filePath = dirPath + _path.sep + name;
return (0, (_fsExtraP || _load_fsExtraP()).lstat)(filePath).then(function (stat) {
if (filter != null && !filter(filePath, stat)) {
return;
return null;
}
if (stat.isDirectory()) {
dirs.push(filePath);
const consumerResult = consumer == null ? null : consumer(filePath, stat, dirPath);
if (consumerResult == null || !("then" in consumerResult)) {
if (stat.isDirectory()) {
dirs.push(name);
return null;
} else {
return filePath;
}
} else {
result.push(filePath);
return consumerResult.then(function (it) {
// asarUtil can return modified stat (symlink handling)
if ((it != null && "isDirectory" in it ? it : stat).isDirectory()) {
dirs.push(name);
return null;
} else {
return filePath;
}
});
}
return consumer == null ? null : consumer(filePath, stat, dirPath);
});
}, CONCURRENCY);
for (let i = dirs.length - 1; i > -1; i--) {
queue.push(dirs[i]);
for (const child of sortedFilePaths) {
if (child != null) {
result.push(child);
}
}
dirs.sort();
for (const child of dirs) {
queue.push(dirPath + _path.sep + child);
}
}

@@ -87,0 +107,0 @@ return result;

{
"name": "electron-builder-util",
"version": "11.2.0",
"main": "out/util.js",

@@ -23,8 +24,7 @@ "author": "Vladimir Krivosheev",

"ansi-escapes": "^1.4.0",
"electron-builder-http": "11.0.0",
"electron-builder-http": "~11.2.0",
"source-map-support": "^0.4.8",
"7zip-bin": "^2.0.4"
},
"typings": "./out/electron-builder-util.d.ts",
"version": "11.0.0"
"typings": "./out/electron-builder-util.d.ts"
}

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