ecotransac-shared-js 1.1.52 → 1.1.53

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
@@ -129,7 +129,7 @@ var getAgencyFees = (mandate) => {
129
129
  const netPrice = getNetPrice(mandate);
130
130
  const isLowPrice = getIsLowPrice(mandate);
131
131
  const { agencyFeePercentage, isForProfessionalUse } = mandate;
132
- if (!isLowPrice && !agencyFeePercentage)
132
+ if (!isLowPrice && agencyFeePercentage === null)
133
133
  throw new Error("Missing agencyFeePercentage for high price mandate");
134
134
  const { limit, fees } = getLowThreshold(isForProfessionalUse);
135
135
  if (netPrice < limit) return fees;
package/dist/index.mjs CHANGED
@@ -43,7 +43,7 @@ var getAgencyFees = (mandate) => {
43
43
  const netPrice = getNetPrice(mandate);
44
44
  const isLowPrice = getIsLowPrice(mandate);
45
45
  const { agencyFeePercentage, isForProfessionalUse } = mandate;
46
- if (!isLowPrice && !agencyFeePercentage)
46
+ if (!isLowPrice && agencyFeePercentage === null)
47
47
  throw new Error("Missing agencyFeePercentage for high price mandate");
48
48
  const { limit, fees } = getLowThreshold(isForProfessionalUse);
49
49
  if (netPrice < limit) return fees;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecotransac-shared-js",
3
- "version": "1.1.52",
3
+ "version": "1.1.53",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "modules": "dist/index.mjs",