Skip to content

Commit

Permalink
fix: change to new docs url in some messages (#6281)
Browse files Browse the repository at this point in the history
  • Loading branch information
tacck committed Jan 4, 2021
1 parent 48604f6 commit 9d1a682
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function warnOnAuth(context, map) {
if (unAuthModelTypes.length) {
context.print.warning("\nThe following types do not have '@auth' enabled. Consider using @auth with @model");
context.print.warning(unAuthModelTypes.map(type => `\t - ${type}`).join('\n'));
context.print.info('Learn more about @auth here: https://docs.amplify.aws/cli/graphql-transformer/directives#auth\n');
context.print.info('Learn more about @auth here: https://docs.amplify.aws/cli/graphql-transformer/auth\n');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function warnOnAuth(context, map) {
if (unAuthModelTypes.length) {
context.print.warning("\nThe following types do not have '@auth' enabled. Consider using @auth with @model");
context.print.warning(unAuthModelTypes.map(type => `\t - ${type}`).join('\n'));
context.print.info('Learn more about @auth here: https://docs.amplify.aws/cli/graphql-transformer/directives#auth\n');
context.print.info('Learn more about @auth here: https://docs.amplify.aws/cli/graphql-transformer/auth\n');
}
}

Expand Down Expand Up @@ -160,9 +160,9 @@ function getTransformerFactory(context, resourceDir, authConfig?) {
*/
async function transformerVersionCheck(context, resourceDir, cloudBackendDirectory, updatedResources, usedDirectives) {
const versionChangeMessage =
'The default behavior for @auth has changed in the latest version of Amplify\nRead here for details: https://docs.amplify.aws/cli/graphql-transformer/directives#authorizing-subscriptions';
'The default behavior for @auth has changed in the latest version of Amplify\nRead here for details: https://docs.amplify.aws/cli/graphql-transformer/auth#authorizing-subscriptions';
const warningESMessage =
'The behavior for @searchable has changed after version 4.14.1.\nRead here for details: https://docs.amplify.aws/cli/graphql-transformer/directives#searchable';
'The behavior for @searchable has changed after version 4.14.1.\nRead here for details: https://docs.amplify.aws/cli/graphql-transformer/searchable';
const checkVersionExist = config => config && config.Version;
const checkESWarningExists = config => config && config.ElasticsearchWarning;
let writeToConfig = false;
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-util-mock/src/api/lambda-arn-to-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { keys } from 'lodash';
*/
export const lambdaArnToConfig = (arn: any, provisionedLambdas: LambdaFunctionConfig[]): LambdaFunctionConfig => {
const errorSuffix =
'\nSee https://docs.amplify.aws/cli/graphql-transformer/directives#function for information on how to configure Lambda resolvers.';
'\nSee https://docs.amplify.aws/cli/graphql-transformer/function for information on how to configure Lambda resolvers.';
let searchString = '';
if (typeof arn === 'string') {
searchString = arn;
Expand Down

0 comments on commit 9d1a682

Please sign in to comment.