@lowdefy/operators-change-case 4.0.0-alpha.12 → 4.0.0-alpha.13

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.
@@ -66,14 +66,10 @@ const convertArray = ({ methodName , on , options })=>{
66
66
  };
67
67
  const convertObject = ({ methodName , on , options })=>{
68
68
  const result = {};
69
- const keyConverter = get(options, 'convertKeys') ? (key)=>changeCase[methodName](key, options)
70
- : (key)=>key
71
- ;
69
+ const keyConverter = get(options, 'convertKeys') ? (key)=>changeCase[methodName](key, options) : (key)=>key;
72
70
  const valueConverter = get(options, 'convertValues', {
73
71
  default: true
74
- }) ? (val)=>changeCase[methodName](val, options)
75
- : (val)=>val
76
- ;
72
+ }) ? (val)=>changeCase[methodName](val, options) : (val)=>val;
77
73
  Object.entries(on).forEach(([key, value])=>{
78
74
  if (type.isString(value)) {
79
75
  result[keyConverter(key)] = valueConverter(value);
@@ -102,8 +98,7 @@ const makeCaseChanger = ({ methodName })=>(on, options = {})=>{
102
98
  });
103
99
  }
104
100
  return on;
105
- }
106
- ;
101
+ };
107
102
  const functions = {};
108
103
  const meta = {};
109
104
  Object.keys(changeCase).forEach((methodName)=>{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lowdefy/operators-change-case",
3
- "version": "4.0.0-alpha.12",
4
- "licence": "Apache-2.0",
3
+ "version": "4.0.0-alpha.13",
4
+ "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
7
7
  "keywords": [
@@ -43,18 +43,19 @@
43
43
  "test": "jest --coverage"
44
44
  },
45
45
  "dependencies": {
46
- "@lowdefy/helpers": "4.0.0-alpha.12",
47
- "@lowdefy/operators": "4.0.0-alpha.12",
46
+ "@lowdefy/helpers": "4.0.0-alpha.13",
47
+ "@lowdefy/operators": "4.0.0-alpha.13",
48
48
  "change-case": "4.1.2"
49
49
  },
50
50
  "devDependencies": {
51
- "@swc/cli": "0.1.55",
52
- "@swc/core": "1.2.135",
53
- "@swc/jest": "0.2.17",
54
- "jest": "27.5.1"
51
+ "@swc/cli": "0.1.57",
52
+ "@swc/core": "1.2.194",
53
+ "@swc/jest": "0.2.21",
54
+ "jest": "28.1.0",
55
+ "jest-environment-jsdom": "28.1.0"
55
56
  },
56
57
  "publishConfig": {
57
58
  "access": "public"
58
59
  },
59
- "gitHead": "41b6138a81bee7da362dad06345bc9f87b2c2133"
60
+ "gitHead": "e99b4b6c1f59804982fc148c0fe39dcf13b35d77"
60
61
  }