camstreamerlib 4.0.0-beta.160 → 4.0.0-beta.161

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.
@@ -1,32 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.toSnakeCaseDeep = exports.toSnakeCase = exports.toCamelCaseDeep = exports.toCamelCase = void 0;
4
- const lodash_1 = require("lodash");
5
- const toCamelCase = (o) => (0, lodash_1.mapKeys)(o, camelCaseKey);
4
+ const lodash_es_1 = require("lodash-es");
5
+ const toCamelCase = (o) => (0, lodash_es_1.mapKeys)(o, camelCaseKey);
6
6
  exports.toCamelCase = toCamelCase;
7
7
  const toCamelCaseDeep = (o) => {
8
8
  return mapKeysDeep(o, camelCaseKey);
9
9
  };
10
10
  exports.toCamelCaseDeep = toCamelCaseDeep;
11
- const toSnakeCase = (o) => (0, lodash_1.mapKeys)(o, snakeCaseKey);
11
+ const toSnakeCase = (o) => (0, lodash_es_1.mapKeys)(o, snakeCaseKey);
12
12
  exports.toSnakeCase = toSnakeCase;
13
13
  const toSnakeCaseDeep = (o) => {
14
14
  return mapKeysDeep(o, snakeCaseKey);
15
15
  };
16
16
  exports.toSnakeCaseDeep = toSnakeCaseDeep;
17
- const camelCaseKey = (_, key) => (0, lodash_1.camelCase)(key);
18
- const snakeCaseKey = (_, key) => (0, lodash_1.snakeCase)(key);
17
+ const camelCaseKey = (_, key) => (0, lodash_es_1.camelCase)(key);
18
+ const snakeCaseKey = (_, key) => (0, lodash_es_1.snakeCase)(key);
19
19
  const mapKeysDeep = (obj, cb) => {
20
20
  if (Array.isArray(obj)) {
21
21
  return obj.map((item) => {
22
22
  return mapKeysDeep(item, cb);
23
23
  });
24
24
  }
25
- if (typeof obj !== 'object' || (0, lodash_1.isPlainObject)(obj) === false) {
25
+ if (typeof obj !== 'object' || (0, lodash_es_1.isPlainObject)(obj) === false) {
26
26
  return obj;
27
27
  }
28
- const result = (0, lodash_1.mapKeys)(obj, cb);
29
- return (0, lodash_1.mapValues)(result, (value) => {
28
+ const result = (0, lodash_es_1.mapKeys)(obj, cb);
29
+ return (0, lodash_es_1.mapValues)(result, (value) => {
30
30
  return mapKeysDeep(value, cb);
31
31
  });
32
32
  };
@@ -1,4 +1,4 @@
1
- import { camelCase, snakeCase, isPlainObject, mapKeys, mapValues } from 'lodash';
1
+ import { camelCase, snakeCase, isPlainObject, mapKeys, mapValues } from 'lodash-es';
2
2
  export const toCamelCase = (o) => mapKeys(o, camelCaseKey);
3
3
  export const toCamelCaseDeep = (o) => {
4
4
  return mapKeysDeep(o, camelCaseKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstreamerlib",
3
- "version": "4.0.0-beta.160",
3
+ "version": "4.0.0-beta.161",
4
4
  "description": "Helper library for CamStreamer ACAP applications.",
5
5
  "prettier": "@camstreamer/prettier-config",
6
6
  "engine": {
@@ -10,7 +10,7 @@
10
10
  "adm-zip": "^0.5.9",
11
11
  "eventemitter2": "^5.0.1",
12
12
  "fast-xml-parser": "^5.3.6",
13
- "lodash": "^4.18.1",
13
+ "lodash-es": "^4.18.1",
14
14
  "type-fest": "^4.41.0",
15
15
  "undici": "^6.21.3",
16
16
  "ws": "^8.18.0",
@@ -21,7 +21,7 @@
21
21
  "@camstreamer/prettier-config": "^2.0.4",
22
22
  "@types/adm-zip": "^0.5.5",
23
23
  "@types/jest": "^28.0.0",
24
- "@types/lodash": "^4.17.18",
24
+ "@types/lodash-es": "^4.17.12",
25
25
  "@types/node": "^18.19.127",
26
26
  "@types/ws": "^8.5.10",
27
27
  "@typescript-eslint/eslint-plugin": "^6.8.0",