From 2f33811e05d8501ab7519737edf629512876d118 Mon Sep 17 00:00:00 2001 From: cvaize Date: Sun, 16 Jan 2022 18:35:26 +0500 Subject: [PATCH 1/3] (Feat) Added the "data" parameter to the "transform" function. --- lib/deserializer-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From c154dee34c9a60c15cdc252bb2f02f92c78b8d28 Mon Sep 17 00:00:00 2001 From: cvaize Date: Sun, 16 Jan 2022 18:52:59 +0500 Subject: [PATCH 2/3] (Feat) Update package.json --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index d4937d3..7f112b6 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.7", + "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" }, From 2f384feff3598a86ade8f521871e27d86a1bde02 Mon Sep 17 00:00:00 2001 From: cvaize Date: Sun, 16 Jan 2022 18:53:19 +0500 Subject: [PATCH 3/3] (Feat) Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7f112b6..519e8cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jsonapi-serializer-cvaize", - "version": "3.7.7", + "version": "3.7.8", "description": "A fork of jsonapi-serializer", "main": "index.js", "scripts": {