@heroku/skynet 1.13.0 → 1.14.0

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.
Files changed (2) hide show
  1. package/lib/skynet.js +4 -5
  2. package/package.json +1 -1
package/lib/skynet.js CHANGED
@@ -33,13 +33,12 @@ module.exports = class SkynetAPI {
33
33
  }
34
34
 
35
35
  addCategory (name, description) {
36
- const body = {
37
- category: name,
38
- description: description
39
- }
40
36
  return this.request('/categories', {
41
37
  method: 'POST',
42
- form: body
38
+ json: {
39
+ category: name,
40
+ description: description
41
+ }
43
42
  })
44
43
  }
45
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroku/skynet",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "use Skynet from Heroku CLI",
5
5
  "main": "index.js",
6
6
  "author": "Bob Argenbright @byt3smith",