Skip to content

Commit

Permalink
import IUAO symbol from data-schema in api package
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhengshs committed Sep 26, 2024
1 parent 8f5c837 commit 40d8bdb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
6 changes: 2 additions & 4 deletions packages/api-graphql/__tests__/GraphQLAPI.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import * as typedQueries from './fixtures/with-types/queries';
import * as typedSubscriptions from './fixtures/with-types/subscriptions';
import { expectGet } from './utils/expects';
import { InternalGraphQLAPIClass } from '../src/internals/InternalGraphQLAPI';
import {
INTERNAL_USER_AGENT_OVERRIDE,
GraphQLAuthMode,
} from '@aws-amplify/core/internals/utils';
import { GraphQLAuthMode } from '@aws-amplify/core/internals/utils';
import { INTERNAL_USER_AGENT_OVERRIDE } from '@aws-amplify/data-schema/runtime';

import {
__amplify,
Expand Down
6 changes: 4 additions & 2 deletions packages/api-graphql/src/GraphQLAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import {
ApiAction,
Category,
CustomUserAgentDetails,
INTERNAL_USER_AGENT_OVERRIDE,
} from '@aws-amplify/core/internals/utils';
import { CustomHeaders } from '@aws-amplify/data-schema/runtime';
import {
CustomHeaders,
INTERNAL_USER_AGENT_OVERRIDE,
} from '@aws-amplify/data-schema/runtime';
import { Observable } from 'rxjs';

import { GraphQLOptions, GraphQLResult } from './types';
Expand Down
12 changes: 0 additions & 12 deletions packages/core/src/Platform/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ class PlatformBuilder {
}
}

/**
* Symbol used for internal user agent overrides.
*
* @internal
* This symbol is intended for internal use within the Amplify library.
* It may change or be removed in future versions without notice.
* External usage of this symbol is discouraged and may lead to unexpected behavior.
*/
export const INTERNAL_USER_AGENT_OVERRIDE = Symbol(
'INTERNAL_USER_AGENT_OVERRIDE',
);

export const Platform = new PlatformBuilder();

export const getAmplifyUserAgentObject = ({
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/libraryUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ export { haveCredentialsChanged } from './utils/haveCredentialsChanged';

// Platform & user-agent utilities
export {
INTERNAL_USER_AGENT_OVERRIDE,
Platform,
getAmplifyUserAgentObject,
getAmplifyUserAgent,
Expand Down

0 comments on commit 40d8bdb

Please sign in to comment.