From 4f8e7a94a1c2540baa7eda530787b248b0fb237a Mon Sep 17 00:00:00 2001 From: Jon Wire Date: Tue, 17 Dec 2024 17:19:18 -0600 Subject: [PATCH] fix build --- packages/api-graphql/src/internals/index.ts | 1 + packages/api-graphql/src/types/index.ts | 2 +- packages/api/package.json | 6 +++--- packages/api/src/API.ts | 7 +++++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/api-graphql/src/internals/index.ts b/packages/api-graphql/src/internals/index.ts index b6422196706..0982a4f8e31 100644 --- a/packages/api-graphql/src/internals/index.ts +++ b/packages/api-graphql/src/internals/index.ts @@ -7,3 +7,4 @@ export { export { graphql, cancel, isCancelError } from './v6'; export { generateClient } from './generateClient'; +export { CommonPublicClientOptions } from './types'; diff --git a/packages/api-graphql/src/types/index.ts b/packages/api-graphql/src/types/index.ts index a2df9091285..1de31c99f38 100644 --- a/packages/api-graphql/src/types/index.ts +++ b/packages/api-graphql/src/types/index.ts @@ -26,7 +26,7 @@ export { CONTROL_MSG, ConnectionState } from './PubSub'; export { SelectionSet } from '@aws-amplify/data-schema/runtime'; -export { CommonPublicClientOptions }; +export type { CommonPublicClientOptions }; /** * Loose/Unknown options for raw GraphQLAPICategory `graphql()`. diff --git a/packages/api/package.json b/packages/api/package.json index 173406972b0..60d39083b87 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api", - "version": "6.1.3", + "version": "6.1.8", "description": "Api category of aws-amplify", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", @@ -80,8 +80,8 @@ "server" ], "dependencies": { - "@aws-amplify/api-graphql": "4.6.1", - "@aws-amplify/api-rest": "4.0.58", + "@aws-amplify/api-graphql": "4.6.6", + "@aws-amplify/api-rest": "4.0.63", "tslib": "^2.5.0" } } diff --git a/packages/api/src/API.ts b/packages/api/src/API.ts index e8a13aadd44..c77718dbd1f 100644 --- a/packages/api/src/API.ts +++ b/packages/api/src/API.ts @@ -1,7 +1,10 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -import { CommonPublicClientOptions, V6Client } from '@aws-amplify/api-graphql'; -import { generateClient as internalGenerateClient } from '@aws-amplify/api-graphql/internals'; +import { V6Client } from '@aws-amplify/api-graphql'; +import { + CommonPublicClientOptions, + generateClient as internalGenerateClient, +} from '@aws-amplify/api-graphql/internals'; import { Amplify } from '@aws-amplify/core'; // NOTE: The type narrowing on CommonPublicClientOptions seems to hinge on