@socket.tech/dl-common 1.0.3-test.31 → 1.0.3-test.32
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,6 +1,6 @@
|
|
|
1
1
|
import { TripReason } from "../models";
|
|
2
2
|
import { StatusCodes } from "./enums";
|
|
3
|
-
import {
|
|
3
|
+
import { IntegrationTypes } from "@socket.tech/dl-core";
|
|
4
4
|
export type Speed = "safeLow" | "average" | "fast" | "fastest";
|
|
5
5
|
export declare enum InboundStatus {
|
|
6
6
|
NOT_TRIED = "NOT_TRIED",
|
|
@@ -116,15 +116,3 @@ export type MessageData = {
|
|
|
116
116
|
executionParams: string;
|
|
117
117
|
packedMessage: string;
|
|
118
118
|
};
|
|
119
|
-
export type S3Config = {
|
|
120
|
-
chains: {
|
|
121
|
-
[chainSlug in ChainSlug]?: {
|
|
122
|
-
rpc: string;
|
|
123
|
-
blockNumber: number;
|
|
124
|
-
confirmations: number;
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
batcherSupportedChainSlugs: ChainSlug[];
|
|
128
|
-
watcherSupportedChainSlugs: ChainSlug[];
|
|
129
|
-
transmitterSupportedChainSlugs: ChainSlug[];
|
|
130
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeploymentMode } from "@socket.tech/dl-core";
|
|
1
|
+
import { type DeploymentMode } from "@socket.tech/dl-core";
|
|
2
2
|
export declare const initS3Client: (region: string) => Promise<void>;
|
|
3
3
|
export declare const getFileFromS3: (bucket: string, filePath: string) => Promise<any>;
|
|
4
4
|
export declare const getS3Config: (deploymentMode: DeploymentMode, region?: string) => Promise<any>;
|
package/dist/utils/s3Service.js
CHANGED
|
@@ -20,7 +20,7 @@ const getFileFromS3 = async (bucket, filePath) => {
|
|
|
20
20
|
});
|
|
21
21
|
// Execute the command and get the response
|
|
22
22
|
const s3Response = await s3Client.send(getObjectCommand);
|
|
23
|
-
|
|
23
|
+
const jsonStr = await ((_a = s3Response.Body) === null || _a === void 0 ? void 0 : _a.transformToString());
|
|
24
24
|
let response;
|
|
25
25
|
if (jsonStr)
|
|
26
26
|
response = JSON.parse(jsonStr);
|
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.32",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"description": "common utilities for socket data layer.",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@aws-sdk/client-sqs": "^3.421.0",
|
|
46
46
|
"@aws-sdk/smithy-client": "^3.329.0",
|
|
47
47
|
"@ethersproject/providers": "^5.7.2",
|
|
48
|
-
"@socket.tech/dl-core": "
|
|
48
|
+
"@socket.tech/dl-core": "2.4.15-test.1",
|
|
49
49
|
"@socket.tech/ll-common": "^0.0.19",
|
|
50
50
|
"async-redis": "^2.0.0",
|
|
51
51
|
"aws-kms-ethers-signer": "^0.1.3",
|