ramda-adjunct 5.0.1 → 6.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 (97) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/README.md +2 -2
  3. package/dist/RA.node.js +5627 -5723
  4. package/dist/RA.node.min.js +1 -1
  5. package/dist/RA.web.js +5634 -5730
  6. package/dist/RA.web.min.js +1 -1
  7. package/dist/RA.web.standalone.js +11774 -11534
  8. package/dist/RA.web.standalone.min.js +1 -1
  9. package/es/async.js +4 -4
  10. package/es/copyKeys.js +2 -3
  11. package/es/index.js +0 -1
  12. package/es/internal/ap.js +1 -1
  13. package/es/internal/ponyfills/Math.trunc.js +0 -2
  14. package/es/internal/ponyfills/Number.isFinite.js +0 -2
  15. package/es/internal/ponyfills/Number.isNaN.js +0 -2
  16. package/es/internal/ponyfills/Promise.any.js +1 -1
  17. package/es/internal/ponyfills/String.padEnd.js +0 -1
  18. package/es/internal/ponyfills/String.padStart.js +0 -1
  19. package/es/internal/ponyfills/String.repeat.js +1 -1
  20. package/es/isArrayLike.js +1 -2
  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/toUinteger32.js +0 -1
  50. package/lib/anyP.js +1 -2
  51. package/lib/async.js +4 -4
  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 +2 -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/isMap.js +3 -3
  66. package/lib/isNotAsyncFunction.js +1 -2
  67. package/lib/isNotFunction.js +1 -2
  68. package/lib/isNotGeneratorFunction.js +1 -2
  69. package/lib/isNotObj.js +1 -2
  70. package/lib/isNotObjLike.js +1 -2
  71. package/lib/isNotPlainObj.js +1 -2
  72. package/lib/isObj.js +1 -2
  73. package/lib/isObjLike.js +1 -2
  74. package/lib/isPlainObj.js +1 -2
  75. package/lib/isSentinelValue.js +1 -1
  76. package/lib/isValidDate.js +1 -2
  77. package/lib/lensTraverse.js +1 -2
  78. package/lib/mergeProp.js +2 -2
  79. package/lib/nand.js +1 -1
  80. package/lib/neither.js +1 -2
  81. package/lib/nor.js +1 -1
  82. package/lib/notBoth.js +1 -2
  83. package/lib/omitBy.js +1 -2
  84. package/lib/pathNotEq.js +1 -2
  85. package/lib/reduceP.js +0 -1
  86. package/lib/reduceRightP.js +0 -1
  87. package/lib/renameKey.js +1 -3
  88. package/lib/resolveP.js +1 -2
  89. package/lib/seq.js +0 -2
  90. package/lib/sortByProps.js +1 -1
  91. package/lib/stubUndefined.js +1 -1
  92. package/lib/toInteger32.js +1 -1
  93. package/lib/toUinteger32.js +0 -1
  94. package/package.json +63 -86
  95. package/types/index.d.ts +12 -26
  96. package/es/renameKeys.js +0 -39
  97. package/lib/renameKeys.js +0 -44
package/lib/renameKeys.js DELETED
@@ -1,44 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports["default"] = void 0;
5
- var _ramda = require("ramda");
6
- var _renameKeysWith = _interopRequireDefault(require("./renameKeysWith.js"));
7
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
8
- var valueOrKey = function valueOrKey(keysMap) {
9
- return function (key) {
10
- if ((0, _ramda.has)(key, keysMap)) {
11
- return keysMap[key];
12
- }
13
- return key;
14
- };
15
- };
16
-
17
- /**
18
- * Creates a new object with the own properties of the provided object, but the
19
- * keys renamed according to the keysMap object as `{oldKey: newKey}`.
20
- * When some key is not found in the keysMap, then it's passed as-is.
21
- *
22
- * Keep in mind that in the case of keys conflict is behaviour undefined and
23
- * the result may vary between various JS engines!
24
- *
25
- * @func renameKeys
26
- * @memberOf RA
27
- * @since {@link https://char0n.github.io/ramda-adjunct/1.5.0|v1.5.0}
28
- * @category Object
29
- * @sig {a: b} -> {a: *} -> {b: *}
30
- * @param {!Object} keysMap
31
- * @param {!Object} obj
32
- * @return {!Object} New object with renamed keys
33
- * @see {@link https://github.com/ramda/ramda/wiki/Cookbook#rename-keys-of-an-object|Ramda Cookbook}, {@link RA.renameKeysWith|renameKeysWith}
34
- * @example
35
- *
36
- * const input = { firstName: 'Elisia', age: 22, type: 'human' };
37
- *
38
- * RA.renameKeys({ firstName: 'name', type: 'kind', foo: 'bar' })(input);
39
- * //=> { name: 'Elisia', age: 22, kind: 'human' }
40
- */
41
- var renameKeys = (0, _ramda.curry)(function (keysMap, obj) {
42
- return (0, _renameKeysWith["default"])(valueOrKey(keysMap), obj);
43
- });
44
- var _default = exports["default"] = renameKeys;