@lowdefy/operators-change-case 4.5.2 → 4.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 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.
|
|
@@ -29,10 +29,10 @@ const changeCase = {
|
|
|
29
29
|
snakeCase,
|
|
30
30
|
trainCase
|
|
31
31
|
};
|
|
32
|
-
const prep = (args
|
|
32
|
+
const prep = (args)=>{
|
|
33
33
|
const options = args[1];
|
|
34
34
|
if (!type.isNone(options) && !type.isObject(options)) {
|
|
35
|
-
throw new Error(`
|
|
35
|
+
throw new Error(`options must be an object.`);
|
|
36
36
|
}
|
|
37
37
|
return args;
|
|
38
38
|
};
|
|
@@ -107,4 +107,5 @@ function change_case({ params, location, methodName }) {
|
|
|
107
107
|
params
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
+
change_case.dynamic = false;
|
|
110
111
|
export default change_case;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export default {
|
|
16
|
+
type: 'object',
|
|
17
|
+
params: {
|
|
18
|
+
description: 'Change case method params. Accepts array positional args or object with named args (on, options).'
|
|
19
|
+
}
|
|
20
|
+
};
|
package/dist/operatorsClient.js
CHANGED
package/dist/operatorsServer.js
CHANGED
package/dist/schemas.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
*/ export { default as _change_case } from './operators/shared/change_case.schema.js';
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/operators-change-case",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -30,14 +30,15 @@
|
|
|
30
30
|
"exports": {
|
|
31
31
|
"./operators/client": "./dist/operatorsClient.js",
|
|
32
32
|
"./operators/server": "./dist/operatorsServer.js",
|
|
33
|
+
"./schemas": "./dist/schemas.js",
|
|
33
34
|
"./types": "./dist/types.js"
|
|
34
35
|
},
|
|
35
36
|
"files": [
|
|
36
37
|
"dist/*"
|
|
37
38
|
],
|
|
38
39
|
"dependencies": {
|
|
39
|
-
"@lowdefy/helpers": "4.
|
|
40
|
-
"@lowdefy/operators": "4.
|
|
40
|
+
"@lowdefy/helpers": "4.6.0",
|
|
41
|
+
"@lowdefy/operators": "4.6.0",
|
|
41
42
|
"change-case": "5.4.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|