Skip to content

Commit 9fae3ba

Browse files
authored
fix: dependency update (#58)
Update dependencies with latest compatible version. This will fix some security vulnerabilities
1 parent a603273 commit 9fae3ba

File tree

3 files changed

+2222
-1392
lines changed

3 files changed

+2222
-1392
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
defaults: &defaults
77
working_directory: ~/repo
88
docker:
9-
- image: circleci/node:10
9+
- image: circleci/node:14
1010

1111
version: 2.1 # use CircleCI 2.1
1212
jobs: # a collection of steps

src/index.ts

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,21 @@ type Options<T = TypeNode> = {
2222
customScalars?: ScalarMap;
2323
};
2424

25-
const createNameConverter = (convention: NamingConvention) => (value: string, prefix = '') => {
26-
switch (convention) {
27-
case 'upper-case#upperCase':
28-
return `${prefix}${upperCase(value || '')}`;
29-
case 'keep':
30-
return `${prefix}${value}`;
31-
case 'pascal-case#pascalCase':
32-
// fallthrough
33-
default:
34-
// default to pascal case in case of unknown values
35-
return `${prefix}${pascalCase(value || '')}`;
36-
}
37-
};
25+
const createNameConverter =
26+
(convention: NamingConvention) =>
27+
(value: string, prefix = '') => {
28+
switch (convention) {
29+
case 'upper-case#upperCase':
30+
return `${prefix}${upperCase(value || '')}`;
31+
case 'keep':
32+
return `${prefix}${value}`;
33+
case 'pascal-case#pascalCase':
34+
// fallthrough
35+
default:
36+
// default to pascal case in case of unknown values
37+
return `${prefix}${pascalCase(value || '')}`;
38+
}
39+
};
3840

3941
const toMockName = (typedName: string, casedName: string, prefix?: string) => {
4042
if (prefix) {

0 commit comments

Comments
 (0)