diff --git a/core/core.js b/core/core.js index 9b7c182f..e8873da9 100644 --- a/core/core.js +++ b/core/core.js @@ -331,7 +331,7 @@ function getProcess(packageOwner, packageName, key, options) { let source = {}; for (let i in manifest.require) { let name = manifest.require[i]; - source[manifest[i]] = File.readFile("packages/" + process.packageOwner + "/" + name + "/" + name + ".js"); + source[name] = File.readFile("packages/" + process.packageOwner + "/" + name + "/" + name + ".js"); } process.task.setRequires(source); } diff --git a/packages/cory/ui/ui.js b/packages/cory/ui/ui.js index e7d35d1c..1fe96363 100644 --- a/packages/cory/ui/ui.js +++ b/packages/cory/ui/ui.js @@ -5,7 +5,8 @@ function fileList(settings) { terminal.setEcho(false); terminal.clear(); terminal.print(settings.title); - if (core.user.credentials.permissions.authenticated) { + if (core.user.credentials.permissions + && core.user.credentials.permissions.authenticated) { terminal.print({command: "new"}); } @@ -79,7 +80,8 @@ function fileList(settings) { }); for (var i = 0; i < entries.length; i++) { if (entries[i].substring(0, prefix.length) == prefix) { - if (core.user.credentials.permissions.authenticated) { + if (core.user.credentials.permissions + && core.user.credentials.permissions.authenticated) { terminal.print( "* ", {style: "font-weight: bold", value: {command: "open:" + entries[i], value: entries[i].substring(prefix.length)}},