diginext-utils 1.0.11 → 1.0.12

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.
@@ -20,7 +20,7 @@ var _math = require("../math");
20
20
  * @param {Array} array
21
21
  * @param {string} key
22
22
  * @returns {Number}
23
- */
23
+ */
24
24
  const sumArray = (array, key) => {
25
25
  if (!array) {
26
26
  console.warn("ARRAY NOT EXITED !");
@@ -45,7 +45,7 @@ const averageArray = (array, key) => {
45
45
  return 0;
46
46
  }
47
47
 
48
- return (void 0).sum(array, key) / array.length || 0;
48
+ return sumArray(array, key) / array.length || 0;
49
49
  };
50
50
  /**
51
51
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "diginext-utils",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "author": {
5
5
  "name": "TOP GROUP (a.k.a Digitop)",
6
6
  "email": "dev@wearetopgroup.com"
@@ -14,7 +14,19 @@
14
14
  "scripts": {
15
15
  "publish": "npm publish",
16
16
  "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
17
- "build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files"
17
+ "build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files",
18
+ "watch": "nodemon"
19
+ },
20
+ "nodemonConfig": {
21
+ "exec": "yarn build",
22
+ "watch": [
23
+ "src/*"
24
+ ],
25
+ "ignore": [
26
+ "**/__tests__/**",
27
+ "*.test.js",
28
+ "*.spec.js"
29
+ ]
18
30
  },
19
31
  "dependencies": {
20
32
  "@babel/polyfill": "^7.12.1",