@coderich/util 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coderich/util",
3
3
  "main": "src/index.js",
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
package/src/index.js CHANGED
@@ -121,7 +121,7 @@ exports.dirmap = (dir, fn = v => v) => {
121
121
 
122
122
  if (stat && stat.isDirectory()) {
123
123
  data[name] = exports.dirmap(path);
124
- } else if (path.includes('.js')) {
124
+ } else {
125
125
  data[name] = fn(path);
126
126
  }
127
127
  });