Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asar

Package Overview
Dependencies
Maintainers
8
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asar - npm Package Compare versions

Comparing version 0.14.2 to 0.14.3

10

lib/asar.js

@@ -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)

2

lib/crawlfs.js

@@ -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"

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