Skip to content

Commit

Permalink
chore(storage): add missing license header
Browse files Browse the repository at this point in the history
  • Loading branch information
HuiSF committed Jul 7, 2023
1 parent 6753b7a commit 857e5d8
Show file tree
Hide file tree
Showing 16 changed files with 48 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { presignUrl } from '@aws-amplify/core/internals/aws-client-utils';
import { getPresignedGetObjectUrl } from '../../../src/AwsClients/S3';
import { defaultConfig } from './cases/shared';
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/__tests__/Storage-unit-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { Credentials } from '@aws-amplify/core';
import { AWSS3Provider as AWSStorageProvider } from '../src/providers/AWSS3Provider';
import { Storage as StorageClass } from '../src/Storage';
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/__tests__/common/S3ClientUtils-unit-test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

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

import {
AWSS3UploadTask,
AWSS3UploadTaskState,
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/__tests__/providers/CustomUserAgent.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { Credentials, ICredentials, StorageAction } from '@aws-amplify/core';
import * as utils from '../../src/common/S3ClientUtils';
import { AWSS3Provider as StorageProvider } from '../../src/providers/AWSS3Provider';
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/src/AwsClients/S3/copyObject.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import {
Endpoint,
HttpRequest,
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/src/AwsClients/S3/deleteObject.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import {
Endpoint,
HttpRequest,
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/src/AwsClients/S3/getObject.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import {
Endpoint,
HttpRequest,
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/src/AwsClients/S3/headObject.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import {
Endpoint,
HttpRequest,
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/src/common/S3ClientUtils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import {
Category,
Credentials,
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/src/common/StorageConstants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

export const AMPLIFY_SYMBOL = (
typeof Symbol !== 'undefined' && typeof Symbol.for === 'function'
? Symbol.for('amplify_default')
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/src/common/StorageErrorStrings.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

export enum StorageErrorStrings {
NO_CREDENTIALS = 'No credentials',
NO_SRC_KEY = 'source param should be an object with the property "key" with value of type string',
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/src/common/StorageUtils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { Hub } from '@aws-amplify/core';
import { AMPLIFY_SYMBOL } from './StorageConstants';

Expand Down
3 changes: 3 additions & 0 deletions packages/storage/src/providers/AWSS3UploadTask.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import * as events from 'events';
import { Logger } from '@aws-amplify/core';
import { UploadTask } from '../types/Provider';
Expand Down
3 changes: 3 additions & 0 deletions packages/storage/src/providers/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

export { AWSS3Provider } from './AWSS3Provider';
3 changes: 3 additions & 0 deletions packages/storage/src/types/AWSS3Provider.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

import { ICredentials } from '@aws-amplify/core';
import {
GetObjectInput,
Expand Down

0 comments on commit 857e5d8

Please sign in to comment.