asv-hlps 1.2.61 → 1.2.62

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/lib/cjs/utils.js CHANGED
@@ -497,7 +497,7 @@ const sumAmount = (tobs, property) => {
497
497
  };
498
498
  exports.sumAmount = sumAmount;
499
499
  const formatAmountToString = (amount, opt) => {
500
- switch (opt.math) {
500
+ switch (opt === null || opt === void 0 ? void 0 : opt.math) {
501
501
  case "ceil":
502
502
  Math.ceil(amount);
503
503
  break;
@@ -508,7 +508,7 @@ const formatAmountToString = (amount, opt) => {
508
508
  amount;
509
509
  break;
510
510
  }
511
- switch (opt.currency) {
511
+ switch (opt === null || opt === void 0 ? void 0 : opt.currency) {
512
512
  case "cfa":
513
513
  return (0, exports.formatToStringCfa)(amount);
514
514
  default:
package/lib/esm/utils.js CHANGED
@@ -426,7 +426,7 @@ export const sumAmount = (tobs, property) => {
426
426
  }, 0);
427
427
  };
428
428
  export const formatAmountToString = (amount, opt) => {
429
- switch (opt.math) {
429
+ switch (opt === null || opt === void 0 ? void 0 : opt.math) {
430
430
  case "ceil":
431
431
  Math.ceil(amount);
432
432
  break;
@@ -437,7 +437,7 @@ export const formatAmountToString = (amount, opt) => {
437
437
  amount;
438
438
  break;
439
439
  }
440
- switch (opt.currency) {
440
+ switch (opt === null || opt === void 0 ? void 0 : opt.currency) {
441
441
  case "cfa":
442
442
  return formatToStringCfa(amount);
443
443
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.2.61",
3
+ "version": "1.2.62",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",