asv-hlps 1.3.68 → 1.3.70

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.
@@ -1,7 +1,7 @@
1
1
  export * from "./acts";
2
2
  export * from "./auth";
3
3
  export * from "./bills";
4
- export * from "./bootstrap";
4
+ export * from "./shared/bazars/BsColors";
5
5
  export * from "./buys";
6
6
  export * from "./cashs";
7
7
  export * from "./comptas";
package/lib/cjs/index.js CHANGED
@@ -17,7 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./acts"), exports);
18
18
  __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./bills"), exports);
20
- __exportStar(require("./bootstrap"), exports);
20
+ __exportStar(require("./shared/bazars/BsColors"), exports);
21
21
  __exportStar(require("./buys"), exports);
22
22
  __exportStar(require("./cashs"), exports);
23
23
  __exportStar(require("./comptas"), exports);
@@ -0,0 +1,2 @@
1
+ type BsColors = "warning" | "purple" | "secondary" | "pink" | "primary" | "success" | "danger" | "light" | "white" | "info" | "link" | string;
2
+ export default BsColors;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { default as BsColors } from "./BsColors";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/cjs/utils.js CHANGED
@@ -653,13 +653,15 @@ const fillEndWithZero = (num, targetLength) => {
653
653
  exports.fillEndWithZero = fillEndWithZero;
654
654
  const sumAmount = (tobs, property) => {
655
655
  return tobs.reduce((prev, curr) => {
656
- return +prev + +curr[property];
656
+ if (curr && curr[property] !== null) {
657
+ return +prev + +curr[property];
658
+ }
657
659
  }, 0);
658
660
  };
659
661
  exports.sumAmount = sumAmount;
660
662
  const reduceSum = (tobs, property) => {
661
663
  return tobs.reduce((prev, curr) => {
662
- if (curr) {
664
+ if (curr && curr[property] !== null) {
663
665
  return +prev + +curr[property];
664
666
  }
665
667
  }, 0);
@@ -1,7 +1,7 @@
1
1
  export * from "./acts";
2
2
  export * from "./auth";
3
3
  export * from "./bills";
4
- export * from "./bootstrap";
4
+ export * from "./shared/bazars/BsColors";
5
5
  export * from "./buys";
6
6
  export * from "./cashs";
7
7
  export * from "./comptas";
package/lib/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export * from "./acts";
2
2
  export * from "./auth";
3
3
  export * from "./bills";
4
- export * from "./bootstrap";
4
+ export * from "./shared/bazars/BsColors";
5
5
  export * from "./buys";
6
6
  export * from "./cashs";
7
7
  export * from "./comptas";
@@ -0,0 +1,2 @@
1
+ type BsColors = "warning" | "purple" | "secondary" | "pink" | "primary" | "success" | "danger" | "light" | "white" | "info" | "link" | string;
2
+ export default BsColors;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { default as BsColors } from "./BsColors";
@@ -0,0 +1 @@
1
+ export {};
package/lib/esm/utils.js CHANGED
@@ -580,12 +580,14 @@ export const fillEndWithZero = (num, targetLength) => {
580
580
  };
581
581
  export const sumAmount = (tobs, property) => {
582
582
  return tobs.reduce((prev, curr) => {
583
- return +prev + +curr[property];
583
+ if (curr && curr[property] !== null) {
584
+ return +prev + +curr[property];
585
+ }
584
586
  }, 0);
585
587
  };
586
588
  export const reduceSum = (tobs, property) => {
587
589
  return tobs.reduce((prev, curr) => {
588
- if (curr) {
590
+ if (curr && curr[property] !== null) {
589
591
  return +prev + +curr[property];
590
592
  }
591
593
  }, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.3.68",
3
+ "version": "1.3.70",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",