@royalschedule/maps 2.2.65 → 2.2.66

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.
@@ -13,7 +13,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
13
13
 
14
14
  var _default = overlapGroups => {
15
15
  return overlapGroups.reduce((acc, overlapGroup) => {
16
- var _overlapGroup$coalesc, _overlapGroup$coalesc2;
16
+ var _overlapGroup$coalesc, _overlapGroup$coalesc2, _overlapGroup$species;
17
17
 
18
18
  delete overlapGroup._id;
19
19
  delete overlapGroup.belongsTo;
@@ -32,6 +32,20 @@ var _default = overlapGroups => {
32
32
  toModel
33
33
  };
34
34
  });
35
+ overlapGroup.species = (_overlapGroup$species = overlapGroup.species) === null || _overlapGroup$species === void 0 ? void 0 : _overlapGroup$species.map(_ref2 => {
36
+ var {
37
+ to: {
38
+ id
39
+ },
40
+ toModel,
41
+ id: speciesId
42
+ } = _ref2;
43
+ return {
44
+ to: id,
45
+ toModel,
46
+ id: speciesId
47
+ };
48
+ });
35
49
  return acc.concat(_objectSpread({}, overlapGroup));
36
50
  }, []);
37
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"overlap-groups.js","mappings":";;;;;;;;;;;;;eAEgBA,aAAD,IAAkD;EAC/D,OAAOA,aAAa,CAACC,MAAd,CAAqB,CAACC,GAAD,EAAsBC,YAAtB,KAAoD;IAAA;;IAE9E,OAAOA,YAAY,CAACC,GAApB;IACA,OAAOD,YAAY,CAACE,SAApB;IACA,OAAQF,YAAoB,CAACG,cAA7B;IACA,OAAOH,YAAY,CAACI,SAApB;IAEA,IAAI,2BAAEJ,YAAY,CAACK,SAAf,kDAAE,sBAAwBC,MAA1B,CAAJ,EAAsC,OAAOP,GAAP;IAEtCC,YAAY,CAACK,SAAb,6BAAyBL,YAAY,CAACK,SAAtC,2DAAyB,uBAAwBE,GAAxB,CAA4B,QAA4B;MAAA,IAA3B;QAAEC,EAAE,EAAE;UAAEC;QAAF,CAAN;QAAcC;MAAd,CAA2B;MAAG,OAAO;QAAEF,EAAE,EAAEC,EAAN;QAAUC;MAAV,CAAP;IAA4B,CAAvF,CAAzB;IAEA,OAAOX,GAAG,CAACY,MAAJ,mBAAgBX,YAAhB,EAAP;EACD,CAZM,EAYJ,EAZI,CAAP;AAaD,C","names":["overlapGroups","reduce","acc","overlapGroup","_id","belongsTo","lastModifiedBy","createdAt","coalesced","length","map","to","id","toModel","concat"],"sourceRoot":"","sources":["../../../src/core/to/overlap-groups.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"overlap-groups.js","mappings":";;;;;;;;;;;;;eAEgBA,aAAD,IAAkD;EAC/D,OAAOA,aAAa,CAACC,MAAd,CAAqB,CAACC,GAAD,EAAsBC,YAAtB,KAAoD;IAAA;;IAE9E,OAAOA,YAAY,CAACC,GAApB;IACA,OAAOD,YAAY,CAACE,SAApB;IACA,OAAQF,YAAoB,CAACG,cAA7B;IACA,OAAOH,YAAY,CAACI,SAApB;IAEA,IAAI,2BAAEJ,YAAY,CAACK,SAAf,kDAAE,sBAAwBC,MAA1B,CAAJ,EAAsC,OAAOP,GAAP;IAEtCC,YAAY,CAACK,SAAb,6BAAyBL,YAAY,CAACK,SAAtC,2DAAyB,uBAAwBE,GAAxB,CAA4B,QAA4B;MAAA,IAA3B;QAAEC,EAAE,EAAE;UAAEC;QAAF,CAAN;QAAcC;MAAd,CAA2B;MAAG,OAAO;QAAEF,EAAE,EAAEC,EAAN;QAAUC;MAAV,CAAP;IAA4B,CAAvF,CAAzB;IACAV,YAAY,CAACW,OAAb,4BAAyBX,YAAY,CAACW,OAAtC,0DAAyB,sBAAsBJ,GAAtB,CAA0B,SAA2C;MAAA,IAA1C;QAAEC,EAAE,EAAE;UAAEC;QAAF,CAAN;QAAcC,OAAd;QAAuBD,EAAE,EAAEG;MAA3B,CAA0C;MAAG,OAAO;QAAEJ,EAAE,EAAEC,EAAN;QAAUC,OAAV;QAAmBD,EAAE,EAAEG;MAAvB,CAAP;IAA2C,CAAnH,CAAzB;IAEA,OAAOb,GAAG,CAACc,MAAJ,mBAAgBb,YAAhB,EAAP;EACD,CAbM,EAaJ,EAbI,CAAP;AAcD,C","names":["overlapGroups","reduce","acc","overlapGroup","_id","belongsTo","lastModifiedBy","createdAt","coalesced","length","map","to","id","toModel","species","speciesId","concat"],"sourceRoot":"","sources":["../../../src/core/to/overlap-groups.ts"],"sourcesContent":[null]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalschedule/maps",
3
- "version": "2.2.65",
3
+ "version": "2.2.66",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",