ecotransac-shared-js 1.2.28 → 1.2.29
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -94,7 +94,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
94
94
|
// src/functions/agency-fees.ts
|
|
95
95
|
var import_currency = __toESM(require("currency.js"));
|
|
96
96
|
var import_lodash = require("lodash");
|
|
97
|
-
var getLowThreshold = (isForPro) => isForPro ? { limit: 5e4, fees: 4950 } : { limit:
|
|
97
|
+
var getLowThreshold = (isForPro) => isForPro ? { limit: 5e4, fees: 4950 } : { limit: 7e4, fees: 7e3 };
|
|
98
98
|
var getFeesPercentage = (price, isForProfessionalUse) => {
|
|
99
99
|
if (isForProfessionalUse) {
|
|
100
100
|
if (price < 5e4) return 0;
|
|
@@ -103,8 +103,8 @@ var getFeesPercentage = (price, isForProfessionalUse) => {
|
|
|
103
103
|
if ((0, import_lodash.inRange)(price, 3e5, 6e5)) return 8;
|
|
104
104
|
return 7;
|
|
105
105
|
}
|
|
106
|
-
if (price <
|
|
107
|
-
if ((0, import_lodash.inRange)(price,
|
|
106
|
+
if (price < 7e4) return 0;
|
|
107
|
+
if ((0, import_lodash.inRange)(price, 7e4, 12e4)) return 10;
|
|
108
108
|
if ((0, import_lodash.inRange)(price, 12e4, 16e4)) return 8.5;
|
|
109
109
|
if ((0, import_lodash.inRange)(price, 16e4, 23e4)) return 7.5;
|
|
110
110
|
if ((0, import_lodash.inRange)(price, 23e4, 32e4)) return 6.5;
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/functions/agency-fees.ts
|
|
2
2
|
import currency from "currency.js";
|
|
3
3
|
import { inRange } from "lodash";
|
|
4
|
-
var getLowThreshold = (isForPro) => isForPro ? { limit: 5e4, fees: 4950 } : { limit:
|
|
4
|
+
var getLowThreshold = (isForPro) => isForPro ? { limit: 5e4, fees: 4950 } : { limit: 7e4, fees: 7e3 };
|
|
5
5
|
var getFeesPercentage = (price, isForProfessionalUse) => {
|
|
6
6
|
if (isForProfessionalUse) {
|
|
7
7
|
if (price < 5e4) return 0;
|
|
@@ -10,8 +10,8 @@ var getFeesPercentage = (price, isForProfessionalUse) => {
|
|
|
10
10
|
if (inRange(price, 3e5, 6e5)) return 8;
|
|
11
11
|
return 7;
|
|
12
12
|
}
|
|
13
|
-
if (price <
|
|
14
|
-
if (inRange(price,
|
|
13
|
+
if (price < 7e4) return 0;
|
|
14
|
+
if (inRange(price, 7e4, 12e4)) return 10;
|
|
15
15
|
if (inRange(price, 12e4, 16e4)) return 8.5;
|
|
16
16
|
if (inRange(price, 16e4, 23e4)) return 7.5;
|
|
17
17
|
if (inRange(price, 23e4, 32e4)) return 6.5;
|