Skip to content

Commit

Permalink
chore: update prettier and reformat files
Browse files Browse the repository at this point in the history
  • Loading branch information
simhnna committed Jan 28, 2025
1 parent cdbdb58 commit e34d951
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 20 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"husky": "^9.1.7",
"lint-staged": "^15.4.3",
"mocha": "^11.0.0",
"prettier": "^2.7.1",
"prettier": "3.4.2",
"soap": "^1.1.7",
"ts-node": "^10.9.1",
"typescript": "~5.7.3"
Expand Down
5 changes: 4 additions & 1 deletion src/node-soap/node-soap-caller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { NodeSoapClient } from './node-soap';
* Default implementation of SoapCaller for node-soap.
*/
export class NodeSoapCaller implements SoapCaller {
constructor(protected soapClient: NodeSoapClient, protected logger: Logger) {}
constructor(
protected soapClient: NodeSoapClient,
protected logger: Logger,
) {}

async call(input: SoapCallInput): Promise<any> {
this.debug(
Expand Down
5 changes: 4 additions & 1 deletion src/node-soap/node-soap-endpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export function createSoapEndpoint(soapClient: NodeSoapClient, logger: Logger):
export class NodeSoapEndpoint implements SoapEndpoint {
private _resolver: NodeSoapWsdlResolver;

constructor(private soapClient: NodeSoapClient, logger: Logger) {
constructor(
private soapClient: NodeSoapClient,
logger: Logger,
) {
this._resolver = new NodeSoapWsdlResolver(this.soapClient.wsdl, logger);
}

Expand Down
5 changes: 4 additions & 1 deletion src/node-soap/node-soap-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ const XS_STRING: SoapType = {
export class NodeSoapWsdlResolver {
private alreadyResolved: Map<string, SoapType> = new Map();

constructor(private wsdl: NodeSoapWsdl, private logger: Logger) {}
constructor(
private wsdl: NodeSoapWsdl,
private logger: Logger,
) {}

warn(message: LateResolvedMessage): void {
this.logger.warn(message);
Expand Down
12 changes: 6 additions & 6 deletions src/soap2graphql/name-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ export const defaultOutputNameResolver: NameResolver = (soapType: SoapType) => {
return !soapType
? null
: !soapType.name
? null
: capitalizeFirstLetter(namespacedGraphQLTypeName(soapType));
? null
: capitalizeFirstLetter(namespacedGraphQLTypeName(soapType));
};

export const defaultInputNameResolver: NameResolver = (soapType: SoapType) => {
return !soapType
? null
: !soapType.name
? null
: capitalizeFirstLetter(namespacedGraphQLTypeName(soapType)) + 'Input';
? null
: capitalizeFirstLetter(namespacedGraphQLTypeName(soapType)) + 'Input';
};

export const defaultScalarNameResolver: NameResolver = (soapType: SoapType) => {
return !soapType
? null
: !soapType.name
? null
: capitalizeFirstLetter(namespacedGraphQLTypeName(soapType)) + 'Input';
? null
: capitalizeFirstLetter(namespacedGraphQLTypeName(soapType)) + 'Input';
};

export const defaultInterfaceNameResolver: NameResolver = (soapType: SoapComplexType) => {
Expand Down
5 changes: 4 additions & 1 deletion src/soap2graphql/schema-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ class GraphqlOutputFieldResolver {
class GraphQLScalarResolver {
private alreadyResolved: Map<SoapType, GraphQLScalarType> = new Map();

constructor(private options: SchemaOptions, private logger: Logger) {}
constructor(
private options: SchemaOptions,
private logger: Logger,
) {}

resolve(type: SoapSimpleType): GraphQLScalarType {
try {
Expand Down

0 comments on commit e34d951

Please sign in to comment.