ecotransac-shared-js 1.1.55 → 1.1.56

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/dist/index.js CHANGED
@@ -115,12 +115,6 @@ var getNetPrice = (mandate) => {
115
115
  businessAssetsPrice = 0
116
116
  } = mandate;
117
117
  if (isForProfessionalUse) {
118
- if (isCommercialWallsSale && !netOwnerPrice)
119
- throw new Error("Missing netOwnerPrice");
120
- if (isBusinessAssetsTransfer && !businessAssetsPrice)
121
- throw new Error("Missing businessAssetsPrice");
122
- if (isLeaseRightsTransfer && !leaseRightsPrice)
123
- throw new Error("Missing leaseRightsPrice");
124
118
  return (0, import_currency.default)(0).add(isCommercialWallsSale ? netOwnerPrice : 0).add(isBusinessAssetsTransfer ? businessAssetsPrice : 0).add(isLeaseRightsTransfer ? leaseRightsPrice : 0).value;
125
119
  }
126
120
  return netOwnerPrice;
package/dist/index.mjs CHANGED
@@ -29,12 +29,6 @@ var getNetPrice = (mandate) => {
29
29
  businessAssetsPrice = 0
30
30
  } = mandate;
31
31
  if (isForProfessionalUse) {
32
- if (isCommercialWallsSale && !netOwnerPrice)
33
- throw new Error("Missing netOwnerPrice");
34
- if (isBusinessAssetsTransfer && !businessAssetsPrice)
35
- throw new Error("Missing businessAssetsPrice");
36
- if (isLeaseRightsTransfer && !leaseRightsPrice)
37
- throw new Error("Missing leaseRightsPrice");
38
32
  return currency(0).add(isCommercialWallsSale ? netOwnerPrice : 0).add(isBusinessAssetsTransfer ? businessAssetsPrice : 0).add(isLeaseRightsTransfer ? leaseRightsPrice : 0).value;
39
33
  }
40
34
  return netOwnerPrice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecotransac-shared-js",
3
- "version": "1.1.55",
3
+ "version": "1.1.56",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "modules": "dist/index.mjs",