@dmptool/utils 1.0.8 → 1.0.9

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.
Files changed (2) hide show
  1. package/dist/maDMP.js +2 -0
  2. package/package.json +1 -1
package/dist/maDMP.js CHANGED
@@ -862,6 +862,7 @@ const validateRDACommonStandard = (logger, dmp) => {
862
862
  if (validationErrors.length > 0) {
863
863
  const msg = `Invalid RDA Common Standard: ${validationErrors.join('; ')}`;
864
864
  logger.warn({ dmpId: (_b = (_a = dmp === null || dmp === void 0 ? void 0 : dmp.dmp) === null || _a === void 0 ? void 0 : _a.dmp_id) === null || _b === void 0 ? void 0 : _b.identifier }, msg);
865
+ logger.warn({ dmp: dmp === null || dmp === void 0 ? void 0 : dmp.dmp }, 'Full DMP');
865
866
  throw new DMPValidationError(msg);
866
867
  }
867
868
  return dmp;
@@ -887,6 +888,7 @@ const validateDMPToolExtensions = (logger, dmpId, dmp) => {
887
888
  if (validationErrors.length > 0) {
888
889
  const msg = `Invalid DMP Tool extensions: ${validationErrors.join('; ')}`;
889
890
  logger.warn({ dmpId }, msg);
891
+ logger.warn({ dmp }, 'Full DMP Tool extensions');
890
892
  throw new DMPValidationError(msg);
891
893
  }
892
894
  return dmp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dmptool/utils",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Helper/Utility functions for use in the DMP Tool services. Particularly AWS tooling and maDMP serialization",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",