@coderich/util 1.2.2 → 2.0.0

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 +6 -3
  2. package/src/index.js +2 -2
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.2",
4
+ "version": "2.0.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -15,11 +15,14 @@
15
15
  "dev": "coderich-dev"
16
16
  },
17
17
  "dependencies": {
18
- "bson": "6.8.0",
18
+ "bson": "6.10.4",
19
19
  "lodash": "4.17.21"
20
20
  },
21
21
  "devDependencies": {
22
- "@coderich/dev": "0.3.3",
22
+ "@coderich/dev": "0.5.0",
23
23
  "flat": "5.0.2"
24
+ },
25
+ "engines": {
26
+ "node": "^22.0.0"
24
27
  }
25
28
  }
package/src/index.js CHANGED
@@ -211,8 +211,8 @@ exports.pipeline = (thunks, startValue) => {
211
211
  };
212
212
 
213
213
  exports.requireDir = (dir) => {
214
- return exports.dirmap(dir, (path) => {
215
- return path.includes('.js') ? require(path) : path; // eslint-disable-line import/no-dynamic-require, global-require
214
+ return exports.dirmap(dir, ({ path }) => {
215
+ return path.includes('.js') ? require(path) : path;
216
216
  });
217
217
  };
218
218