From 635a107f7eebc8fa9e254d545d7b97c27832a7dd Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 29 Apr 2020 20:56:39 +0300 Subject: [PATCH] changed .aliases to show all aliases and added .localAliases... Signed-off-by: Alex A. Naanou --- actions.js | 9 ++++++--- package.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/actions.js b/actions.js index 9512a44..1c126db 100755 --- a/actions.js +++ b/actions.js @@ -829,13 +829,16 @@ module.MetaActions = { // List aliases... // - // NOTE: this will only show the aliases local to this. get aliases(){ var that = this return this.actions .filter(function(n){ - return that.hasOwnProperty(n) - && that[n] instanceof Alias }) }, + return that[n] instanceof Alias }) }, + get localAliases(){ + var that = this + return this.aliases + .filter(function(n){ + return that.hasOwnProperty(n) })}, // XXX move this to the right spot... parseStringAction: parseStringAction, diff --git a/package.json b/package.json index 2cca750..7125dc3 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.24.9", + "version": "3.24.10", "description": "", "main": "actions.js", "scripts": {