+8
-2
@@ -40,5 +40,11 @@ 'use strict' | ||
| module.exports.createPackageWithOptions = function (src, dest, options, callback) { | ||
| const dot = typeof options.dot === 'undefined' ? true : options.dot | ||
| const globOptions = options.globOptions ? options.globOptions : {} | ||
| globOptions.dot = options.dot === undefined ? true : options.dot | ||
| return crawlFilesystem(src, { dot: dot }, function (error, filenames, metadata) { | ||
| let pattern = src + '/**/*' | ||
| if (options.pattern) { | ||
| pattern = src + options.pattern | ||
| } | ||
| return crawlFilesystem(pattern, globOptions, function (error, filenames, metadata) { | ||
| if (error) { return callback(error) } | ||
@@ -45,0 +51,0 @@ module.exports.createPackageFromFiles(src, dest, filenames, metadata, options, callback) |
+1
-1
@@ -7,3 +7,3 @@ 'use strict' | ||
| const metadata = {} | ||
| return glob(dir + '/**/*', options, function (error, filenames) { | ||
| return glob(dir, options, function (error, filenames) { | ||
| if (error) { return callback(error) } | ||
@@ -10,0 +10,0 @@ for (const filename of filenames) { |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "description": "Creating Electron app packages", | ||
| "version": "0.14.2", | ||
| "version": "0.14.3", | ||
| "bin": { | ||
@@ -8,0 +8,0 @@ "asar": "./bin/asar.js" |
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
29241
0.53%595
0.85%