@vouchington/aws 0.0.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3 @@
1
+ export declare const AWS_DUALSTACK_CLIENT_CONFIG: {
2
+ readonly useDualstackEndpoint: true;
3
+ };
@@ -0,0 +1,3 @@
1
+ // Dependency-free so /ses and /sqs do not pull in the optional @smithy/node-http-handler.
2
+ // Opt supported clients into dual-stack endpoints explicitly instead of AWS_USE_DUALSTACK_ENDPOINT.
3
+ export const AWS_DUALSTACK_CLIENT_CONFIG = { useDualstackEndpoint: true };
@@ -2,7 +2,5 @@ import { NodeHttpHandler, type NodeHttpHandlerOptions } from '@smithy/node-http-
2
2
  export declare const AWS_CONNECTION_TIMEOUT_MS = 3000;
3
3
  export declare const AWS_SOCKET_TIMEOUT_MS = 10000;
4
4
  export declare const AWS_LONG_POLL_SOCKET_TIMEOUT_MS = 25000;
5
- export declare const AWS_DUALSTACK_CLIENT_CONFIG: {
6
- readonly useDualstackEndpoint: true;
7
- };
5
+ export { AWS_DUALSTACK_CLIENT_CONFIG } from './dualstack.mts';
8
6
  export declare function createAwsRequestHandler(overrides?: NodeHttpHandlerOptions): NodeHttpHandler;
@@ -3,8 +3,7 @@ export const AWS_CONNECTION_TIMEOUT_MS = 3_000;
3
3
  export const AWS_SOCKET_TIMEOUT_MS = 10_000;
4
4
  // SQS receives wait up to 20 seconds by protocol; keep the transport idle deadline above that.
5
5
  export const AWS_LONG_POLL_SOCKET_TIMEOUT_MS = 25_000;
6
- // Opt supported clients into dual-stack endpoints explicitly instead of AWS_USE_DUALSTACK_ENDPOINT.
7
- export const AWS_DUALSTACK_CLIENT_CONFIG = { useDualstackEndpoint: true };
6
+ export { AWS_DUALSTACK_CLIENT_CONFIG } from './dualstack.mjs';
8
7
  // Node HTTP handler configured with default connection and socket deadlines. Response-body
9
8
  // lifecycle handling beyond the SDK's own timeouts belongs in the application.
10
9
  export function createAwsRequestHandler(overrides = {}) {
package/dist/ses.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { SendEmailCommand, SendRawEmailCommand, } from '@aws-sdk/client-ses';
2
- import { AWS_DUALSTACK_CLIENT_CONFIG } from './request-handler.mjs';
2
+ import { AWS_DUALSTACK_CLIENT_CONFIG } from './dualstack.mjs';
3
3
  import { buildRawEmailMessage } from './ses-mime.mjs';
4
4
  export { buildRawEmailMessage };
5
5
  // SES sends carry no idempotency token, so an SDK retry after an ambiguous timeout can deliver
package/dist/sqs.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { DeleteMessageBatchCommand, ReceiveMessageCommand, SendMessageBatchCommand, } from '@aws-sdk/client-sqs';
2
2
  import { byteLength, chunkBySize } from './chunk.mjs';
3
- import { AWS_DUALSTACK_CLIENT_CONFIG } from './request-handler.mjs';
3
+ import { AWS_DUALSTACK_CLIENT_CONFIG } from './dualstack.mjs';
4
4
  const SQS_MAX_BATCH_ENTRIES = 10;
5
5
  const SQS_MAX_BATCH_BYTES = 1_048_576;
6
6
  // Client options for the application's SQSClient. QueueUrls use the IPv4 host, and the SDK default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vouchington/aws",
3
- "version": "0.0.0",
3
+ "version": "0.1.1",
4
4
  "description": "AWS SDK v3 command builders, batching, codecs, and error classifiers for SES, SQS, Firehose, and CloudWatch.",
5
5
  "homepage": "https://github.com/vouchington/vouchington-platform/tree/main/packages/aws#readme",
6
6
  "bugs": {
@@ -54,23 +54,19 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "scripts": {
58
- "build": "tsc --project tsconfig.build.json",
59
- "prepack": "pnpm run build"
60
- },
61
57
  "devDependencies": {
62
- "@aws-sdk/client-cloudwatch": "^3.1152.0",
63
- "@aws-sdk/client-firehose": "^3.1152.0",
64
- "@aws-sdk/client-ses": "^3.1152.0",
65
- "@aws-sdk/client-sqs": "^3.1152.0",
66
- "@smithy/node-http-handler": "^4.12.1"
58
+ "@aws-sdk/client-cloudwatch": "^3.1158.0",
59
+ "@aws-sdk/client-firehose": "^3.1158.0",
60
+ "@aws-sdk/client-ses": "^3.1158.0",
61
+ "@aws-sdk/client-sqs": "^3.1158.0",
62
+ "@smithy/node-http-handler": "^4.13.0"
67
63
  },
68
64
  "peerDependencies": {
69
- "@aws-sdk/client-cloudwatch": "^3.1152.0",
70
- "@aws-sdk/client-firehose": "^3.1152.0",
71
- "@aws-sdk/client-ses": "^3.1152.0",
72
- "@aws-sdk/client-sqs": "^3.1152.0",
73
- "@smithy/node-http-handler": "^4.12.1"
65
+ "@aws-sdk/client-cloudwatch": "^3.1158.0",
66
+ "@aws-sdk/client-firehose": "^3.1158.0",
67
+ "@aws-sdk/client-ses": "^3.1158.0",
68
+ "@aws-sdk/client-sqs": "^3.1158.0",
69
+ "@smithy/node-http-handler": "^4.13.0"
74
70
  },
75
71
  "peerDependenciesMeta": {
76
72
  "@aws-sdk/client-cloudwatch": {
@@ -91,5 +87,8 @@
91
87
  },
92
88
  "engines": {
93
89
  "node": ">=24.0.0"
90
+ },
91
+ "scripts": {
92
+ "build": "tsc --project tsconfig.build.json"
94
93
  }
95
- }
94
+ }