@zintrust/client-rds-data 0.4.2 → 0.4.4

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.
Files changed (2) hide show
  1. package/README.md +37 -0
  2. package/package.json +10 -2
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @zintrust/client-rds-data
2
+
3
+ AWS RDS Data API and Secrets Manager helpers for ZinTrust.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm i @zintrust/client-rds-data @aws-sdk/client-rds-data @aws-sdk/client-secrets-manager
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import RdsData from '@zintrust/client-rds-data';
15
+
16
+ const rds = await RdsData.getRdsDataClient('us-east-1');
17
+ const secrets = await RdsData.getSecretsManagerClient('us-east-1');
18
+
19
+ await rds.executeStatement({
20
+ resourceArn: process.env.AWS_RDS_RESOURCE_ARN,
21
+ secretArn: process.env.AWS_RDS_SECRET_ARN,
22
+ database: 'app',
23
+ sql: 'select 1',
24
+ });
25
+
26
+ const secret = await secrets.getSecretValue('my/service/secret');
27
+ ```
28
+
29
+ ## What it provides
30
+
31
+ - Lazy ESM loading for AWS SDK RDS Data API support
32
+ - Lazy ESM loading for AWS Secrets Manager support
33
+ - ZinTrust-native configuration and error handling
34
+
35
+ ## License
36
+
37
+ MIT
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@zintrust/client-rds-data",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
+ "description": "AWS RDS Data API and Secrets Manager helpers for ZinTrust.",
4
5
  "private": false,
5
6
  "type": "module",
6
7
  "main": "./dist/index.js",
@@ -22,7 +23,7 @@
22
23
  "@aws-sdk/client-secrets-manager": "^3.1009.0"
23
24
  },
24
25
  "peerDependencies": {
25
- "@zintrust/core": "^0.4.2"
26
+ "@zintrust/core": "^0.4.4"
26
27
  },
27
28
  "overrides": {
28
29
  "fast-xml-parser": "^5.5.7",
@@ -31,6 +32,13 @@
31
32
  "publishConfig": {
32
33
  "access": "public"
33
34
  },
35
+ "keywords": [
36
+ "zintrust",
37
+ "aws",
38
+ "rds-data",
39
+ "aurora",
40
+ "typescript"
41
+ ],
34
42
  "scripts": {
35
43
  "build": "tsc -p tsconfig.json",
36
44
  "prepublishOnly": "npm run build"