(opts = {})
| 126 | } |
| 127 | |
| 128 | inspect(opts = {}) { |
| 129 | if (typeof opts === 'string') opts = { types: opts }; |
| 130 | const { types = null, depth = 5, stage = null } = opts; |
| 131 | const activities = types == null ? |
| 132 | Array.from(this._activities.values()) : |
| 133 | this.activitiesOfTypes(types); |
| 134 | |
| 135 | if (stage != null) console.log(`\n${stage}`); |
| 136 | console.log(util.inspect(activities, false, depth, true)); |
| 137 | } |
| 138 | |
| 139 | activitiesOfTypes(types) { |
| 140 | if (!Array.isArray(types)) types = [ types ]; |
no test coverage detected