-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(api): hide generateClient from api/server subpath #12483
Conversation
@@ -1,7 +1,7 @@ | |||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | |||
// SPDX-License-Identifier: Apache-2.0 | |||
|
|||
import { generateClient as internalGenerateClient } from '@aws-amplify/api/server'; | |||
import { generateClient as internalGenerateClient } from '@aws-amplify/api/internals'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 2 versions of generateClient
. We want the server one here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved the server edition of generateClient
into packages/api/src/internals/InternalAPI.ts
which is being exported from '@aws-amplify/api/internals' in this PR.
Should rename the function to make it clearer it's the server edition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense for the /api
path. Defer to Ivan's comments on the /server
to /internals
change
d0638a3
to
270f486
Compare
270f486
to
1248617
Compare
Description of changes
api
inadapter-nextjs
packages.jsonfiles
generateClient
fromaws-amplify/api/server
Issue #, if available
Description of how you validated changes
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.