From 1dd4b8f90efd85642f0b8e0356c9cde136262147 Mon Sep 17 00:00:00 2001 From: Al Harris Date: Thu, 12 Jan 2023 11:04:37 -0800 Subject: [PATCH] chore: no-op comment update to all packages to trigger a full republish --- .../src/provider-utils/awscloudformation/base-api-stack.ts | 2 +- packages/amplify-dynamodb-simulator/index.js | 2 +- packages/amplify-e2e-core/src/cli-test-runner.js | 2 +- packages/amplify-e2e-tests/src/aws-exports/awsExports.ts | 2 +- .../src/graphql-auth-transformer.ts | 2 +- .../src/validators.ts | 2 +- .../src/graphql-function-transformer.ts | 2 +- .../src/graphql-http-transformer.ts | 2 +- packages/amplify-graphql-index-transformer/src/resolvers.ts | 2 +- .../src/graphql-maps-to-transformer.ts | 2 +- .../amplify-graphql-migration-tests/src/test-case-registry.ts | 4 ++-- packages/amplify-graphql-model-transformer/src/directive.ts | 2 +- .../src/graphql-predictions-transformer.ts | 2 +- packages/amplify-graphql-relational-transformer/src/schema.ts | 3 --- packages/amplify-graphql-schema-test-library/src/index.ts | 2 +- .../src/nodeToNodeEncryption.ts | 2 +- packages/amplify-graphql-transformer-core/src/index.ts | 2 +- .../src/graphql-api-provider.ts | 2 +- .../src/migrators/generators/index.ts | 3 +++ packages/amplify-migration-tests/src/configure_tests.ts | 2 +- packages/amplify-util-mock/src/api/index.ts | 2 +- packages/graphql-auth-transformer/src/ModelAuthTransformer.ts | 2 +- packages/graphql-connection-transformer/src/resources.ts | 2 +- .../src/DynamoDBModelTransformer.ts | 2 +- packages/graphql-elasticsearch-transformer/src/resources.ts | 2 +- .../graphql-function-transformer/src/FunctionTransformer.ts | 1 - packages/graphql-http-transformer/src/HttpTransformer.ts | 2 +- packages/graphql-key-transformer/src/KeyTransformer.ts | 1 - packages/graphql-mapping-template/src/http.ts | 2 +- .../src/PredictionsTransformer.ts | 2 +- .../src/AuroraServerlessMySQLDatabaseReader.ts | 2 +- packages/graphql-transformer-common/src/definition.ts | 2 -- packages/graphql-transformer-core/src/index.ts | 2 +- .../graphql-transformers-e2e-tests/src/stringSetMutations.ts | 2 +- .../src/VersionedModelTransformer.ts | 2 +- 35 files changed, 34 insertions(+), 38 deletions(-) diff --git a/packages/amplify-category-api/src/provider-utils/awscloudformation/base-api-stack.ts b/packages/amplify-category-api/src/provider-utils/awscloudformation/base-api-stack.ts index a3b4bca35a..e851714e9c 100644 --- a/packages/amplify-category-api/src/provider-utils/awscloudformation/base-api-stack.ts +++ b/packages/amplify-category-api/src/provider-utils/awscloudformation/base-api-stack.ts @@ -17,7 +17,7 @@ const PIPELINE_AWAITER_ZIP = 'custom-resource-pipeline-awaiter.zip'; export enum DEPLOYMENT_MECHANISM { /** - * on every amplify push + * on every amplify push. */ FULLY_MANAGED = 'FULLY_MANAGED', /** diff --git a/packages/amplify-dynamodb-simulator/index.js b/packages/amplify-dynamodb-simulator/index.js index a81508a616..2b3b24b01d 100644 --- a/packages/amplify-dynamodb-simulator/index.js +++ b/packages/amplify-dynamodb-simulator/index.js @@ -7,7 +7,7 @@ const log = require('logdown')('dynamodb-emulator'); const execa = require('execa'); const { pathManager } = require('amplify-cli-core'); -// random port I chose in the ephemeral range. +// random port I chose in the ephemeral range const basePort = 62224; const defaultOptions = { diff --git a/packages/amplify-e2e-core/src/cli-test-runner.js b/packages/amplify-e2e-core/src/cli-test-runner.js index cf2e255a38..0eb5a748ec 100644 --- a/packages/amplify-e2e-core/src/cli-test-runner.js +++ b/packages/amplify-e2e-core/src/cli-test-runner.js @@ -17,7 +17,7 @@ export const run = async (globalConfig, config, environment, runtime, testPath) // This prevents the jest process from exiting without being forced. // Exiting here as a workaround, only on windows. // A timeout is used to give Jest time to render the list of passed/failed tests. - // See https://github.com/microsoft/node-pty/issues/437 + // See https://github.com/microsoft/node-pty/issues/437. process.exit(result.numFailingTests !== 0); } }, 1000); diff --git a/packages/amplify-e2e-tests/src/aws-exports/awsExports.ts b/packages/amplify-e2e-tests/src/aws-exports/awsExports.ts index 3f9372a93a..8ad32678d5 100644 --- a/packages/amplify-e2e-tests/src/aws-exports/awsExports.ts +++ b/packages/amplify-e2e-tests/src/aws-exports/awsExports.ts @@ -8,7 +8,7 @@ export function getAWSExportsPath(projRoot: string): string { export function getAWSExports(projectRoot: string) { const awsExportsPath = getAWSExportsPath(projectRoot); // From Jest 25, ESM modules can only be loaded with mjs extension and Jest takes over - // require, that's why we need to copy the file. + // require, that's why we need to copy the file const awsExportsMJSPath = awsExportsPath.replace('.js', '.mjs'); fs.copySync(awsExportsPath, awsExportsMJSPath, { overwrite: true }); const localRequire = require('esm')(module); diff --git a/packages/amplify-graphql-auth-transformer/src/graphql-auth-transformer.ts b/packages/amplify-graphql-auth-transformer/src/graphql-auth-transformer.ts index 1c7ab9553c..ce8a46b3db 100644 --- a/packages/amplify-graphql-auth-transformer/src/graphql-auth-transformer.ts +++ b/packages/amplify-graphql-auth-transformer/src/graphql-auth-transformer.ts @@ -110,7 +110,7 @@ import { showDefaultIdentityClaimWarning, showOwnerCanReassignWarning, showOwner /** * util to get allowed roles for field * if we have a rule like cognito private we can remove all other related roles from the field since it has top level - * access by the provider + * access by the provider. */ const getReadRolesForField = (acm: AccessControlMatrix, readRoles: Array, fieldName: string): Array => { const hasCognitoPrivateRole = readRoles.some((r) => r === 'userPools:private') diff --git a/packages/amplify-graphql-default-value-transformer/src/validators.ts b/packages/amplify-graphql-default-value-transformer/src/validators.ts index b26629373e..96cc69a16d 100644 --- a/packages/amplify-graphql-default-value-transformer/src/validators.ts +++ b/packages/amplify-graphql-default-value-transformer/src/validators.ts @@ -15,7 +15,7 @@ const validateDate = (date: string): boolean => { } // Verify the correct number of days for - // the month contained in the date-string. + // the month contained in the date-string const year = Number(date.slice(0, 4)); const month = Number(date.slice(5, 2)); const day = Number(date.slice(8, 2)); diff --git a/packages/amplify-graphql-function-transformer/src/graphql-function-transformer.ts b/packages/amplify-graphql-function-transformer/src/graphql-function-transformer.ts index 23a6ca51ad..cf027cfe28 100644 --- a/packages/amplify-graphql-function-transformer/src/graphql-function-transformer.ts +++ b/packages/amplify-graphql-function-transformer/src/graphql-function-transformer.ts @@ -161,7 +161,7 @@ export class FunctionTransformer extends TransformerPluginBase { requestTemplate.push(obj({})); if (resolver === undefined) { - // TODO: update function to use resolver manager + // TODO: update function to use resolver manager. const resolverStack = context.stackManager.getStackFor(resolverId, FUNCTION_DIRECTIVE_STACK); resolver = context.api.host.addResolver( config.resolverTypeName, diff --git a/packages/amplify-graphql-http-transformer/src/graphql-http-transformer.ts b/packages/amplify-graphql-http-transformer/src/graphql-http-transformer.ts index a9965ad49d..0e16a20cd3 100644 --- a/packages/amplify-graphql-http-transformer/src/graphql-http-transformer.ts +++ b/packages/amplify-graphql-http-transformer/src/graphql-http-transformer.ts @@ -133,7 +133,7 @@ export class HttpTransformer extends TransformerPluginBase { params = params.map(p => p.replace(':', '')); // If there are URL parameters, remove them from the array used to - // create the query and body types. + // create the query and body types args.queryAndBodyArgs = args.queryAndBodyArgs.filter(arg => { return isScalar(arg.type) && !(params as string[]).includes(arg.name.value); }); diff --git a/packages/amplify-graphql-index-transformer/src/resolvers.ts b/packages/amplify-graphql-index-transformer/src/resolvers.ts index ace9483a54..6babfaeef2 100644 --- a/packages/amplify-graphql-index-transformer/src/resolvers.ts +++ b/packages/amplify-graphql-index-transformer/src/resolvers.ts @@ -56,7 +56,7 @@ const API_KEY = 'API Key Authorization'; * replaceDdbPrimaryKey */ export function replaceDdbPrimaryKey(config: PrimaryKeyDirectiveConfiguration, ctx: TransformerContextProvider): void { - // Replace the table's primary key with the value from @primaryKey. + // Replace the table's primary key with the value from @primaryKey const { field, object } = config; const table = getTable(ctx, object) as any; const cfnTable = table.table; diff --git a/packages/amplify-graphql-maps-to-transformer/src/graphql-maps-to-transformer.ts b/packages/amplify-graphql-maps-to-transformer/src/graphql-maps-to-transformer.ts index 81c63552df..92e468606d 100644 --- a/packages/amplify-graphql-maps-to-transformer/src/graphql-maps-to-transformer.ts +++ b/packages/amplify-graphql-maps-to-transformer/src/graphql-maps-to-transformer.ts @@ -20,7 +20,7 @@ export class MapsToTransformer extends TransformerPluginBase { } /** - * During the AST tree walking, the mapsTo transformer registers any renamed models with the ctx.resourceHelper + * During the AST tree walking, the mapsTo transformer registers any renamed models with the ctx.resourceHelper. */ object = (definition: ObjectTypeDefinitionNode, directive: DirectiveNode, ctx: TransformerSchemaVisitStepContextProvider) => { updateTypeMapping(definition, directive, ctx.inputDocument, ctx.resourceHelper.setModelNameMapping); diff --git a/packages/amplify-graphql-migration-tests/src/test-case-registry.ts b/packages/amplify-graphql-migration-tests/src/test-case-registry.ts index fd1dbe4375..1588f0f7cb 100644 --- a/packages/amplify-graphql-migration-tests/src/test-case-registry.ts +++ b/packages/amplify-graphql-migration-tests/src/test-case-registry.ts @@ -1,7 +1,7 @@ import { TestEntry } from './test-case-types'; /* - REGISTER TEST CASES HERE + REGISTER TEST CASES HERE! */ export const getTestCaseRegistry = (): TestEntry[] => [ ['bi-di connection', biDiConnectionSchema], @@ -26,7 +26,7 @@ export const getTestCaseRegistry = (): TestEntry[] => [ ]; /* - DEFINE TEST SCHEMAS BELOW + DEFINE TEST SCHEMAS BELOW! */ const biDiConnectionSchema = /* GraphQL */ ` diff --git a/packages/amplify-graphql-model-transformer/src/directive.ts b/packages/amplify-graphql-model-transformer/src/directive.ts index 7e5d96577a..869033f3e8 100644 --- a/packages/amplify-graphql-model-transformer/src/directive.ts +++ b/packages/amplify-graphql-model-transformer/src/directive.ts @@ -11,7 +11,7 @@ export enum SubscriptionLevel { } /** - * ModelDirectiveConfiguration + * ModelDirectiveConfiguration. */ export type ModelDirectiveConfiguration = { queries?: Partial<{ diff --git a/packages/amplify-graphql-predictions-transformer/src/graphql-predictions-transformer.ts b/packages/amplify-graphql-predictions-transformer/src/graphql-predictions-transformer.ts index ff082e46bc..d643282dcd 100644 --- a/packages/amplify-graphql-predictions-transformer/src/graphql-predictions-transformer.ts +++ b/packages/amplify-graphql-predictions-transformer/src/graphql-predictions-transformer.ts @@ -124,7 +124,7 @@ export class PredictionsTransformer extends TransformerPluginBase { } }); - // Generate the input type based on operation name. + // Generate the input type based on operation name context.output.addInput(makeActionInputObject(directive.resolverFieldName, actionInputObjectFields)); // Add arguments into operation. diff --git a/packages/amplify-graphql-relational-transformer/src/schema.ts b/packages/amplify-graphql-relational-transformer/src/schema.ts index 10b63befad..a808bf1b16 100644 --- a/packages/amplify-graphql-relational-transformer/src/schema.ts +++ b/packages/amplify-graphql-relational-transformer/src/schema.ts @@ -43,9 +43,6 @@ import { } from './types'; import { getConnectionAttributeName, getObjectPrimaryKey, getSortKeyConnectionAttributeName } from './utils'; -/** - * extendTypeWithConnection - */ export const extendTypeWithConnection = (config: HasManyDirectiveConfiguration, ctx: TransformerContextProvider): void => { const { field, object } = config; diff --git a/packages/amplify-graphql-schema-test-library/src/index.ts b/packages/amplify-graphql-schema-test-library/src/index.ts index d14fb6db5b..3bf00cc588 100644 --- a/packages/amplify-graphql-schema-test-library/src/index.ts +++ b/packages/amplify-graphql-schema-test-library/src/index.ts @@ -5,7 +5,7 @@ // as (TransformerPlatform.js | TransformerPlatform.ios). Similarly, if a schema is supported // on all platforms but Flutter with DataStore enabled, the flags can be set like this: // (TransformerPlatform.all & ~TransformerPlatform.flutterDataStore). Ideally, we should be -// working toward a state where TransformerPlatform.all is the only value needed. +// working toward a state where TransformerPlatform.all is the only value needed export const enum TransformerVersion { v1 = 1 << 0, diff --git a/packages/amplify-graphql-searchable-transformer/src/nodeToNodeEncryption.ts b/packages/amplify-graphql-searchable-transformer/src/nodeToNodeEncryption.ts index 504ee4d3d1..573f1b78c5 100644 --- a/packages/amplify-graphql-searchable-transformer/src/nodeToNodeEncryption.ts +++ b/packages/amplify-graphql-searchable-transformer/src/nodeToNodeEncryption.ts @@ -53,7 +53,7 @@ const getCurrentCloudBackendStackFiles = (apiName: string): any[] => { }; /** - * Given a Stack file, determine whether or not NodeToNodeEncryption is defined in a search domain. + * Given a Stack file, determine whether or not NodeToNodeEncryption is defined in a search domain * @param stackDefinition the stack to inspect * @returns whether or not NodeToNodeEncryption was found, else false */ diff --git a/packages/amplify-graphql-transformer-core/src/index.ts b/packages/amplify-graphql-transformer-core/src/index.ts index fa82e83ee5..42590a7271 100644 --- a/packages/amplify-graphql-transformer-core/src/index.ts +++ b/packages/amplify-graphql-transformer-core/src/index.ts @@ -47,7 +47,7 @@ export { } from './transformation/transformer-plugin-base'; export { TransformerResolver, StackManager } from './transformer-context'; /** - * Returns the extra set of directives that are supported by AppSync service + * Returns the extra set of directives that are supported by AppSync service. */ export const getAppSyncServiceExtraDirectives = (): string => { return print(EXTRA_DIRECTIVES_DOCUMENT); diff --git a/packages/amplify-graphql-transformer-interfaces/src/graphql-api-provider.ts b/packages/amplify-graphql-transformer-interfaces/src/graphql-api-provider.ts index 34c325c0e6..79d24396a0 100644 --- a/packages/amplify-graphql-transformer-interfaces/src/graphql-api-provider.ts +++ b/packages/amplify-graphql-transformer-interfaces/src/graphql-api-provider.ts @@ -4,7 +4,7 @@ import { import { Grant, IGrantable, IRole } from '@aws-cdk/aws-iam'; import { TransformHostProvider } from './transform-host-provider'; -// Auth Config +// Auth Config Modes export type AppSyncAuthMode = 'API_KEY' | 'AMAZON_COGNITO_USER_POOLS' | 'AWS_IAM' | 'OPENID_CONNECT' | 'AWS_LAMBDA'; export type AppSyncAuthConfiguration = { defaultAuthentication: AppSyncAuthConfigurationEntry; diff --git a/packages/amplify-graphql-transformer-migrator/src/migrators/generators/index.ts b/packages/amplify-graphql-transformer-migrator/src/migrators/generators/index.ts index 0a5ad40db5..76f0791d23 100644 --- a/packages/amplify-graphql-transformer-migrator/src/migrators/generators/index.ts +++ b/packages/amplify-graphql-transformer-migrator/src/migrators/generators/index.ts @@ -1,6 +1,9 @@ import { parseValue } from 'graphql'; import { defaultProviderMap } from '../auth'; +/** + * Create a graphql name node given a name value + */ export function createNameNode(name: any) { return { kind: 'Name', diff --git a/packages/amplify-migration-tests/src/configure_tests.ts b/packages/amplify-migration-tests/src/configure_tests.ts index 7161538189..5cedbaed9c 100644 --- a/packages/amplify-migration-tests/src/configure_tests.ts +++ b/packages/amplify-migration-tests/src/configure_tests.ts @@ -7,7 +7,7 @@ import { amplifyConfigure as configure, isCI, installAmplifyCLI, injectSessionTo */ async function setupAmplify(version: string = 'latest') { - // install CLI to be used for migration test initial project + // install CLI to be used for migration test initial project. await installAmplifyCLI(version); console.log("INSTALLED CLI:", version); diff --git a/packages/amplify-util-mock/src/api/index.ts b/packages/amplify-util-mock/src/api/index.ts index d921f1cf0d..7896b219d0 100644 --- a/packages/amplify-util-mock/src/api/index.ts +++ b/packages/amplify-util-mock/src/api/index.ts @@ -8,7 +8,7 @@ export async function start(context) { testApi.start(context); } catch (e) { console.log(e); - // Sending term signal so we clean up after ourself + // Sending term signal so we clean up after ourselves process.kill(process.pid, 'SIGTERM'); } } diff --git a/packages/graphql-auth-transformer/src/ModelAuthTransformer.ts b/packages/graphql-auth-transformer/src/ModelAuthTransformer.ts index 1d8ed98c63..088b791e1c 100644 --- a/packages/graphql-auth-transformer/src/ModelAuthTransformer.ts +++ b/packages/graphql-auth-transformer/src/ModelAuthTransformer.ts @@ -44,7 +44,7 @@ import { ModelDirectiveConfiguration, ModelDirectiveOperationType, ModelSubscrip import { OWNER_AUTH_STRATEGY, GROUPS_AUTH_STRATEGY, DEFAULT_OWNER_FIELD, AUTH_NON_MODEL_TYPES } from './constants'; /** - * Implements the ModelAuthTransformer. + * Implements the ModelAuthTransformer * * Owner Auth Usage: * diff --git a/packages/graphql-connection-transformer/src/resources.ts b/packages/graphql-connection-transformer/src/resources.ts index 4daa841c46..2f99fdd5f3 100644 --- a/packages/graphql-connection-transformer/src/resources.ts +++ b/packages/graphql-connection-transformer/src/resources.ts @@ -41,7 +41,7 @@ export class ResourceFactory { } /** - * Creates the barebones template for an application. + * Creates the barebones template for an application */ public initTemplate(): Template { return { diff --git a/packages/graphql-dynamodb-transformer/src/DynamoDBModelTransformer.ts b/packages/graphql-dynamodb-transformer/src/DynamoDBModelTransformer.ts index 3fec283f31..2c43bb900b 100644 --- a/packages/graphql-dynamodb-transformer/src/DynamoDBModelTransformer.ts +++ b/packages/graphql-dynamodb-transformer/src/DynamoDBModelTransformer.ts @@ -41,7 +41,7 @@ export interface DynamoDBModelTransformerOptions { // Transform config version constants // We have constants instead of magic number all around, later these should be moved to feature -// flags and transformers should be feature and not version dependent. +// flags and transformers should be feature and not version dependent // To support generation of conditions and new naming, version 5 was introduced export const CONDITIONS_MINIMUM_VERSION = 5; diff --git a/packages/graphql-elasticsearch-transformer/src/resources.ts b/packages/graphql-elasticsearch-transformer/src/resources.ts index f343137cc4..293cd60f91 100644 --- a/packages/graphql-elasticsearch-transformer/src/resources.ts +++ b/packages/graphql-elasticsearch-transformer/src/resources.ts @@ -35,7 +35,7 @@ import { MappingParameters } from 'graphql-transformer-core'; */ export class ResourceFactory { /** - * makeParams + * Generate CFN Parameters section */ public makeParams() { return { diff --git a/packages/graphql-function-transformer/src/FunctionTransformer.ts b/packages/graphql-function-transformer/src/FunctionTransformer.ts index d141ec5d07..98a4175dd8 100644 --- a/packages/graphql-function-transformer/src/FunctionTransformer.ts +++ b/packages/graphql-function-transformer/src/FunctionTransformer.ts @@ -9,7 +9,6 @@ const FUNCTION_DIRECTIVE_STACK = 'FunctionDirectiveStack'; export class FunctionTransformer extends Transformer { constructor() { - // TODO remove once prettier is upgraded // prettier-ignore super( 'FunctionTransformer', diff --git a/packages/graphql-http-transformer/src/HttpTransformer.ts b/packages/graphql-http-transformer/src/HttpTransformer.ts index 5a987c0c38..ced7f5bd5e 100644 --- a/packages/graphql-http-transformer/src/HttpTransformer.ts +++ b/packages/graphql-http-transformer/src/HttpTransformer.ts @@ -29,7 +29,7 @@ interface HttpDirectiveArgs { } /** - * The @http transform. + * The @http transform * * This transform attaches http resolvers to any fields with the @http directive. * Works with GET, POST, PUT, DELETE requests. diff --git a/packages/graphql-key-transformer/src/KeyTransformer.ts b/packages/graphql-key-transformer/src/KeyTransformer.ts index b289444907..2394e9324e 100644 --- a/packages/graphql-key-transformer/src/KeyTransformer.ts +++ b/packages/graphql-key-transformer/src/KeyTransformer.ts @@ -76,7 +76,6 @@ interface KeyArguments { export class KeyTransformer extends Transformer { constructor() { - // TODO remove once prettier is upgraded // prettier-ignore super( 'KeyTransformer', diff --git a/packages/graphql-mapping-template/src/http.ts b/packages/graphql-mapping-template/src/http.ts index c76e095fa0..69b1352d17 100644 --- a/packages/graphql-mapping-template/src/http.ts +++ b/packages/graphql-mapping-template/src/http.ts @@ -4,7 +4,7 @@ export class HttpMappingTemplate { static RESOLVER_VERSION_ID = '2018-05-29'; /** - * Create a mapping template for HTTP GET requests. + * Create a mapping template for HTTP GET requests */ public static getRequest({ resourcePath, params }: { resourcePath: string; params: ObjectNode }): ObjectNode { return obj({ diff --git a/packages/graphql-predictions-transformer/src/PredictionsTransformer.ts b/packages/graphql-predictions-transformer/src/PredictionsTransformer.ts index e9a9171e8a..aa10bcc8c6 100644 --- a/packages/graphql-predictions-transformer/src/PredictionsTransformer.ts +++ b/packages/graphql-predictions-transformer/src/PredictionsTransformer.ts @@ -43,7 +43,7 @@ export class PredictionsTransformer extends Transformer { } public field = (parent: ObjectTypeDefinitionNode, definition: FieldDefinitionNode, directive: DirectiveNode, ctx: TransformerContext) => { - // validate @predictions is defined on a field under a query object + // validate @predictions is defined on a field under a query object. if (parent.name.value !== ctx.getQueryTypeName()) { throw new InvalidDirectiveError('@predictions directive only works under Query operations.'); } diff --git a/packages/graphql-relational-schema-transformer/src/AuroraServerlessMySQLDatabaseReader.ts b/packages/graphql-relational-schema-transformer/src/AuroraServerlessMySQLDatabaseReader.ts index 57c3576a3a..98a037109c 100644 --- a/packages/graphql-relational-schema-transformer/src/AuroraServerlessMySQLDatabaseReader.ts +++ b/packages/graphql-relational-schema-transformer/src/AuroraServerlessMySQLDatabaseReader.ts @@ -14,7 +14,7 @@ import { toUpper } from 'graphql-transformer-common'; /** * A class to manage interactions with a Aurora Serverless MySQL Relational Databse - * using the Aurora Data API + * using the Aurora Data API. */ export class AuroraServerlessMySQLDatabaseReader implements IRelationalDBReader { auroraClient: AuroraDataAPIClient; diff --git a/packages/graphql-transformer-common/src/definition.ts b/packages/graphql-transformer-common/src/definition.ts index 942ceeb9be..ed13e41ad3 100644 --- a/packages/graphql-transformer-common/src/definition.ts +++ b/packages/graphql-transformer-common/src/definition.ts @@ -16,8 +16,6 @@ import { DirectiveNode, EnumTypeDefinitionNode, ValueNode, - ListValueNode, - ObjectValueNode, InputObjectTypeDefinitionNode, UnionTypeDefinitionNode, DocumentNode, diff --git a/packages/graphql-transformer-core/src/index.ts b/packages/graphql-transformer-core/src/index.ts index 8a0b3239ea..79f337bc94 100644 --- a/packages/graphql-transformer-core/src/index.ts +++ b/packages/graphql-transformer-core/src/index.ts @@ -36,7 +36,7 @@ export * from './util'; export { getTableNameForModel } from './tableNameMap'; /** - * Returns the extra set of directives that are supported by AppSync service + * Returns the set of directives that are supported by AppSync service */ export function getAppSyncServiceExtraDirectives(): string { return print(EXTRA_DIRECTIVES_DOCUMENT); diff --git a/packages/graphql-transformers-e2e-tests/src/stringSetMutations.ts b/packages/graphql-transformers-e2e-tests/src/stringSetMutations.ts index c7c1da67a0..e0bc8328bd 100644 --- a/packages/graphql-transformers-e2e-tests/src/stringSetMutations.ts +++ b/packages/graphql-transformers-e2e-tests/src/stringSetMutations.ts @@ -2,7 +2,7 @@ import { DeploymentResources } from 'graphql-transformer-core'; /** * Used with SearchableModelTransformer Tests - * Changes userItems list to stringsets in dynamo so the lambda function can support it + * Changes userItems list to stringsets in dynamo so the lambda function can support them */ const createStringSetVTL = ` diff --git a/packages/graphql-versioned-transformer/src/VersionedModelTransformer.ts b/packages/graphql-versioned-transformer/src/VersionedModelTransformer.ts index 8dedf953bb..c204291da0 100644 --- a/packages/graphql-versioned-transformer/src/VersionedModelTransformer.ts +++ b/packages/graphql-versioned-transformer/src/VersionedModelTransformer.ts @@ -68,7 +68,7 @@ export class VersionedModelTransformer extends Transformer { }; /** - * Set the "version" to 1. + * Set the "version" to 1 * @param ctx * @param versionField * @param versionInput