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

applesign

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

applesign - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

2

package.json

@@ -46,3 +46,3 @@ {

"name": "applesign",
"version": "0.4.1"
"version": "0.4.2"
}

@@ -244,12 +244,12 @@ 'use strict';

signLibraries (path, next) {
let signs = 0;
let errors = 0;
let found = false;
this.emit('message', 'Signing libraries and frameworks');
const libraries = [];
const exe = '/' + getExecutable(this.config.appdir);
let found = false;
walk.walkSync(path, (basedir, filename, stat) => {
const file = [ basedir, filename ].join('/');
if (file.endsWith(exe)) {
this.emit('message', 'Executable found at '+file);
found = true;

@@ -266,19 +266,3 @@ return;

if (isMacho(buffer)) {
found = true;
signs++;
this.signFile(file, (err) => {
signs--;
if (err) {
this.emit('error ', err);
errors++;
}
if (signs === 0) {
if (errors > 0) {
this.emit('message', 'Warning: Some (' + errors + ') errors happened.');
} else {
this.emit('message', 'Everything seems signed now');
}
next();
}
});
libraries.push(file);
}

@@ -294,2 +278,28 @@ fs.close(fd);

}
if (libraries.length > 0) {
let issues = 0;
let signs = 0;
this.emit('message', 'Found ' + libraries.length + ' libraries');
libraries.forEach((lib) => {
signs++;
this.signFile(lib, (err) => {
signs--;
if (err) {
this.emit('warning', err);
issues++;
}
if (signs === 0) {
if (issues > 0) {
this.emit('message', 'Warning: Some (' + issues + ') errors happened.');
} else {
this.emit('message', 'Everything seems signed now');
}
next();
}
});
});
} else {
this.emit('message', 'No libraries found, moving along');
next();
}
}

@@ -296,0 +306,0 @@

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