diff --git a/lib/deserializer-utils.js b/lib/deserializer-utils.js index 1265fd4..40fab45 100644 --- a/lib/deserializer-utils.js +++ b/lib/deserializer-utils.js @@ -159,7 +159,7 @@ module.exports = function (jsonapi, data, opts) { // If option is present, transform record if (opts && opts.transform) { - record = opts.transform(record); + record = opts.transform(record, data); } return record; diff --git a/package.json b/package.json index d4937d3..519e8cc 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { - "name": "jsonapi-serializer", - "version": "3.6.7", - "description": "A Node.js framework agnostic library for serializing your data to JSON API", + "name": "jsonapi-serializer-cvaize", + "version": "3.7.8", + "description": "A fork of jsonapi-serializer", "main": "index.js", "scripts": { "test": "./node_modules/mocha/bin/mocha" }, - "author": "Sandro Munda ", + "author": "Orlov Dmitry ", "license": "MIT", - "repository": "SeyZ/jsonapi-serializer", + "repository": "cvaize/jsonapi-serializer", "engines": { "node": ">=0.12" },