@socket.tech/dl-common 1.0.3-test.17 → 1.0.3-test.18
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getAwsKmsSigner: (keyId: string, region?: string) => Promise<
|
|
1
|
+
import { KmsEthersSigner } from "aws-kms-ethers-signer";
|
|
2
|
+
export declare const getAwsKmsSigner: (keyId: string, region?: string) => Promise<KmsEthersSigner>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAwsKmsSigner = void 0;
|
|
4
|
-
const
|
|
4
|
+
const aws_kms_ethers_signer_1 = require("aws-kms-ethers-signer");
|
|
5
5
|
const getAwsKmsSigner = async (keyId, region = "us-east-1") => {
|
|
6
6
|
try {
|
|
7
7
|
const kmsCredentials = {
|
|
8
8
|
region,
|
|
9
9
|
keyId,
|
|
10
10
|
};
|
|
11
|
-
let signer = new
|
|
11
|
+
let signer = new aws_kms_ethers_signer_1.KmsEthersSigner(kmsCredentials);
|
|
12
12
|
let signerAddress = await signer.getAddress();
|
|
13
13
|
// logger.info(` keyid ${keyId} ${signerAddress}`);
|
|
14
14
|
if (!signerAddress) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socket.tech/dl-common",
|
|
3
|
-
"version": "1.0.3-test.
|
|
3
|
+
"version": "1.0.3-test.18",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"description": "common utilities for socket data layer.",
|
|
@@ -32,8 +32,10 @@
|
|
|
32
32
|
"format:check": "prettier \"./**\" --ignore-unknown --check",
|
|
33
33
|
"prepare": "husky install",
|
|
34
34
|
"publishp": "yarn lint && yarn build",
|
|
35
|
-
"testc": "jest --coverage",
|
|
36
|
-
"
|
|
35
|
+
"testc": "jest --testPathIgnorePatterns '.db.test.ts$' --coverage",
|
|
36
|
+
"testdb": "jest --testMatch **/*.db.test.ts --runInBand",
|
|
37
|
+
"testdbc": "jest --testMatch **/*.db.test.ts --runInBand --coverage",
|
|
38
|
+
"test": "jest --testPathIgnorePatterns '.db.test.ts$'"
|
|
37
39
|
},
|
|
38
40
|
"dependencies": {
|
|
39
41
|
"@aws-sdk/client-eventbridge": "^3.449.0",
|
|
@@ -44,8 +46,9 @@
|
|
|
44
46
|
"@socket.tech/dl-core": "2.4.13",
|
|
45
47
|
"@socket.tech/ll-common": "^0.0.19",
|
|
46
48
|
"async-redis": "^2.0.0",
|
|
49
|
+
"aws-kms-ethers-signer": "^0.1.3",
|
|
47
50
|
"ethers": "^5.7.1",
|
|
48
|
-
"
|
|
51
|
+
"lodash": "^4.17.21",
|
|
49
52
|
"pg": "^8.8.0",
|
|
50
53
|
"pg-hstore": "^2.3.4",
|
|
51
54
|
"prom-client": "^14.2.0",
|
|
@@ -66,6 +69,7 @@
|
|
|
66
69
|
"@typescript-eslint/parser": "^5.17.0",
|
|
67
70
|
"aws-lambda": "^1.0.7",
|
|
68
71
|
"babel-jest": "^29.7.0",
|
|
72
|
+
"csv-parse": "^5.5.2",
|
|
69
73
|
"esbuild": "^0.19.3",
|
|
70
74
|
"eslint": "^8.0.1",
|
|
71
75
|
"eslint-config-prettier": "8.3.0",
|