@heroku/skynet 1.6.15 → 1.6.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ const SkynetAPI = require('../lib/skynet')
6
6
  async function run (context) {
7
7
  sudo()
8
8
  const skynet = new SkynetAPI(context.auth.password)
9
- let response = await skynet.suspensions(context.flags.user)
9
+ let response = await skynet.suspensions(context.flags.account)
10
10
  response = JSON.parse(response)
11
11
  cli.log(response)
12
12
  }
@@ -16,9 +16,9 @@ module.exports = {
16
16
  command: 'suspensions',
17
17
  description: '(requires sudo) suspnesions history of the given user account',
18
18
  help: `Examples:
19
- $ heroku skynet:suspensions -u [user account]`,
19
+ $ heroku skynet:suspensions -a [user account]`,
20
20
  flags: [
21
- { name: 'user', char: 'u', description: 'user account id or email', hasValue: true, required: true }
21
+ { name: 'account', char: 'a', description: 'user account email', hasValue: true, required: true }
22
22
  ],
23
23
  run: command(run)
24
24
  }
package/lib/skynet.js CHANGED
@@ -213,8 +213,8 @@ module.exports = class SkynetAPI {
213
213
  })
214
214
  }
215
215
 
216
- suspensions (user) {
217
- return this.request(`/v2/suspensions/${user}`, {
216
+ suspensions (account) {
217
+ return this.request(`/v2/suspensions/${account}`, {
218
218
  method: 'GET'
219
219
  })
220
220
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroku/skynet",
3
- "version": "1.6.15",
3
+ "version": "1.6.16",
4
4
  "description": "use Skynet from Heroku CLI",
5
5
  "main": "index.js",
6
6
  "author": "Bob Argenbright @byt3smith",