@lowdefy/operators-change-case 4.0.0-alpha.9 → 4.0.0-rc.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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -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)=>{
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
package/dist/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
2
+ Copyright 2020-2023 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lowdefy/operators-change-case",
3
- "version": "4.0.0-alpha.9",
4
- "licence": "Apache-2.0",
3
+ "version": "4.0.0-rc.1",
4
+ "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
7
7
  "keywords": [
@@ -36,25 +36,25 @@
36
36
  "dist/*"
37
37
  ],
38
38
  "scripts": {
39
- "build": "yarn swc",
39
+ "build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
40
40
  "clean": "rm -rf dist",
41
- "prepare": "yarn build",
42
- "swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
43
- "test": "jest --coverage"
41
+ "prepublishOnly": "pnpm build",
42
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
44
43
  },
45
44
  "dependencies": {
46
- "@lowdefy/helpers": "4.0.0-alpha.9",
47
- "@lowdefy/operators": "4.0.0-alpha.9",
45
+ "@lowdefy/helpers": "4.0.0-rc.1",
46
+ "@lowdefy/operators": "4.0.0-rc.1",
48
47
  "change-case": "4.1.2"
49
48
  },
50
49
  "devDependencies": {
51
- "@swc/cli": "0.1.55",
52
- "@swc/core": "1.2.135",
53
- "@swc/jest": "0.2.17",
54
- "jest": "27.5.1"
50
+ "@swc/cli": "0.1.59",
51
+ "@swc/core": "1.3.24",
52
+ "@swc/jest": "0.2.24",
53
+ "jest": "28.1.0",
54
+ "jest-environment-jsdom": "28.1.0"
55
55
  },
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "gitHead": "98b544eca231bdcfca6c3a8601a891835d5ce571"
59
+ "gitHead": "ecc4f16c19eede929eda177db524cf13a8053379"
60
60
  }