This commit is contained in:
Caleb Gosiak 2021-09-30 17:44:32 -05:00
parent 3b3f1ff398
commit cbb243eff9
4 changed files with 4 additions and 4 deletions

View file

@ -43361,7 +43361,7 @@ class CacheService {
} }
uploadToS3(key, archivePath) { uploadToS3(key, archivePath) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const data = fs_1.default.readFileSync(archivePath).toString("base64"); const data = fs_1.default.readFileSync(archivePath);
return this._client return this._client
.putObject({ .putObject({
Bucket: this._bucket, Bucket: this._bucket,

2
dist/save/index.js vendored
View file

@ -43361,7 +43361,7 @@ class CacheService {
} }
uploadToS3(key, archivePath) { uploadToS3(key, archivePath) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const data = fs_1.default.readFileSync(archivePath).toString("base64"); const data = fs_1.default.readFileSync(archivePath);
return this._client return this._client
.putObject({ .putObject({
Bucket: this._bucket, Bucket: this._bucket,

View file

@ -1,6 +1,6 @@
{ {
"name": "cache", "name": "cache",
"version": "0.7.0", "version": "0.8.0",
"private": true, "private": true,
"description": "Cache dependencies and build outputs", "description": "Cache dependencies and build outputs",
"main": "dist/restore/index.js", "main": "dist/restore/index.js",

View file

@ -127,7 +127,7 @@ export class CacheService {
key: string, key: string,
archivePath: string archivePath: string
): Promise<PromiseResult<S3.PutObjectOutput, AWSError>> { ): Promise<PromiseResult<S3.PutObjectOutput, AWSError>> {
const data = fs.readFileSync(archivePath).toString("base64"); const data = fs.readFileSync(archivePath);
return this._client return this._client
.putObject({ .putObject({