@bemoje/path 2.0.0 → 2.0.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.
package/lib/index.cjs CHANGED
@@ -43,9 +43,7 @@ __name(setNameAndLength, "setNameAndLength");
43
43
 
44
44
  // ../fn/src/bindArg.ts
45
45
  function bindArg(fn, boundArgIndex, boundArgValue) {
46
- return setNameAndLength(fn, (...args) => {
47
- return fn(...args.slice(0, boundArgIndex), boundArgValue, ...args.slice(boundArgIndex));
48
- }, -1);
46
+ return setNameAndLength(fn, (...args) => fn(...args.slice(0, boundArgIndex), boundArgValue, ...args.slice(boundArgIndex)), -1);
49
47
  }
50
48
  __name(bindArg, "bindArg");
51
49
 
package/lib/index.js CHANGED
@@ -36,9 +36,7 @@ __name(setNameAndLength, "setNameAndLength");
36
36
 
37
37
  // ../fn/src/bindArg.ts
38
38
  function bindArg(fn, boundArgIndex, boundArgValue) {
39
- return setNameAndLength(fn, (...args) => {
40
- return fn(...args.slice(0, boundArgIndex), boundArgValue, ...args.slice(boundArgIndex));
41
- }, -1);
39
+ return setNameAndLength(fn, (...args) => fn(...args.slice(0, boundArgIndex), boundArgValue, ...args.slice(boundArgIndex)), -1);
42
40
  }
43
41
  __name(bindArg, "bindArg");
44
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bemoje/path",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Cross-platform path utilities extending upath with validation, manipulation, and inspection helpers.",
5
5
  "type": "module",
6
6
  "sideEffects": false,