(count = 10)
| 59 | |
| 60 | // List recent edits |
| 61 | list(count = 10) { |
| 62 | return this.stack.slice(-count).reverse().map(e => ({ |
| 63 | id: e.id, |
| 64 | type: e.type, |
| 65 | path: e.path, |
| 66 | age: Math.floor((Date.now() - e.timestamp) / 1000), |
| 67 | })); |
| 68 | } |
| 69 | |
| 70 | _revert(entry) { |
| 71 | const fullPath = path.resolve(process.cwd(), entry.path); |
no outgoing calls
no test coverage detected