Skip to content

Commit

Permalink
chore(aws-amplify): rename adapterCore to adapter-core
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF committed Mar 19, 2024
1 parent 80e029c commit d36680b
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
AuthConfig,
KeyValueStorageInterface,
} from '@aws-amplify/core';
import { createAWSCredentialsAndIdentityIdProvider } from '../../../../src/adapterCore';
import { createAWSCredentialsAndIdentityIdProvider } from '../../../../src/adapter-core';

jest.mock('@aws-amplify/auth/cognito');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@aws-amplify/auth/cognito';

import { AuthConfig, KeyValueStorageInterface } from '@aws-amplify/core';
import { createUserPoolsTokenProvider } from '../../../../src/adapterCore';
import { createUserPoolsTokenProvider } from '../../../../src/adapter-core';

jest.mock('@aws-amplify/auth/cognito');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { runWithAmplifyServerContext } from '../../src/adapterCore';
import { runWithAmplifyServerContext } from '../../src/adapter-core';
import {
createAmplifyServerContext,
destroyAmplifyServerContext,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { createKeyValueStorageFromCookieStorageAdapter } from '../../../src/adapterCore';
import { defaultSetCookieOptions } from '../../../src/adapterCore/storageFactories/createKeyValueStorageFromCookieStorageAdapter';
import { createKeyValueStorageFromCookieStorageAdapter } from '../../../src/adapter-core';
import { defaultSetCookieOptions } from '../../../src/adapter-core/storageFactories/createKeyValueStorageFromCookieStorageAdapter';

const mockCookiesStorageAdapter = {
getAll: jest.fn(),
Expand Down
6 changes: 3 additions & 3 deletions packages/aws-amplify/adapter-core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aws-amplify/adapter-core",
"types": "../dist/esm/adapterCore/index.d.ts",
"main": "../dist/cjs/adapterCore/index.js",
"module": "../dist/esm/adapterCore/index.mjs",
"types": "../dist/esm/adapter-core/index.d.ts",
"main": "../dist/cjs/adapter-core/index.js",
"module": "../dist/esm/adapter-core/index.mjs",
"sideEffects": false
}
8 changes: 4 additions & 4 deletions packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@
"react-native": "./src/push-notifications/pinpoint/index.ts"
},
"./adapter-core": {
"types": "./dist/esm/adapterCore/index.d.ts",
"import": "./dist/esm/adapterCore/index.mjs",
"require": "./dist/cjs/adapterCore/index.js"
"types": "./dist/esm/adapter-core/index.d.ts",
"import": "./dist/esm/adapter-core/index.mjs",
"require": "./dist/cjs/adapter-core/index.js"
},
"./package.json": "./package.json"
},
Expand Down Expand Up @@ -226,7 +226,7 @@
"./dist/esm/push-notifications/pinpoint/index.d.ts"
],
"adapter-core": [
"./dist/esm/adapterCore/index.d.ts"
"./dist/esm/adapter-core/index.d.ts"
]
}
},
Expand Down
6 changes: 4 additions & 2 deletions packages/aws-amplify/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "aws-amplify",
"extends": ["../../typedoc.base.json"],
"extends": [
"../../typedoc.base.json"
],
"entryPointStrategy": "resolve",
"includeVersion": true,
"entryPoints": [
"src/index.ts",
"src/utils/index.ts",
"src/adapterCore/index.ts",
"src/adapter-core/index.ts",
"src/analytics/index.ts",
"src/analytics/pinpoint/index.ts",
"src/analytics/kinesis/index.ts",
Expand Down

0 comments on commit d36680b

Please sign in to comment.