vimp-engine 0.10.0 → 0.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vimp-engine",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "VIMP — движок-приложение (мастер, P2P-транспорт, Worker-хост, мета, MVC-каркас клиента)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,7 +27,7 @@ export const formatMessage = (message = '', arr = []) => {
27
27
  * @param {number} value - Число для округления.
28
28
  * @returns {number}
29
29
  * @example
30
- * round(10.567); // 10.57
31
- * round(10.567, 1); // 10.6
30
+ * roundTo2Decimals(10.567); // 10.57
31
+ * roundTo2Decimals(-3.14159); // -3.14
32
32
  */
33
33
  export const roundTo2Decimals = value => Math.round(value * 100) / 100;