Skip to content

Commit

Permalink
add API dependency and exports to 'aws-amplify' package
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mcafee committed Sep 11, 2023
1 parent 6a12d18 commit ae86aa2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
"import": "./lib-esm/auth/index.js",
"require": "./lib/auth/index.js"
},
"./api": {
"types": "./lib-esm/api/index.d.ts",
"import": "./lib-esm/api/index.js",
"require": "./lib/api/index.js"
},
"./auth/cognito": {
"types": "./lib-esm/auth/cognito/index.d.ts",
"import": "./lib-esm/auth/cognito/index.js",
Expand Down Expand Up @@ -74,6 +79,9 @@
"*": [
"./lib-esm/index.d.ts"
],
"api": [
"./lib-esm/api/index.d.ts"
],
"utils": [
"./lib-esm/utils/index.d.ts"
],
Expand Down Expand Up @@ -129,11 +137,13 @@
"lib-esm",
"src",
"analytics",
"api",
"auth",
"internals",
"storage"
],
"dependencies": {
"@aws-amplify/api": "6.0.0",
"@aws-amplify/analytics": "7.0.0",
"@aws-amplify/auth": "6.0.0",
"@aws-amplify/core": "6.0.0",
Expand All @@ -150,6 +160,12 @@
"import": "{ record }",
"limit": "20.49 kB"
},
{
"name": "[API] [todo] (AppSync)",
"path": "./lib-esm/api/index.js",
"import": "{ record }",
"limit": "70.00 kB"
},
{
"name": "[Analytics] identifyUser (Pinpoint)",
"path": "./lib-esm/analytics/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/singleton/API/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ export type LibraryAPIOptions = {

export type APIConfig = {
AppSync?: {
defaultAuthMode: GraphQLAuthMode;
region: string;
endpoint: string;
defaultAuthMode?: GraphQLAuthMode;
region?: string;
endpoint?: string;
// TODO: switch this when dependency is added:
// modelIntrospectionSchema: InternalModelIntrospectionSchema;
modelIntrospectionSchema: any;
modelIntrospectionSchema?: any;
};
};

Expand Down

0 comments on commit ae86aa2

Please sign in to comment.