@karta.io/utils 0.5.1 → 0.6.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.
package/dist/index.cjs CHANGED
@@ -3,11 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const libphonenumberJs = require('libphonenumber-js');
6
- const camelCase = require('lodash/camelCase');
7
-
8
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
9
-
10
- const camelCase__default = /*#__PURE__*/_interopDefaultLegacy(camelCase);
6
+ const lodashEs = require('lodash-es');
11
7
 
12
8
  function viewExample(value) {
13
9
  return value;
@@ -70,7 +66,7 @@ function camelizeKeys(object) {
70
66
  if (object !== null && object.constructor === Object) {
71
67
  return Object.keys(object).reduce((result, key) => ({
72
68
  ...result,
73
- [camelCase__default(key)]: camelizeKeys(object[key])
69
+ [lodashEs.camelCase(key)]: camelizeKeys(object[key])
74
70
  }), {});
75
71
  }
76
72
  return object;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { parsePhoneNumberFromString } from 'libphonenumber-js';
2
- import camelCase from 'lodash/camelCase';
2
+ import { camelCase } from 'lodash-es';
3
3
 
4
4
  function viewExample(value) {
5
5
  return value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karta.io/utils",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "karta.io utils for admin and application",
5
5
  "author": "Vitaly Blokhin <karambafe@gmail.com>",
6
6
  "homepage": "",
@@ -19,9 +19,9 @@
19
19
  "dist"
20
20
  ],
21
21
  "dependencies": {
22
- "@karta.io/common-data": "^0.5.1",
22
+ "@karta.io/common-data": "^0.6.0",
23
23
  "libphonenumber-js": "1.9.44",
24
- "lodash": "4.17.21"
24
+ "lodash-es": "4.17.21"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@qvant/prettier-config": "0.1.0",