diff --git a/package-lock.json b/package-lock.json index 29810ba..04f2a93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@bugsplat/elfy": "^1.0.1", - "@bugsplat/js-api-client": "^8.4.2", + "@bugsplat/js-api-client": "^9.3.2", "archiver": "^7.0.1", "command-line-args": "^5.2.0", "command-line-usage": "^6.1.1", @@ -64,9 +64,9 @@ "license": "MIT" }, "node_modules/@bugsplat/js-api-client": { - "version": "8.6.0", - "resolved": "https://registry.npmjs.org/@bugsplat/js-api-client/-/js-api-client-8.6.0.tgz", - "integrity": "sha512-fRvO6SRrI82En8Z8SRdL7BS6t+3kaw9PCS5Y8FuFYvqizHJ5CHnNNA+5CJ2QIeku7CWQcsQCgnGCoekdqqq7Mg==", + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/@bugsplat/js-api-client/-/js-api-client-9.3.2.tgz", + "integrity": "sha512-i+mipYiWrd/TvtevmD+ltrg/Y3kZ6r2QFY901TOiJkKswTErhAsJss8+HK7vsXbgDJhnYS+iroHiSkddnzClIA==", "license": "MIT", "dependencies": { "argument-contracts": "^1.2.3" diff --git a/package.json b/package.json index abe34a5..d27a985 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ }, "dependencies": { "@bugsplat/elfy": "^1.0.1", - "@bugsplat/js-api-client": "^8.4.2", + "@bugsplat/js-api-client": "^9.3.2", "archiver": "^7.0.1", "command-line-args": "^5.2.0", "command-line-usage": "^6.1.1", diff --git a/src/worker.ts b/src/worker.ts index 0768eeb..e1227c2 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -76,9 +76,8 @@ export class UploadWorker { tmpFileName = path; } - const stats = await this.stat(tmpFileName); - const lastModified = stats.mtime; - const size = stats.size; + const { mtime: lastModified } = await this.stat(path); + const { size } = await this.stat(tmpFileName); const startTime = new Date(); console.log(`Worker ${this.id} uploading ${name}...`);