Skip to content

Commit

Permalink
publish adapter-nextjs to tag api-v6-models (#12476)
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev authored Oct 31, 2023
1 parent 891fe0d commit 6a1c56d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ describe('generateServerClientUsingCookies', () => {
const mockedRes = NextApiResponseMock;

expect(() => {
generateServerClientUsingCookies({
// @ts-expect-error
// as any here to avoid type error from passing invalid input.
// this tests runtime exception
(generateServerClientUsingCookies as any)({
request: mockedReq,
response: mockedRes,
});
Expand Down
1 change: 0 additions & 1 deletion packages/adapter-nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"author": "Amazon Web Services",
"private": true,
"name": "@aws-amplify/adapter-nextjs",
"description": "The adapter for the supporting of using Amplify APIs in Next.js.",
"peerDependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/aws-amplify/data/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "aws-amplify/data",
"main": "../lib/api/index.js",
"browser": "../lib-esm/api/index.js",
"module": "../lib-esm/api/index.js",
"typings": "../lib-esm/api/index.d.ts"
}
7 changes: 7 additions & 0 deletions packages/aws-amplify/data/server/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"name": "aws-amplify/data/server",
"main": "../../lib/api/server.js",
"browser": "../../lib-esm/api/server.js",
"module": "../../lib-esm/api/server.js",
"typings": "../../lib-esm/api/server.d.ts"
}

0 comments on commit 6a1c56d

Please sign in to comment.