@royalschedule/maps 2.3.33 → 2.3.34

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.
@@ -22,7 +22,7 @@ var _default = lockedTimes => {
22
22
  lockedTime = _objectWithoutProperties(_ref, _excluded);
23
23
  if (!(coalesced !== null && coalesced !== void 0 && coalesced.length)) return acc;
24
24
  return acc.concat(_objectSpread(_objectSpread({}, _lodash.default.omit(lockedTime, ['_id', 'belongsTo', 'lastModifiedBy', 'createdAt', 'updatedAt'])), coalesced && {
25
- coalesced: coalesced === null || coalesced === void 0 ? void 0 : coalesced.map(_ref2 => {
25
+ coalesced: coalesced === null || coalesced === void 0 ? void 0 : coalesced.filter(x => _lodash.default.isObject(x === null || x === void 0 ? void 0 : x.to)).map(_ref2 => {
26
26
  var {
27
27
  to: {
28
28
  id
@@ -35,7 +35,10 @@ var _default = lockedTimes => {
35
35
  };
36
36
  })
37
37
  }));
38
- }, []);
38
+ }, []).filter(x => {
39
+ var _x$coalesced;
40
+ return (_x$coalesced = x.coalesced) === null || _x$coalesced === void 0 ? void 0 : _x$coalesced.length;
41
+ });
39
42
  };
40
43
  exports.default = _default;
41
44
  //# sourceMappingURL=locked-times.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locked-times.js","mappings":";;;;;;AAAA;AAAyD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAMzCA,WAAuC,IAAI;EACzD,OAAOA,WAAW,CAACC,MAAM,CAAC,CAACC,GAAiB,WAAkC;IAAA,IAAhC;QAAEC;MAAwB,CAAE;MAAZC,UAAU;IAEtE,IAAI,EAAED,SAAS,aAATA,SAAS,eAATA,SAAS,CAAEE,MAAM,GAAE,OAAOH,GAAG;IAEnC,OAAOA,GAAG,CAACI,MAAM,iCACZC,eAAC,CAACC,IAAI,CAACJ,UAAU,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,GACpFD,SAAS,IAAI;MAAEA,SAAS,EAAEA,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEM,GAAG,CAAC;QAAA,IAAC;UAAEC,EAAE,EAAE;YAAEC;UAAE,CAAE;UAAEC;QAAO,CAAE;QAAA,OAAM;UAAEF,EAAE,EAAEC,EAAG,CAACE,QAAQ,EAAE;UAAED;QAAO,CAAE;MAAA,CAAC;IAAC,CAAE,EAC7G;EACJ,CAAC,EAAE,EAAE,CAA0E;AACjF,CAAC;AAAA","names":["lockedTimes","reduce","acc","coalesced","lockedTime","length","concat","_","omit","map","to","id","toModel","toString"],"sourceRoot":"","sources":["../../../../src/core/v2/to/locked-times.ts"],"sourcesContent":[null]}
1
+ {"version":3,"file":"locked-times.js","mappings":";;;;;;AAAA;AAAyD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,eAMzCA,WAAuC,IAAI;EACzD,OAAOA,WAAW,CAACC,MAAM,CAAC,CAACC,GAAiB,WAAkC;IAAA,IAAhC;QAAEC;MAAwB,CAAE;MAAZC,UAAU;IAEtE,IAAI,EAAED,SAAS,aAATA,SAAS,eAATA,SAAS,CAAEE,MAAM,GACrB,OAAOH,GAAG;IAEZ,OAAOA,GAAG,CAACI,MAAM,iCACZC,eAAC,CAACC,IAAI,CAACJ,UAAU,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,GACpFD,SAAS,IAAI;MAAEA,SAAS,EAAEA,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEM,MAAM,CAACC,CAAC,IAAIH,eAAC,CAACI,QAAQ,CAACD,CAAC,aAADA,CAAC,uBAADA,CAAC,CAAEE,EAAE,CAAC,CAAC,CAACC,GAAG,CAAC;QAAA,IAAC;UAAED,EAAE,EAAE;YAAEE;UAAE,CAAE;UAAEC;QAAO,CAAE;QAAA,OAAM;UAAEH,EAAE,EAAEE,EAAG,CAACE,QAAQ,EAAE;UAAED;QAAO,CAAE;MAAA,CAAC;IAAC,CAAE,EAC5I;EACJ,CAAC,EAAE,EAAE,CAAC,CAACN,MAAM,CAACC,CAAC;IAAA;IAAA,uBAAIA,CAAC,CAACP,SAAS,iDAAX,aAAaE,MAAM;EAAA,EAA0E;AAClH,CAAC;AAAA","names":["lockedTimes","reduce","acc","coalesced","lockedTime","length","concat","_","omit","filter","x","isObject","to","map","id","toModel","toString"],"sourceRoot":"","sources":["../../../../src/core/v2/to/locked-times.ts"],"sourcesContent":[null]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalschedule/maps",
3
- "version": "2.3.33",
3
+ "version": "2.3.34",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,6 +19,7 @@
19
19
  "dev_vKlass": "ts-node tests/vKlass/index.ts",
20
20
  "dev_PlanDigital": "ts-node tests/PlanDigital/index.ts",
21
21
  "dev_SS12000": "ts-node tests/SS12000/index.ts",
22
+ "dev_Core": "ts-node tests/core/index.ts",
22
23
  "dev_RS": "ts-node tests/RS/v2.ts",
23
24
  "dev_IdunSoft": "ts-node tests/IdunSoft/index.ts",
24
25
  "dev_identify": "ts-node tests/identify/index.ts"