diff --git a/packages/ast/scripts/test-ast.js b/packages/ast/scripts/test-ast.js index 2ea52b3f8a..6f29c1bac6 100644 --- a/packages/ast/scripts/test-ast.js +++ b/packages/ast/scripts/test-ast.js @@ -1,4 +1,4 @@ -// This file is a demonstation of how ast package works. In order to try it yourself you need: +// This file is a demonstration of how ast package works. In order to try it yourself you need: // 1. Create a 'fixture.tx' file in the same directory as this file and write any TypeScript to it. // 2. cd into `packages/ast`. // 3. Run `yarn test:ast`. diff --git a/packages/ast/src/clients/rpc/class/grpc-web/grpc-web.msg.ts b/packages/ast/src/clients/rpc/class/grpc-web/grpc-web.msg.ts index 251d52850e..edf58ae1db 100644 --- a/packages/ast/src/clients/rpc/class/grpc-web/grpc-web.msg.ts +++ b/packages/ast/src/clients/rpc/class/grpc-web/grpc-web.msg.ts @@ -185,10 +185,10 @@ const rpcClassMethod = ( t.objectProperty( t.identifier('pagination'), paginationDefaultFromPartial ? t.callExpression( - t.memberExpression(t.identifier("PageRequest"), t.identifier("fromPartial")), - [t.objectExpression([])] + t.memberExpression(t.identifier("PageRequest"), t.identifier("fromPartial")), + [t.objectExpression([])] ) : - t.identifier('undefined'), + t.identifier('undefined'), false, false ) @@ -349,7 +349,7 @@ export const getMethodDesc = (context: GenericParseContext, service: ProtoServic const methodsDesc = [] - //check if service name is 'service' if it is then ommit it because proto method doesn't contain service prefix in it methods + //check if service name is 'service' if it is then omit it because proto method doesn't contain service prefix in it methods let service_name = service.name if (service_name == 'Service') { service_name = '' diff --git a/packages/parser/src/lookup.ts b/packages/parser/src/lookup.ts index b744ebaaae..3acee30093 100644 --- a/packages/parser/src/lookup.ts +++ b/packages/parser/src/lookup.ts @@ -172,7 +172,7 @@ export const protoScopeImportLookup = ( const root = getRoot(ref); // TODO pass in the imports and this ref - // e.g. only include packges of those files !!!!! + // e.g. only include packages of those files !!!!! // this is currently looking at ALL protos const parsed = store.parseScope(name); if (!parsed) {