spice-js 2.5.36 → 2.5.37

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.
@@ -1061,7 +1061,7 @@ class SpiceModel {
1061
1061
 
1062
1062
  for (var i of _this14[_serializers][type]["modifiers"]) {
1063
1063
  try {
1064
- data = yield i(data, old_data, _this14[_ctx]);
1064
+ data = yield i(data, old_data, _this14[_ctx], _this14.type);
1065
1065
  } catch (e) {
1066
1066
  console.log(e.stack);
1067
1067
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spice-js",
3
- "version": "2.5.36",
3
+ "version": "2.5.37",
4
4
  "description": "spice",
5
5
  "main": "build/index.js",
6
6
  "repository": {
@@ -973,7 +973,7 @@ export default class SpiceModel {
973
973
  }
974
974
  for (let i of this[_serializers][type]["modifiers"]) {
975
975
  try {
976
- data = await i(data, old_data, this[_ctx]);
976
+ data = await i(data, old_data, this[_ctx], this.type);
977
977
  } catch (e) {
978
978
  console.log(e.stack);
979
979
  }