cht-conf 3.15.0 → 3.15.1
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.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/lib/lineage-constraints.js +1 -1
- package/src/nools/target-emitter.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [3.15.1](https://github.com/medic/cht-conf/compare/v3.15.0...v3.15.1) (2022-12-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **#123:** Target date default to Now ([#516](https://github.com/medic/cht-conf/issues/516)) ([312219e](https://github.com/medic/cht-conf/commit/312219e8f7d55340513cf0b2be9bdf276762a23a)), closes [#123](https://github.com/medic/cht-conf/issues/123)
|
|
7
|
+
|
|
1
8
|
# [3.15.0](https://github.com/medic/cht-conf/compare/v3.14.0...v3.15.0) (2022-08-19)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@ const lineageConstraints = async (repository, parentDoc) => {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
/*
|
|
41
|
-
Enforce the
|
|
41
|
+
Enforce the list of allowed parents for each contact type
|
|
42
42
|
Ensure we are not creating a circular hierarchy
|
|
43
43
|
*/
|
|
44
44
|
const getHierarchyViolations = (mapTypeToAllowedParents, contactDoc, parentDoc) => {
|
|
@@ -23,10 +23,10 @@ function targetEmitter(targets, c, Utils, Target, emit) {
|
|
|
23
23
|
|
|
24
24
|
function determineDate(targetConfig, Utils, c, r) {
|
|
25
25
|
if (typeof targetConfig.date === 'function') {
|
|
26
|
-
return targetConfig.date(c, r);
|
|
26
|
+
return targetConfig.date(c, r) || Utils.now().getTime();
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
if (targetConfig.date === undefined || targetConfig.date === 'now') {
|
|
29
|
+
if (targetConfig.date === undefined || targetConfig.date === null || targetConfig.date === 'now') {
|
|
30
30
|
return Utils.now().getTime();
|
|
31
31
|
}
|
|
32
32
|
|