@aws/aurora-dsql-postgresjs-connector 0.1.2 → 0.1.3
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.
- package/dist/index.cjs +2 -2
- package/package.json +17 -9
package/dist/index.cjs
CHANGED
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
//#endregion
|
|
28
28
|
let postgres = require("postgres");
|
|
29
29
|
postgres = __toESM(postgres);
|
|
30
|
-
let
|
|
30
|
+
let _aws_sdk_dsql_signer = require("@aws-sdk/dsql-signer");
|
|
31
31
|
|
|
32
32
|
//#region src/client.ts
|
|
33
33
|
const ADMIN = "admin";
|
|
@@ -68,7 +68,7 @@ function auroraDSQLPostgres(urlOrOptions, options) {
|
|
|
68
68
|
profile: opts.profile || process.env.AWS_PROFILE || "default"
|
|
69
69
|
};
|
|
70
70
|
if (opts.customCredentialsProvider) signerConfig.credentials = opts.customCredentialsProvider;
|
|
71
|
-
let signer = new
|
|
71
|
+
let signer = new _aws_sdk_dsql_signer.DsqlSigner(signerConfig);
|
|
72
72
|
if (!database) opts.database = DEFAULT_DATABASE;
|
|
73
73
|
if (!ssl) opts.ssl = true;
|
|
74
74
|
const postgresOpts = {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws/aurora-dsql-postgresjs-connector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "An AWS Aurora DSQL connector with IAM authentication for Postgres.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/awslabs/aurora-dsql-nodejs-connector"
|
|
8
|
+
"url": "git+https://github.com/awslabs/aurora-dsql-nodejs-connector.git"
|
|
9
9
|
},
|
|
10
10
|
"homepage": "https://github.com/awslabs/aurora-dsql-nodejs-connector",
|
|
11
11
|
"keywords": ["aws", "aurora", "dsql", "postgres", "database", "iam", "authentication"],
|
|
@@ -31,15 +31,17 @@
|
|
|
31
31
|
"scripts": {
|
|
32
32
|
"clean": "rm -rf dist/ node_modules/",
|
|
33
33
|
"build": "npm run build:dev",
|
|
34
|
-
"build:dev": "npm run
|
|
35
|
-
"build:prod": "npm run
|
|
36
|
-
"typecheck": "tsc --noEmit",
|
|
34
|
+
"build:dev": "npm run check:types && tsdown \"src/**/*.ts\" --sourcemap --no-publint --no-attw",
|
|
35
|
+
"build:prod": "npm run check:types && tsdown",
|
|
37
36
|
"test": "npm run test:unit && npm run test:integration",
|
|
38
37
|
"test:unit": "jest --testPathIgnorePatterns=integration",
|
|
39
38
|
"test:integration": "NODE_OPTIONS='--experimental-vm-modules' jest --testPathPatterns=integration",
|
|
40
39
|
"test:watch": "jest --watch",
|
|
41
40
|
"lint": "eslint src/**/*.ts test/**/*.ts",
|
|
42
|
-
"lint:fix": "eslint src/**/*.ts test/**/*.ts --fix"
|
|
41
|
+
"lint:fix": "eslint src/**/*.ts test/**/*.ts --fix",
|
|
42
|
+
"check": "npm run check:types && npm run check:deps && npm run lint",
|
|
43
|
+
"check:types": "tsc --noEmit",
|
|
44
|
+
"check:deps": "depcheck --ignores='@types/*,ts-jest,tsx'"
|
|
43
45
|
},
|
|
44
46
|
"files": [
|
|
45
47
|
"dist/",
|
|
@@ -47,23 +49,29 @@
|
|
|
47
49
|
],
|
|
48
50
|
"dependencies": {
|
|
49
51
|
"@aws-sdk/credential-providers": "^3.901.0",
|
|
50
|
-
"@aws-sdk/dsql-signer": "^3.940.0"
|
|
52
|
+
"@aws-sdk/dsql-signer": "^3.940.0",
|
|
53
|
+
"@aws-sdk/types": "^3.901.0"
|
|
51
54
|
},
|
|
52
55
|
"peerDependencies": {
|
|
53
56
|
"postgres": "^3.4.7"
|
|
54
57
|
},
|
|
55
58
|
"devDependencies": {
|
|
59
|
+
"@arethetypeswrong/core": "^0.18.2",
|
|
56
60
|
"@eslint/js": "^9.37.0",
|
|
57
|
-
"@
|
|
61
|
+
"@jest/globals": "^30.2.0",
|
|
62
|
+
"@types/jest": "^30.0.0",
|
|
58
63
|
"@types/node": "^25.0.0",
|
|
59
64
|
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
60
65
|
"@typescript-eslint/parser": "^8.48.0",
|
|
66
|
+
"depcheck": "^1.4.7",
|
|
61
67
|
"eslint": "^9.39.1",
|
|
62
68
|
"eslint-plugin-header": "^3.1.1",
|
|
69
|
+
"eslint-plugin-import-x": "^4.16.1",
|
|
63
70
|
"jest": "^30.2.0",
|
|
64
71
|
"postgres": "^3.4.7",
|
|
72
|
+
"publint": "^0.3.16",
|
|
65
73
|
"ts-jest": "^29.4.5",
|
|
66
|
-
"tsdown": "^0.
|
|
74
|
+
"tsdown": "^0.18.0",
|
|
67
75
|
"typescript": "^5.9.3"
|
|
68
76
|
}
|
|
69
77
|
}
|