diff --git a/src/event-bridge.ts b/src/event-bridge.ts index d0fb117..f1bc534 100644 --- a/src/event-bridge.ts +++ b/src/event-bridge.ts @@ -1,3 +1,12 @@ export { AWSConfig, InvalidAWSConfigError } from './internal/config' +export { + AWSError, + NetworkError, + GeneralError, + DNSError, + TCPError, + TLSError, + HTTP2Error, +} from './internal/error' export { EventBridgeClient, EventBridgeServiceError } from './internal/event-bridge' export { InvalidSignatureError } from './internal/signature' diff --git a/src/index.ts b/src/index.ts index c88a5e1..9efab00 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,13 @@ // Re-Export public symbols +export { + AWSError, + NetworkError, + GeneralError, + DNSError, + TCPError, + TLSError, + HTTP2Error, +} from './internal/error' export { InvalidSignatureError } from './internal/signature' export { AWSConfig, InvalidAWSConfigError } from './internal/config' export { AMZ_CONTENT_SHA256_HEADER, UNSIGNED_PAYLOAD } from './internal/constants' diff --git a/src/kinesis.ts b/src/kinesis.ts index 0a083f6..1279ecf 100644 --- a/src/kinesis.ts +++ b/src/kinesis.ts @@ -1,15 +1,12 @@ -// Import only symbols we wish to re-export publicly -import { AWSConfig, InvalidAWSConfigError } from './internal/config' -import { InvalidSignatureError } from './internal/signature' -import { KinesisClient, KinesisServiceError } from './internal/kinesis' - -// Re-Export public symbols +export { AWSConfig, InvalidAWSConfigError } from './internal/config' export { - InvalidSignatureError, - // Aws Config - AWSConfig, - InvalidAWSConfigError, - // Kinesis - KinesisClient, - KinesisServiceError, -} + AWSError, + NetworkError, + GeneralError, + DNSError, + TCPError, + TLSError, + HTTP2Error, +} from './internal/error' +export { InvalidSignatureError } from './internal/signature' +export { KinesisClient, KinesisServiceError } from './internal/kinesis' diff --git a/src/kms.ts b/src/kms.ts index b7519c0..ba64473 100644 --- a/src/kms.ts +++ b/src/kms.ts @@ -1,4 +1,13 @@ // Re-Export public symbols export { AWSConfig, InvalidAWSConfigError } from './internal/config' +export { + AWSError, + NetworkError, + GeneralError, + DNSError, + TCPError, + TLSError, + HTTP2Error, +} from './internal/error' export { KMSClient, KMSDataKey, KMSServiceError } from './internal/kms' export { InvalidSignatureError } from './internal/signature' diff --git a/src/lambda.ts b/src/lambda.ts index bb567ad..4c8b2fb 100644 --- a/src/lambda.ts +++ b/src/lambda.ts @@ -1,7 +1,13 @@ // Re-Export public symbols export { AWSConfig, InvalidAWSConfigError } from './internal/config' -export { InvalidSignatureError } from './internal/signature' export { - LambdaInvocationError, - LambdaClient -} from './internal/lambda' + AWSError, + NetworkError, + GeneralError, + DNSError, + TCPError, + TLSError, + HTTP2Error, +} from './internal/error' +export { InvalidSignatureError } from './internal/signature' +export { LambdaInvocationError, LambdaClient } from './internal/lambda' diff --git a/src/s3.ts b/src/s3.ts index 87bf795..8bd5dcc 100644 --- a/src/s3.ts +++ b/src/s3.ts @@ -1,5 +1,14 @@ // Re-Export public symbols export { AWSConfig, InvalidAWSConfigError } from './internal/config' +export { + AWSError, + NetworkError, + GeneralError, + DNSError, + TCPError, + TLSError, + HTTP2Error, +} from './internal/error' export { InvalidSignatureError } from './internal/signature' export { S3Bucket, diff --git a/src/secrets-manager.ts b/src/secrets-manager.ts index f0649e0..311492e 100644 --- a/src/secrets-manager.ts +++ b/src/secrets-manager.ts @@ -1,5 +1,14 @@ // Re-Export public symbols export { AWSConfig, InvalidAWSConfigError } from './internal/config' +export { + AWSError, + NetworkError, + GeneralError, + DNSError, + TCPError, + TLSError, + HTTP2Error, +} from './internal/error' export { InvalidSignatureError } from './internal/signature' export { Secret, diff --git a/src/signature.ts b/src/signature.ts index c59cce0..98069a1 100644 --- a/src/signature.ts +++ b/src/signature.ts @@ -15,6 +15,15 @@ export { UNSIGNED_PAYLOAD, } from './internal/constants' export { AWSConfig, InvalidAWSConfigError } from './internal/config' +export { + AWSError, + NetworkError, + GeneralError, + DNSError, + TCPError, + TLSError, + HTTP2Error, +} from './internal/error' export { Endpoint } from './internal/endpoint' export { InvalidSignatureError } from './internal/signature' export { SignatureV4 } from './internal/signature' diff --git a/src/sqs.ts b/src/sqs.ts index 70f89f1..46af923 100644 --- a/src/sqs.ts +++ b/src/sqs.ts @@ -1,4 +1,13 @@ // Re-Export public symbols export { AWSConfig, InvalidAWSConfigError } from './internal/config' +export { + AWSError, + NetworkError, + GeneralError, + DNSError, + TCPError, + TLSError, + HTTP2Error, +} from './internal/error' export { InvalidSignatureError } from './internal/signature' export { SQSClient, SQSServiceError } from './internal/sqs' diff --git a/src/ssm.ts b/src/ssm.ts index 438febd..1890921 100644 --- a/src/ssm.ts +++ b/src/ssm.ts @@ -1,5 +1,14 @@ // Re-export public symbols export { AWSConfig, InvalidAWSConfigError } from './internal/config' +export { + AWSError, + NetworkError, + GeneralError, + DNSError, + TCPError, + TLSError, + HTTP2Error, +} from './internal/error' export { InvalidSignatureError } from './internal/signature' export { SystemsManagerClient,