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

akkeris

Package Overview
Dependencies
Maintainers
4
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akkeris - npm Package Compare versions

Comparing version 2.3.6 to 2.3.7

34

aka.js

@@ -13,17 +13,33 @@ #!/usr/bin/env node

process.on('uncaughtException', (e) => {
if(process.env.DEBUG) {
console.error(e.message)
console.error(e.stack)
} else {
console.log("An unexpected error occured, if this persists try running `mv ~/.akkeris ~/.akkeris.backup`.")
}
})
function init_plugins(module, plugins_dir) {
fs.readdirSync(plugins_dir).sort((a, b) => { return a < b ? -1 : 1 }).forEach((plugin => {
if(fs.statSync(path.join(plugins_dir, plugin, 'index.js')).isFile()) {
try {
module.exports.plugins[plugin] = require(path.join(plugins_dir, plugin, 'index.js'));
} catch (err) {
console.log(module.exports.terminal.markdown(`\n !!▸!! error loading plugin "${plugin}": ${err}\n`));
}
if(module.exports.plugins[plugin] && module.exports.plugins[plugin].init) {
if(path.basename(plugin).startsWith('.') || path.basename(plugin).startsWith("tmp")) {
return;
}
try {
if(fs.statSync(path.join(plugins_dir, plugin, 'index.js')).isFile()) {
try {
module.exports.plugins[plugin].init(module.exports);
module.exports.plugins[plugin] = require(path.join(plugins_dir, plugin, 'index.js'));
} catch (err) {
console.log(module.exports.terminal.markdown(`\n !!▸!! error initializing plugin "${plugin}": ${err}\n`));
console.log(module.exports.terminal.markdown(`\n !!▸!! error loading plugin "${plugin}": ${err}\n`));
}
if(module.exports.plugins[plugin] && module.exports.plugins[plugin].init) {
try {
module.exports.plugins[plugin].init(module.exports);
} catch (err) {
console.log(module.exports.terminal.markdown(`\n !!▸!! error initializing plugin "${plugin}": ${err}\n`));
}
}
}
} catch (err) {
console.log(module.exports.terminal.markdown(`\n !!▸!! error initializing plugin "${plugin}": ${err}\n`));
}

@@ -30,0 +46,0 @@ }));

{
"name": "akkeris",
"version": "2.3.6",
"version": "2.3.7",
"description": "Akkeris CLI",

@@ -21,2 +21,3 @@ "main": "aka.js",

"cliui": "^3.2.0",
"colors": "^1.1.2",
"netrc": "^0.1.4",

@@ -23,0 +24,0 @@ "yargs": "^8.0.1"

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