Skip to content

Commit 2127fd9

Browse files
Alan-ChaErikWittern
authored andcommitted
Rename beautify to sanitize
Fix #21 Signed-off-by: Alan Cha <[email protected]>
1 parent 8490783 commit 2127fd9

25 files changed

+197
-232
lines changed

packages/openapi-to-graphql/lib/auth_builder.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/oas_3_tools.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export declare function getSecuritySchemes(oas: Oas3): {
150150
[key: string]: SecuritySchemeObject;
151151
};
152152
/**
153-
* Returns the list of BEAUTIFIED keys of NON-OAUTH 2 security schemes
153+
* Returns the list of sanitized keys of non-OAuth2 security schemes
154154
* required by the operation at the given path and method.
155155
*/
156156
export declare function getSecurityRequirements(path: string, method: string, securitySchemes: {
@@ -159,19 +159,19 @@ export declare function getSecurityRequirements(path: string, method: string, se
159159
/**
160160
* First sanitizes given string and then also camel-cases it.
161161
*/
162-
export declare function beautify(str: string, lowercaseFirstChar?: boolean): string;
162+
export declare function sanitize(str: string, lowercaseFirstChar?: boolean): string;
163163
/**
164-
* Beautifies the given string and stores the sanitized-to-original mapping in
164+
* Sanitizes the given string and stores the sanitized-to-original mapping in
165165
* the given mapping.
166166
*/
167-
export declare function beautifyAndStore(str: string, mapping: {
167+
export declare function sanitizeAndStore(str: string, mapping: {
168168
[key: string]: string;
169169
}): string;
170170
/**
171171
* Return an object similar to the input object except the keys are all
172-
* beautified
172+
* sanitized
173173
*/
174-
export declare function beautifyObjectKeys(obj: object): object;
174+
export declare function sanitizeObjectKeys(obj: object): object;
175175
/**
176176
* Stringifies and possibly trims the given string to the provided length.
177177
*/

packages/openapi-to-graphql/lib/oas_3_tools.js

Lines changed: 40 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/oas_3_tools.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql/lib/preprocessor.js

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)