From f0dbcf338b0e1584f93245fe0431498f90def7fd Mon Sep 17 00:00:00 2001 From: Jim Blanchard Date: Tue, 12 Sep 2023 10:38:20 -0500 Subject: [PATCH] chore: Set up missing exports & `typesVersions` specification (#12008) --- packages/auth/cognito/server/package.json | 7 +++++++ packages/auth/package.json | 18 ++++++++++++++++- .../auth/cognito/server/package.json | 7 +++++++ packages/aws-amplify/package.json | 20 +++++++++++++++++++ .../src/auth/cognito/server/index.ts | 7 +++++++ packages/storage/package.json | 9 +++++++++ 6 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 packages/auth/cognito/server/package.json create mode 100644 packages/aws-amplify/auth/cognito/server/package.json create mode 100644 packages/aws-amplify/src/auth/cognito/server/index.ts diff --git a/packages/auth/cognito/server/package.json b/packages/auth/cognito/server/package.json new file mode 100644 index 00000000000..dfc8fc1645f --- /dev/null +++ b/packages/auth/cognito/server/package.json @@ -0,0 +1,7 @@ +{ + "name": "@aws-amplify/auth/cognito/server", + "main": "../../lib/providers/cognito/apis/server/index.js", + "browser": "../../lib-esm/providers/cognito/apis/server/index.js", + "module": "../../lib-esm/providers/cognito/apis/server/index.js", + "typings": "../../lib-esm/providers/cognito/apis/server/index.d.ts" +} diff --git a/packages/auth/package.json b/packages/auth/package.json index d5e70f0e333..212ad073413 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -34,6 +34,15 @@ ], "cognito": [ "./lib-esm/providers/cognito/index.d.ts" + ], + "cognito/server": [ + "./lib-esm/providers/cognito/apis/server/index.d.ts" + ], + "server": [ + "./lib-esm/server.d.ts" + ], + "internals": [ + "./lib-esm/lib-esm/internals/index.d.ts" ] } }, @@ -48,6 +57,11 @@ "import": "./lib-esm/providers/cognito/index.js", "require": "./lib/providers/cognito/index.js" }, + "./cognito/server": { + "types": "./lib-esm/providers/cognito/apis/server/index.d.ts", + "import": "./lib-esm/providers/cognito/apis/server/index.js", + "require": "./lib/providers/cognito/apis/server/index.js" + }, "./server": { "types": "./lib-esm/server.d.ts", "import": "./lib-esm/server.js", @@ -74,7 +88,9 @@ "lib", "lib-esm", "src", - "internals" + "internals", + "cognito", + "server" ], "dependencies": { "@smithy/util-base64": "2.0.0", diff --git a/packages/aws-amplify/auth/cognito/server/package.json b/packages/aws-amplify/auth/cognito/server/package.json new file mode 100644 index 00000000000..bf9f1becd56 --- /dev/null +++ b/packages/aws-amplify/auth/cognito/server/package.json @@ -0,0 +1,7 @@ +{ + "name": "aws-amplify/auth/cognito/server", + "main": "../../../lib/auth/cognito/server/index.js", + "browser": "../../../lib-esm/auth/cognito/server/index.js", + "module": "../../../lib-esm/auth/cognito/server/index.js", + "typings": "../../../lib-esm/auth/cognito/server/index.d.ts" +} diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index 7f54446b014..33c8a73aad5 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -27,6 +27,11 @@ "import": "./lib-esm/auth/cognito/index.js", "require": "./lib/auth/cognito/index.js" }, + "./auth/cognito/server": { + "types": "./lib-esm/auth/cognito/server/index.d.ts", + "import": "./lib-esm/auth/cognito/server/index.js", + "require": "./lib/auth/cognito/server/index.js" + }, "./auth/server": { "types": "./lib-esm/auth/server.d.ts", "import": "./lib-esm/auth/server.js", @@ -83,6 +88,12 @@ "auth/cognito": [ "./lib-esm/auth/cognito/index.d.ts" ], + "auth/cognito/server": [ + "./lib-esm/auth/cognito/server/index.d.ts" + ], + "auth/server": [ + "./lib-esm/auth/server.d.ts" + ], "analytics": [ "./lib-esm/analytics/index.d.ts" ], @@ -94,6 +105,15 @@ ], "storage/s3": [ "./lib-esm/storage/s3/index.d.ts" + ], + "storage/server": [ + "./lib-esm/storage/server.d.ts" + ], + "storage/s3/server": [ + "./lib-esm/storage/s3/server.d.ts" + ], + "internals/adapter-core": [ + "./lib-esm/adapterCore/index.d.ts" ] } }, diff --git a/packages/aws-amplify/src/auth/cognito/server/index.ts b/packages/aws-amplify/src/auth/cognito/server/index.ts new file mode 100644 index 00000000000..991d3b702e4 --- /dev/null +++ b/packages/aws-amplify/src/auth/cognito/server/index.ts @@ -0,0 +1,7 @@ +// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. +// SPDX-License-Identifier: Apache-2.0 + +/* +This file maps exports from `aws-amplify/auth/cognito/server`. It provides access to server-enabled Cognito APIs. +*/ +export * from '@aws-amplify/auth/cognito/server'; diff --git a/packages/storage/package.json b/packages/storage/package.json index 7c19cc94f88..ee062649e50 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -33,6 +33,15 @@ ], "s3": [ "./lib-esm/providers/s3/index.d.ts" + ], + "server": [ + "./lib-esm/server.d.ts" + ], + "internals": [ + "./lib-esm/lib-esm/internals/index.d.ts" + ], + "s3/server": [ + "./lib-esm/providers/s3/server.d.ts" ] } },