@coderich/util 1.2.1 → 1.2.3

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 +4 -3
  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.2.1",
4
+ "version": "1.2.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -19,6 +19,7 @@
19
19
  "lodash": "4.17.21"
20
20
  },
21
21
  "devDependencies": {
22
- "@coderich/dev": "0.2.1"
22
+ "@coderich/dev": "0.3.3",
23
+ "flat": "5.0.2"
23
24
  }
24
- }
25
+ }
package/src/index.js CHANGED
@@ -211,7 +211,7 @@ exports.pipeline = (thunks, startValue) => {
211
211
  };
212
212
 
213
213
  exports.requireDir = (dir) => {
214
- return exports.dirmap(dir, (path) => {
214
+ return exports.dirmap(dir, ({ path }) => {
215
215
  return path.includes('.js') ? require(path) : path; // eslint-disable-line import/no-dynamic-require, global-require
216
216
  });
217
217
  };