adonis-jsonapi
Advanced tools
Comparing version
{ | ||
"name": "adonis-jsonapi", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "A JSON API configuration for adonis-framework", | ||
@@ -30,3 +30,3 @@ "main": "index.js", | ||
"i": "^0.3.5", | ||
"jsonapi-serializer": "^3.3.0", | ||
"jsonapi-serializer": "^3.5.0", | ||
"lodash.keysin": "^4.2.0", | ||
@@ -33,0 +33,0 @@ "lodash.mapkeys": "^4.6.0", |
@@ -28,2 +28,6 @@ const i = require('inflect'); | ||
get primaryKey() { | ||
return 'id'; | ||
} | ||
get type() { | ||
@@ -58,2 +62,3 @@ return i.dasherize(i.underscore(this.constructor.name)); | ||
return { | ||
id: this.primaryKey, | ||
type: this.type, | ||
@@ -60,0 +65,0 @@ attributes: this.attributes, |
16684
0.42%223
1.83%Updated