New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

adonis-jsonapi

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-jsonapi - npm Package Compare versions

Comparing version

to
0.8.0

4

package.json
{
"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,