Fixed build errors from Travis CI

This commit is contained in:
Caleb Everett
2018-02-05 12:07:56 -05:00
parent 12ac31209b
commit 879c918b44
2 changed files with 7 additions and 8 deletions
+4 -4
View File
@@ -10,10 +10,10 @@ import { S3 } from "aws-sdk";
declare namespace s3Stream {
interface S3StreamDownloaderOptions {
client: S3,
concurrency?: number,
chunkSize?: string,
params: S3.GetObjectRequest
client: S3;
concurrency?: number;
chunkSize?: string;
params: S3.GetObjectRequest;
}
}
@@ -4,7 +4,7 @@ import * as fs from "fs";
// Documentation for "params":
// http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#getObject-property
var config = {
const config = {
client: new AWS.S3({}),
concurrency: 6,
chunkSize: '512KB',
@@ -12,7 +12,6 @@ var config = {
Key: 'key-name',
Bucket: 'bucket-name'
}
}
};
S3Stream(config)
.pipe(fs.createWriteStream('/path/to/a/file'));
S3Stream(config).pipe(fs.createWriteStream('/path/to/a/file'));