ramda-adjunct 5.1.0 → 6.1.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 (101) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/README.md +3 -3
  3. package/dist/RA.node.js +1089 -1153
  4. package/dist/RA.node.min.js +1 -1
  5. package/dist/RA.web.js +1089 -1153
  6. package/dist/RA.web.min.js +1 -1
  7. package/dist/RA.web.standalone.js +2907 -2620
  8. package/dist/RA.web.standalone.min.js +1 -1
  9. package/es/copyKeys.js +2 -3
  10. package/es/index.js +1 -1
  11. package/es/internal/ap.js +1 -1
  12. package/es/internal/ponyfills/Math.trunc.js +0 -2
  13. package/es/internal/ponyfills/Number.isFinite.js +0 -2
  14. package/es/internal/ponyfills/Number.isNaN.js +0 -2
  15. package/es/internal/ponyfills/Promise.any.js +1 -1
  16. package/es/internal/ponyfills/String.padEnd.js +0 -1
  17. package/es/internal/ponyfills/String.padStart.js +0 -1
  18. package/es/internal/ponyfills/String.repeat.js +1 -1
  19. package/es/isArrayLike.js +1 -2
  20. package/es/isCoercible.js +31 -0
  21. package/es/isMap.js +3 -3
  22. package/es/isNotAsyncFunction.js +1 -2
  23. package/es/isNotFunction.js +1 -2
  24. package/es/isNotGeneratorFunction.js +1 -2
  25. package/es/isNotObj.js +1 -2
  26. package/es/isNotObjLike.js +1 -2
  27. package/es/isNotPlainObj.js +1 -2
  28. package/es/isObj.js +1 -2
  29. package/es/isObjLike.js +1 -2
  30. package/es/isPlainObj.js +1 -2
  31. package/es/isSentinelValue.js +1 -1
  32. package/es/isValidDate.js +1 -2
  33. package/es/lensTraverse.js +1 -3
  34. package/es/mergeProp.js +2 -2
  35. package/es/nand.js +1 -2
  36. package/es/neither.js +1 -2
  37. package/es/nor.js +1 -2
  38. package/es/notBoth.js +1 -2
  39. package/es/omitBy.js +1 -2
  40. package/es/pathNotEq.js +1 -2
  41. package/es/reduceP.js +0 -1
  42. package/es/reduceRightP.js +0 -1
  43. package/es/renameKey.js +1 -2
  44. package/es/resolveP.js +1 -2
  45. package/es/seq.js +0 -2
  46. package/es/sortByProps.js +1 -1
  47. package/es/stubUndefined.js +1 -2
  48. package/es/toInteger32.js +1 -1
  49. package/es/toNumber.js +1 -1
  50. package/es/toUinteger32.js +0 -1
  51. package/lib/anyP.js +1 -2
  52. package/lib/copyKeys.js +2 -4
  53. package/lib/fantasy-land/Identity.js +1 -2
  54. package/lib/fantasy-land/traits.js +1 -2
  55. package/lib/index.js +4 -4
  56. package/lib/internal/ap.js +2 -3
  57. package/lib/internal/ponyfills/Math.trunc.js +0 -2
  58. package/lib/internal/ponyfills/Number.isFinite.js +0 -1
  59. package/lib/internal/ponyfills/Number.isNaN.js +0 -1
  60. package/lib/internal/ponyfills/Promise.any.js +1 -1
  61. package/lib/internal/ponyfills/String.padEnd.js +0 -1
  62. package/lib/internal/ponyfills/String.padStart.js +0 -1
  63. package/lib/internal/ponyfills/String.repeat.js +1 -1
  64. package/lib/isArrayLike.js +1 -2
  65. package/lib/isCoercible.js +35 -0
  66. package/lib/isMap.js +3 -3
  67. package/lib/isNotAsyncFunction.js +1 -2
  68. package/lib/isNotFunction.js +1 -2
  69. package/lib/isNotGeneratorFunction.js +1 -2
  70. package/lib/isNotObj.js +1 -2
  71. package/lib/isNotObjLike.js +1 -2
  72. package/lib/isNotPlainObj.js +1 -2
  73. package/lib/isObj.js +1 -2
  74. package/lib/isObjLike.js +1 -2
  75. package/lib/isPlainObj.js +1 -2
  76. package/lib/isSentinelValue.js +1 -1
  77. package/lib/isValidDate.js +1 -2
  78. package/lib/lensTraverse.js +1 -2
  79. package/lib/mergeProp.js +2 -2
  80. package/lib/nand.js +1 -1
  81. package/lib/neither.js +1 -2
  82. package/lib/nor.js +1 -1
  83. package/lib/notBoth.js +1 -2
  84. package/lib/omitBy.js +1 -2
  85. package/lib/pathNotEq.js +1 -2
  86. package/lib/reduceP.js +0 -1
  87. package/lib/reduceRightP.js +0 -1
  88. package/lib/renameKey.js +1 -3
  89. package/lib/resolveP.js +1 -2
  90. package/lib/seq.js +0 -2
  91. package/lib/sortByProps.js +1 -1
  92. package/lib/stubUndefined.js +1 -1
  93. package/lib/toInteger32.js +1 -1
  94. package/lib/toNumber.js +1 -1
  95. package/lib/toUinteger32.js +0 -1
  96. package/package.json +63 -86
  97. package/types/index.d.ts +17 -21
  98. package/es/internal/isCoercible.js +0 -6
  99. package/es/renameKeys.js +0 -39
  100. package/lib/internal/isCoercible.js +0 -11
  101. package/lib/renameKeys.js +0 -44
@@ -5,7 +5,6 @@ exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
6
  var _isGeneratorFunction = _interopRequireDefault(require("./isGeneratorFunction.js"));
7
7
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
8
- /* eslint-disable max-len */
9
8
  /**
10
9
  * Checks if input value is complement of `Generator Function`
11
10
  *
@@ -24,6 +23,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
24
23
  * RA.isNotGeneratorFunction(function test() { }); //=> true
25
24
  * RA.isNotGeneratorFunction(() => {}); //=> true
26
25
  */
27
- /* eslint-enable max-len */
26
+
28
27
  var isNotGeneratorFunction = (0, _ramda.complement)(_isGeneratorFunction["default"]);
29
28
  var _default = exports["default"] = isNotGeneratorFunction;
package/lib/isNotObj.js CHANGED
@@ -5,7 +5,6 @@ exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
6
  var _isObj = _interopRequireDefault(require("./isObj.js"));
7
7
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
8
- /* eslint-disable max-len */
9
8
  /**
10
9
  * Checks if input value is complement of language type of `Object`.
11
10
  *
@@ -26,6 +25,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
26
25
  * RA.isNotObj(null); //=> true
27
26
  * RA.isNotObj(undefined); //=> true
28
27
  */
29
- /* eslint-enable max-len */
28
+
30
29
  var isNotObj = (0, _ramda.complement)(_isObj["default"]);
31
30
  var _default = exports["default"] = isNotObj;
@@ -5,7 +5,6 @@ exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
6
  var _isObjLike = _interopRequireDefault(require("./isObjLike.js"));
7
7
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
8
- /* eslint-disable max-len */
9
8
  /**
10
9
  * Checks if value is not object-like. A value is object-like if it's not null and has a typeof result of "object".
11
10
  *
@@ -26,6 +25,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
26
25
  * RA.isNotObjLike(null); //=> true
27
26
  * RA.isNotObjLike(undefined); //=> true
28
27
  */
29
- /* eslint-enable max-len */
28
+
30
29
  var isNotObjLike = (0, _ramda.complement)(_isObjLike["default"]);
31
30
  var _default = exports["default"] = isNotObjLike;
@@ -5,7 +5,6 @@ exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
6
  var _isPlainObj = _interopRequireDefault(require("./isPlainObj.js"));
7
7
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
8
- /* eslint-disable max-len */
9
8
  /**
10
9
  * Check to see if an object is a not plain object (created using `{}`, `new Object()` or `Object.create(null)`).
11
10
  *
@@ -32,6 +31,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
32
31
  * RA.isNotPlainObj(Object.create(null); //=> false
33
32
  * RA.isNotPlainObj(new Object()); //=> false
34
33
  */
35
- /* eslint-enable max-len */
34
+
36
35
  var isNotPlainObj = (0, _ramda.complement)(_isPlainObj["default"]);
37
36
  var _default = exports["default"] = isNotPlainObj;
package/lib/isObj.js CHANGED
@@ -7,7 +7,6 @@ var _isNotNull = _interopRequireDefault(require("./isNotNull.js"));
7
7
  var _isFunction = _interopRequireDefault(require("./isFunction.js"));
8
8
  var _isOfTypeObject = _interopRequireDefault(require("./internal/isOfTypeObject.js"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
- /* eslint-disable max-len */
11
10
  /**
12
11
  * Checks if input value is language type of `Object`.
13
12
  *
@@ -28,6 +27,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
28
27
  * RA.isObj(null); //=> false
29
28
  * RA.isObj(undefined); //=> false
30
29
  */
31
- /* eslint-enable max-len */
30
+
32
31
  var isObj = (0, _ramda.curryN)(1, (0, _ramda.both)(_isNotNull["default"], (0, _ramda.either)(_isOfTypeObject["default"], _isFunction["default"])));
33
32
  var _default = exports["default"] = isObj;
package/lib/isObjLike.js CHANGED
@@ -6,7 +6,6 @@ var _ramda = require("ramda");
6
6
  var _isNotNull = _interopRequireDefault(require("./isNotNull.js"));
7
7
  var _isOfTypeObject = _interopRequireDefault(require("./internal/isOfTypeObject.js"));
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- /* eslint-disable max-len */
10
9
  /**
11
10
  * Checks if value is object-like. A value is object-like if it's not null and has a typeof result of "object".
12
11
  *
@@ -27,6 +26,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
27
26
  * RA.isObjLike(null); //=> false
28
27
  * RA.isObjLike(undefined); //=> false
29
28
  */
30
- /* eslint-enable max-len */
29
+
31
30
  var isObjLike = (0, _ramda.curryN)(1, (0, _ramda.both)(_isNotNull["default"], _isOfTypeObject["default"]));
32
31
  var _default = exports["default"] = isObjLike;
package/lib/isPlainObj.js CHANGED
@@ -11,7 +11,6 @@ var isObject = (0, _ramda.pipe)(_ramda.type, (0, _ramda.identical)('Object'));
11
11
  var isObjectConstructor = (0, _ramda.pipe)(_ramda.toString, (0, _ramda.equals)((0, _ramda.toString)(Object)));
12
12
  var hasObjectConstructor = (0, _ramda.pathSatisfies)((0, _ramda.both)(_isFunction["default"], isObjectConstructor), ['constructor']);
13
13
 
14
- /* eslint-disable max-len */
15
14
  /**
16
15
  * Check to see if an object is a plain object (created using `{}`, `new Object()` or `Object.create(null)`).
17
16
  *
@@ -38,7 +37,7 @@ var hasObjectConstructor = (0, _ramda.pathSatisfies)((0, _ramda.both)(_isFunctio
38
37
  * RA.isPlainObj(Object.create(null); //=> true
39
38
  * RA.isPlainObj(new Object()); //=> true
40
39
  */
41
- /* eslint-enable max-len */
40
+
42
41
  var isPlainObj = (0, _ramda.curryN)(1, function (val) {
43
42
  if (!(0, _isObjLike["default"])(val) || !isObject(val)) {
44
43
  return false;
@@ -23,7 +23,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
23
23
  * RA.isSentinelValue(1); //=> false
24
24
  * RA.isSentinelValue([-1]); //=> false
25
25
  */
26
- // eslint-disable-next-line no-bitwise
26
+
27
27
  var isSentinelValue = (0, _ramda.curryN)(1, function (val) {
28
28
  return (0, _isInteger["default"])(val) && ~val === 0;
29
29
  });
@@ -6,7 +6,6 @@ var _ramda = require("ramda");
6
6
  var _isDate = _interopRequireDefault(require("./isDate.js"));
7
7
  var _isNotNaN = _interopRequireDefault(require("./isNotNaN.js"));
8
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
- /* eslint-disable max-len */
10
9
  /**
11
10
  * Checks if value is valid `Date` object.
12
11
  *
@@ -23,6 +22,6 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
23
22
  * RA.isValidDate(new Date()); //=> true
24
23
  * RA.isValidDate(new Date('a')); //=> false
25
24
  */
26
- /* eslint-enable max-len */
25
+
27
26
  var isValidDate = (0, _ramda.curryN)(1, (0, _ramda.both)(_isDate["default"], (0, _ramda.pipe)((0, _ramda.invoker)(0, 'getTime'), _isNotNaN["default"])));
28
27
  var _default = exports["default"] = isValidDate;
@@ -40,7 +40,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
40
40
  *
41
41
  * R.set(maybeLens, Maybe.Just(1), [Maybe.just(2), Maybe.Just(3)]); // => Maybe.Just([1, 1])
42
42
  */
43
- /* eslint-disable no-nested-ternary */
43
+
44
44
  var lensTraverse = (0, _ramda.curryN)(1, function (F) {
45
45
  var of = typeof F['fantasy-land/of'] === 'function' ? F['fantasy-land/of'] : typeof F.of === 'function' ? F.of : F;
46
46
  var TypeRep = {
@@ -50,5 +50,4 @@ var lensTraverse = (0, _ramda.curryN)(1, function (F) {
50
50
  return _Identity["default"].of((0, _ramda.traverse)(TypeRep, (0, _ramda.pipe)(toFunctorFn, (0, _ramda.prop)('value')), target));
51
51
  });
52
52
  });
53
- /* eslint-enable */
54
53
  var _default = exports["default"] = lensTraverse;
package/lib/mergeProp.js CHANGED
@@ -14,9 +14,9 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
14
14
  * @memberOf RA
15
15
  * @since {@link https://char0n.github.io/ramda-adjunct/1.18.0|v1.18.0}
16
16
  * @category Object
17
- * @sig [k] -> {a} -> {k: {a}} -> {k: {a}}
17
+ * @sig k -> {a} -> {k: {a}} -> {k: {a}}
18
18
  * @see {@link RA.mergePath|mergePath}
19
- * @param {!Array} p The property of the destination object
19
+ * @param {!string} p The property of the destination object
20
20
  * @param {!Object} source The source object
21
21
  * @param {!Object} obj The object that has destination object under corresponding property
22
22
  * @return {!Object} The new version of object
package/lib/nand.js CHANGED
@@ -25,5 +25,5 @@ var _ramda = require("ramda");
25
25
  * RA.nand(0, 1.0); //=> true
26
26
  * RA.nand(0, 0); //=> true
27
27
  */
28
- var nand = (0, _ramda.complement)(_ramda.and); // eslint-disable-line ramda/complement-simplification
28
+ var nand = (0, _ramda.complement)(_ramda.and);
29
29
  var _default = exports["default"] = nand;
package/lib/neither.js CHANGED
@@ -3,7 +3,6 @@
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
- /* eslint-disable max-len */
7
6
  /**
8
7
  * A function which calls the two provided functions and returns the complement of `||`ing the
9
8
  * results.
@@ -35,6 +34,6 @@ var _ramda = require("ramda");
35
34
  * f(11); //=> false
36
35
  * f(9); //=> true
37
36
  */
38
- /* eslint-enable max-len */
37
+
39
38
  var neither = (0, _ramda.curry)((0, _ramda.compose)(_ramda.complement, _ramda.either));
40
39
  var _default = exports["default"] = neither;
package/lib/nor.js CHANGED
@@ -26,5 +26,5 @@ var _ramda = require("ramda");
26
26
  * RA.nor(0, 1); //=> false
27
27
  * RA.nor(0, 0); //=> true
28
28
  */
29
- var nor = (0, _ramda.complement)(_ramda.or); // eslint-disable-line ramda/complement-simplification
29
+ var nor = (0, _ramda.complement)(_ramda.or);
30
30
  var _default = exports["default"] = nor;
package/lib/notBoth.js CHANGED
@@ -3,7 +3,6 @@
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
- /* eslint-disable max-len */
7
6
  /**
8
7
  * A function which calls the two provided functions and returns the complement of `&&`ing the
9
8
  * results.
@@ -35,6 +34,6 @@ var _ramda = require("ramda");
35
34
  * f(11); //=> true
36
35
  * f(9); //=> true
37
36
  */
38
- /* eslint-enable max-len */
37
+
39
38
  var notBoth = (0, _ramda.curry)((0, _ramda.compose)(_ramda.complement, _ramda.both));
40
39
  var _default = exports["default"] = notBoth;
package/lib/omitBy.js CHANGED
@@ -3,7 +3,6 @@
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
- /* eslint-disable max-len */
7
6
  /**
8
7
  * Returns a partial copy of an object containing only the keys
9
8
  * that don't satisfy the supplied predicate.
@@ -22,6 +21,6 @@ var _ramda = require("ramda");
22
21
  * const isLowerCase = (val, key) => key.toLowerCase() === key;
23
22
  * RA.omitBy(isLowerCase, {a: 1, b: 2, A: 3, B: 4}); //=> {A: 3, B: 4}
24
23
  */
25
- /* eslint-enable max-len */
24
+
26
25
  var omitBy = (0, _ramda.useWith)(_ramda.pickBy, [_ramda.complement, _ramda.identity]);
27
26
  var _default = exports["default"] = omitBy;
package/lib/pathNotEq.js CHANGED
@@ -3,7 +3,6 @@
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
- /* eslint-disable max-len */
7
6
  /**
8
7
  * Determines whether a nested path on an object doesn't have a specific value,
9
8
  * in R.equals terms. Most likely used to filter a list.
@@ -28,6 +27,6 @@ var _ramda = require("ramda");
28
27
  * const isFamous = RA.pathNotEq(90210, ['address', 'zipCode']);
29
28
  * R.filter(isFamous, users); //=> [ user2, user3 ]
30
29
  */
31
- /* eslint-enable max-len */
30
+
32
31
  var pathNotEq = (0, _ramda.complement)(_ramda.pathEq);
33
32
  var _default = exports["default"] = pathNotEq;
package/lib/reduceP.js CHANGED
@@ -13,7 +13,6 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
13
13
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
14
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
15
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
16
- /* eslint-disable max-len */
17
16
  /**
18
17
  * Given an `Iterable`(arrays are `Iterable`), or a promise of an `Iterable`,
19
18
  * which produces promises (or a mix of promises and values),
@@ -16,7 +16,6 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
16
16
  // in older ramda versions the order of the arguments is flipped
17
17
  var flipArgs = (0, _ramda.pipe)((0, _ramda.reduceRight)(_ramda.concat, ''), (0, _ramda.equals)('ba'))(['a', 'b']);
18
18
 
19
- /* eslint-disable max-len */
20
19
  /**
21
20
  * Given an `Iterable`(arrays are `Iterable`), or a promise of an `Iterable`,
22
21
  * which produces promises (or a mix of promises and values),
package/lib/renameKey.js CHANGED
@@ -3,8 +3,6 @@
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
- var _renameKeys2 = _interopRequireDefault(require("./renameKeys.js"));
7
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
8
6
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
9
7
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
10
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
@@ -34,6 +32,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
34
32
  * //=> { name: 'Elisia', age: 22, type: 'human' }
35
33
  */
36
34
  var renameKey = (0, _ramda.curry)(function (oldKey, newKey, obj) {
37
- return (0, _renameKeys2["default"])(_defineProperty({}, oldKey, newKey), obj);
35
+ return (0, _ramda.renameKeys)(_defineProperty({}, oldKey, newKey), obj);
38
36
  });
39
37
  var _default = exports["default"] = renameKey;
package/lib/resolveP.js CHANGED
@@ -3,7 +3,6 @@
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
- /* eslint-disable max-len */
7
6
  /**
8
7
  * Composable shortcut for `Promise.resolve`.
9
8
  *
@@ -25,6 +24,6 @@ var _ramda = require("ramda");
25
24
  * RA.resolveP('a'); //=> Promise('a')
26
25
  * RA.resolveP([1, 2, 3]); //=> Promise([1, 2, 3])
27
26
  */
28
- /* eslint-enable max-len */
27
+
29
28
  var resolveP = (0, _ramda.bind)(Promise.resolve, Promise);
30
29
  var _default = exports["default"] = resolveP;
package/lib/seq.js CHANGED
@@ -3,7 +3,6 @@
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
- /* eslint-disable max-len */
7
6
  /**
8
7
  * Runs the given list of functions in order with the supplied object, then returns the object.
9
8
  * Also known as the normal order sequencing combinator.
@@ -34,7 +33,6 @@ var _ramda = require("ramda");
34
33
  * R.toUpper
35
34
  * )('test'); //=> 'PREFIX TEST'
36
35
  */
37
- /* eslint-enable max-len */
38
36
 
39
37
  var seq = (0, _ramda.curry)(function (fns, x) {
40
38
  return (0, _ramda.tap)(function (tx) {
@@ -34,7 +34,7 @@ var sortByProps = (0, _ramda.curry)(function (props, list) {
34
34
  var firstTruthy = function firstTruthy(_ref) {
35
35
  var _ref2 = _toArray(_ref),
36
36
  head = _ref2[0],
37
- tail = _ref2.slice(1);
37
+ tail = _arrayLikeToArray(_ref2).slice(1);
38
38
  return (0, _ramda.reduce)(_ramda.either, head, tail);
39
39
  };
40
40
  var makeComparator = function makeComparator(propName) {
@@ -17,5 +17,5 @@ var _ramda = require("ramda");
17
17
  * RA.stubUndefined(); //=> undefined
18
18
  * RA.stubUndefined(1, 2, 3); //=> undefined
19
19
  */
20
- var stubUndefined = (0, _ramda.always)(void 0); // eslint-disable-line no-void
20
+ var stubUndefined = (0, _ramda.always)(void 0);
21
21
  var _default = exports["default"] = stubUndefined;
@@ -20,7 +20,7 @@ var _ramda = require("ramda");
20
20
  * RA.toInteger32(2 ** 35); // => 0
21
21
  * RA.toInteger32(2 ** 30); // => 1073741824
22
22
  */
23
- // eslint-disable-next-line no-bitwise
23
+
24
24
  var toInteger32 = (0, _ramda.curryN)(1, function (val) {
25
25
  return val >> 0;
26
26
  });
package/lib/toNumber.js CHANGED
@@ -3,7 +3,7 @@
3
3
  exports.__esModule = true;
4
4
  exports["default"] = void 0;
5
5
  var _ramda = require("ramda");
6
- var _isCoercible = _interopRequireDefault(require("./internal/isCoercible.js"));
6
+ var _isCoercible = _interopRequireDefault(require("./isCoercible.js"));
7
7
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
8
8
  /**
9
9
  * Converts value to a number.
@@ -23,7 +23,6 @@ var _ramda = require("ramda");
23
23
  * RA.toInteger32(2 ** 30); // => 1073741824
24
24
  */
25
25
 
26
- // eslint-disable-next-line no-bitwise
27
26
  var toUinteger32 = (0, _ramda.curryN)(1, function (val) {
28
27
  return val >>> 0;
29
28
  });
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "cookbook",
15
15
  "functional"
16
16
  ],
17
- "version": "5.1.0",
17
+ "version": "6.1.0",
18
18
  "homepage": "https://github.com/char0n/ramda-adjunct",
19
19
  "license": "BSD-3-Clause",
20
20
  "repository": {
@@ -76,117 +76,94 @@
76
76
  "./dist/*": "./dist/*"
77
77
  },
78
78
  "scripts": {
79
- "docs": "better-npm-run docs",
80
- "lint": "better-npm-run lint",
81
- "lint:fix": "better-npm-run lint:fix",
82
- "changelog": "better-npm-run changelog",
83
- "test": "mocha",
84
- "test:web": "better-npm-run test:web",
85
- "test:ramda": "bnr test:ramda",
86
- "test:types": "eslint --no-eslintrc --no-ignore -c ./types/dtslint.eslint.cjs ./types/test/*.ts",
87
- "test:bundle-create": "better-npm-run test:bundle-create",
88
- "test:bundle-clean": "better-npm-run test:bundle-clean",
89
- "coverage": "better-npm-run coverage",
90
- "build": "better-npm-run build",
91
- "build:es": "better-npm-run build:es",
92
- "build:commonjs": "better-npm-run build:commonjs",
93
- "build:umd": "better-npm-run build:umd",
94
- "prepublishOnly": "better-npm-run prepublishOnly",
95
- "clean": "better-npm-run clean",
96
- "prepare": "husky"
97
- },
98
- "betterScripts": {
99
79
  "docs": "jsdoc -c jsdoc.json && node ./scripts/jsdoc-inject-dist.cjs",
100
- "lint": "eslint ./ && eslint --no-ignore --no-eslintrc -c ./types/.eslintrc.cjs ./types/test/**/*.ts",
101
- "lint:fix": "eslint --fix ./ && eslint --no-ignore --no-eslintrc --fix -c ./types/.eslintrc.cjs ./types/test/**/*.ts",
80
+ "lint": "eslint .",
81
+ "lint:fix": "eslint --fix .",
102
82
  "changelog": "conventional-changelog -p angular -i ./CHANGELOG.md -s",
83
+ "test": "mocha",
103
84
  "test:web": "testem ci",
104
- "test:ramda": "bnr test:ramda0.30.0",
105
- "test:ramda0.30.0": "npm install ramda@0.30.0 && npm test",
85
+ "test:ramda": "npm i --no-save ramda@0.32.0 && npm test",
86
+ "test:types": "tsd",
106
87
  "test:bundle-create": "webpack --config webpack.config-test.web.cjs --progress",
107
88
  "test:bundle-clean": "rimraf tmp-test-bundle.js",
108
- "coverage": {
109
- "command": "nyc mocha",
110
- "env": {
111
- "BABEL_ENV": "coverage"
112
- }
113
- },
89
+ "coverage": "c8 mocha",
114
90
  "build": "npm run build:es && npm run build:commonjs && npm run build:umd",
115
- "build:es": {
116
- "command": "babel src --out-dir es",
117
- "env": {
118
- "BABEL_ENV": "es"
119
- }
120
- },
121
- "build:commonjs": {
122
- "command": "babel src --out-dir lib && echo '{\"type\": \"commonjs\"}' > ./lib/package.json",
123
- "env": {
124
- "BABEL_ENV": "commonjs"
125
- }
126
- },
91
+ "build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
92
+ "build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib && echo '{\"type\": \"commonjs\"}' > ./lib/package.json",
127
93
  "build:umd": "webpack --config webpack.config.cjs --progress && echo '{\"type\": \"commonjs\"}' > ./dist/package.json",
128
94
  "prepublishOnly": "npm run clean && npm run lint && npm run test && npm run build && npm run docs",
129
- "clean": "rimraf .nyc_output .tmp docs coverage tmp-test-bundle.js dist lib es"
95
+ "clean": "rimraf .nyc_output .tmp docs coverage tmp-test-bundle.js dist lib es",
96
+ "prepare": "husky"
130
97
  },
131
98
  "peerDependencies": {
132
- "ramda": ">= 0.30.0"
99
+ "ramda": ">= 0.32.0"
133
100
  },
134
101
  "devDependencies": {
135
- "@babel/cli": "7.24.8",
136
- "@babel/core": "=7.25.2",
137
- "@babel/plugin-transform-modules-commonjs": "=7.24.8",
138
- "@babel/preset-env": "=7.25.3",
139
- "@babel/register": "7.24.6",
140
- "@commitlint/cli": "=19.4.0",
141
- "@commitlint/config-conventional": "=19.2.2",
142
- "@typescript-eslint/eslint-plugin": "=7.18.0",
143
- "@typescript-eslint/parser": "=7.18.0",
102
+ "@babel/cli": "7.28.6",
103
+ "@babel/core": "=7.29.0",
104
+ "@babel/plugin-transform-modules-commonjs": "=7.28.6",
105
+ "@babel/preset-env": "=7.29.0",
106
+ "@babel/register": "7.28.6",
107
+ "@commitlint/cli": "=20.4.1",
108
+ "@commitlint/config-conventional": "=20.4.1",
109
+ "@eslint/js": "^10.0.1",
110
+ "@typescript-eslint/eslint-plugin": "^8.60.1",
111
+ "@typescript-eslint/parser": "^8.60.1",
144
112
  "assert": "=2.1.0",
145
- "babel-loader": "=9.1.3",
146
- "babel-plugin-annotate-pure-calls": "0.4.0",
147
- "babel-plugin-istanbul": "7.0.0",
148
- "better-npm-run": "0.1.1",
149
- "chai": "5.1.1",
150
- "codecov": "3.8.3",
151
- "core-js": "=3.38.0",
113
+ "babel-loader": "=10.0.0",
114
+ "babel-plugin-annotate-pure-calls": "0.5.0",
115
+ "c8": "10.1.3",
116
+ "chai": "6.2.2",
152
117
  "conventional-changelog-cli": "5.0.0",
118
+ "core-js": "=3.48.0",
119
+ "cross-env": "10.1.0",
153
120
  "docdash": "git+https://github.com/char0n/docdash.git#534b44382138a55dd8d93642c979e51e46471185",
154
- "eslint": "=8.57.0",
155
- "eslint-config-airbnb-base": "=15.0.0",
156
- "eslint-config-prettier": "=9.1.0",
157
- "eslint-plugin-dtslint": "=3.0.2",
158
- "eslint-plugin-import": "=2.29.1",
159
- "eslint-plugin-mocha": "=10.5.0",
160
- "eslint-plugin-prettier": "5.2.1",
161
- "eslint-plugin-ramda": "2.5.1",
121
+ "eslint": "^10.0.0",
122
+ "eslint-config-prettier": "^10.1.8",
123
+ "eslint-plugin-import-x": "^4.16.2",
124
+ "eslint-plugin-mocha": "^11.2.0",
125
+ "eslint-plugin-prettier": "^5.5.4",
126
+ "eslint-plugin-ramda": "^2.5.1",
162
127
  "fantasy-land": "5.0.1",
163
128
  "fantasy-laws": "=2.0.1",
164
129
  "folktale": "=2.3.2",
165
- "glob": "=11.0.0",
166
- "husky": "9.1.4",
167
- "istanbul": "=0.4.5",
168
- "jsdoc": "=4.0.3",
130
+ "glob": "=13.0.1",
131
+ "husky": "9.1.7",
132
+ "jsdoc": "=4.0.5",
169
133
  "jsverify": "0.8.4",
170
- "lint-staged": "15.2.8",
171
- "mocha": "=10.7.3",
134
+ "lint-staged": "16.2.7",
135
+ "mocha": "=11.7.5",
172
136
  "mocha-junit-reporter": "2.2.1",
173
137
  "mocha-multi-reporters": "1.5.1",
174
138
  "monet": "0.9.3",
175
- "nyc": "17.0.0",
176
- "prettier": "=3.3.3",
139
+ "prettier": "=3.8.1",
177
140
  "process": "=0.11.10",
178
- "ramda": "=0.30.1",
141
+ "ramda": "=0.32.0",
179
142
  "ramda-fantasy": "=0.8.0",
180
143
  "regenerator-runtime": "=0.14.1",
181
- "rimraf": "6.0.1",
144
+ "rimraf": "6.1.2",
182
145
  "sanctuary-show": "3.0.0",
183
- "sinon": "=18.0.0",
184
- "terser-webpack-plugin": "5.3.10",
185
- "testem": "=3.15.1",
186
- "typescript": "=5.5.4",
187
- "webpack": "=5.93.0",
188
- "webpack-cli": "5.1.4",
189
- "taffydb": "npm:@jsdoc/salty@0.2.1"
146
+ "sinon": "=21.0.1",
147
+ "taffydb": "npm:@jsdoc/salty@0.2.9",
148
+ "terser-webpack-plugin": "5.3.16",
149
+ "testem": "=3.20.1",
150
+ "tsd": "0.33.0",
151
+ "typescript": "=5.9.3",
152
+ "webpack": "=5.105.0",
153
+ "webpack-cli": "6.0.1"
154
+ },
155
+ "tsd": {
156
+ "directory": "types/test",
157
+ "typingsFile": "types/index.d.ts",
158
+ "compilerOptions": {
159
+ "strict": true,
160
+ "baseUrl": ".",
161
+ "paths": {
162
+ "ramda-adjunct": [
163
+ "types/index.d.ts"
164
+ ]
165
+ }
166
+ }
190
167
  },
191
168
  "browserslist": "> 0.25%, ie 10, ie 11, not op_mini all",
192
169
  "tonicExampleFilename": "tonicExample.js",
package/types/index.d.ts CHANGED
@@ -374,6 +374,11 @@ export function isBigInt(val: any): boolean;
374
374
  */
375
375
  export function isBlank(val: any): boolean;
376
376
 
377
+ /**
378
+ * Checks if a value can be safely coerced to a number without throwing a `TypeError`.
379
+ */
380
+ export function isCoercible(val: any): boolean;
381
+
377
382
  /**
378
383
  * Checks whether the passed value is a `float`.
379
384
  */
@@ -608,15 +613,6 @@ type PickRenameMulti<
608
613
  > = {
609
614
  [P in keyof T as P extends keyof R ? R[P] : P]: T[P];
610
615
  };
611
- export function renameKeys<
612
- MAP extends Dictionary<string>,
613
- OBJ extends { readonly [s in keyof MAP]: any },
614
- >(keysMap: MAP, obj: OBJ): PickRenameMulti<MAP, OBJ>;
615
- export function renameKeys<MAP extends Dictionary<string>>(
616
- keysMap: MAP
617
- ): <OBJ extends { readonly [s in keyof MAP]: any }>(
618
- obj: OBJ
619
- ) => PickRenameMulti<MAP, OBJ>;
620
616
 
621
617
  type Keyable = string | number | symbol;
622
618
  type RenameObjectKey<
@@ -998,17 +994,17 @@ export function lensTraverse(of: Function): Function;
998
994
  * in R.equals terms, to the given value; false otherwise.
999
995
  */
1000
996
  export function propNotEq(
1001
- prop: string | number,
1002
997
  value: any,
998
+ prop: string | number,
1003
999
  obj: object
1004
1000
  ): boolean;
1005
1001
  export function propNotEq(
1006
- prop: string | number,
1007
- value: any
1002
+ value: any,
1003
+ prop: string | number
1008
1004
  ): (obj: object) => boolean;
1009
- export function propNotEq(prop: string | number): {
1010
- (value: any, obj: object): boolean;
1011
- (value: any): (obj: object) => boolean;
1005
+ export function propNotEq(value: any): {
1006
+ (prop: string | number, obj: object): boolean;
1007
+ (prop: string | number): (obj: object) => boolean;
1012
1008
  };
1013
1009
 
1014
1010
  /**
@@ -1016,17 +1012,17 @@ export function propNotEq(prop: string | number): {
1016
1012
  * in R.equals terms. Most likely used to filter a list.
1017
1013
  */
1018
1014
  export function pathNotEq(
1019
- path: Array<string | number>,
1020
1015
  value: any,
1016
+ path: Array<string | number>,
1021
1017
  obj: object
1022
1018
  ): boolean;
1023
1019
  export function pathNotEq(
1024
- path: Array<string | number>,
1025
- value: any
1020
+ value: any,
1021
+ path: Array<string | number>
1026
1022
  ): (obj: object) => boolean;
1027
- export function pathNotEq(path: Array<string | number>): {
1028
- (value: any, obj: object): boolean;
1029
- (value: any): (obj: object) => boolean;
1023
+ export function pathNotEq(value: any): {
1024
+ (path: Array<string | number>, obj: object): boolean;
1025
+ (path: Array<string | number>): (obj: object) => boolean;
1030
1026
  };
1031
1027
 
1032
1028
  /**