@ecodev/natural 61.0.2 → 61.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.
@@ -45,6 +45,14 @@ export declare function replaceObjectKeepingReference(obj: Literal | null, newOb
45
45
  * @param hexBgColor string in hexadecimals representing the background color
46
46
  */
47
47
  export declare function getForegroundColor(hexBgColor: string): 'black' | 'white';
48
+ /**
49
+ * Convert RGB color to hexadecimal color
50
+ *
51
+ * ```ts
52
+ * rgbToHex('rgb(255, 00, 255)'); // '#FF00FF'
53
+ * ```
54
+ */
55
+ export declare function rgbToHex(rgb: string): string;
48
56
  /**
49
57
  * During lodash.mergeWith, overrides arrays
50
58
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodev/natural",
3
- "version": "61.0.2",
3
+ "version": "61.1.0",
4
4
  "license": "MIT",
5
5
  "repository": "github:Ecodev/natural",
6
6
  "sideEffects": false,