law-common 10.72.18 → 10.72.19

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.
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fileFormatConfig = exports.FileFormatEnum = void 0;
4
4
  const error_key_enum_1 = require("../../enums/error.key.enum");
5
- const exceptions_1 = require("../../exceptions");
6
5
  var FileFormatEnum;
7
6
  (function (FileFormatEnum) {
8
7
  FileFormatEnum["PDF"] = "application/pdf";
@@ -57,10 +56,7 @@ exports.fileFormatConfig = {
57
56
  function defaultSize(format) {
58
57
  const size = FileFormatEnum.sizeMap.get(format);
59
58
  if (size === undefined) {
60
- throw new exceptions_1.AppBadRequestException({
61
- key: error_key_enum_1.ErrorKeyEnum.DEFAULT_SIZE,
62
- message: [`No default size set for format: ${format}`],
63
- });
59
+ throw new Error(`[${error_key_enum_1.ErrorKeyEnum.DEFAULT_SIZE}] No default size set for format: ${format}`);
64
60
  }
65
61
  return size;
66
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.72.18",
3
+ "version": "10.72.19",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [