Comparing version 0.14.2 to 0.14.3
@@ -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) |
@@ -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) { |
@@ -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" |
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
29241
595