Removing smithy package of questionable quality.

This commit is contained in:
Michael Drury 2025-02-13 20:20:01 +00:00
parent e837fccded
commit efd2248454
2 changed files with 3 additions and 5 deletions

View File

@ -159,7 +159,6 @@
"@types/tar": "6.1.5",
"@types/tmp": "0.2.6",
"@types/uuid": "8.3.4",
"@smithy/types": "4.0.0",
"chance": "^1.1.12",
"copyfiles": "2.4.1",
"docker-compose": "0.23.17",

View File

@ -10,7 +10,6 @@ import {
import { S3, S3ClientConfig } from "@aws-sdk/client-s3"
import csv from "csvtojson"
import stream from "stream"
import { NodeJsClient } from "@smithy/types"
interface S3Config {
region: string
@ -159,7 +158,7 @@ const SCHEMA: Integration = {
class S3Integration implements IntegrationBase {
private readonly config: S3ClientConfig
private client: NodeJsClient<S3>
private client: S3
constructor(config: S3Config) {
this.config = {
@ -176,7 +175,7 @@ class S3Integration implements IntegrationBase {
delete this.config.endpoint
}
this.client = new S3(this.config) as NodeJsClient<S3>
this.client = new S3(this.config)
}
async testConnection() {
@ -263,7 +262,7 @@ class S3Integration implements IntegrationBase {
.on("error", () => {
csvError = true
})
fileStream.on("finish", () => {
fileStream.on("end", () => {
resolve(response)
})
}).catch(err => {