Prepare 1.11.2

This commit is contained in:
Nick Cipollo
2022-11-11 14:17:14 -05:00
parent 443f2c0c79
commit 18eadf9c9b
11 changed files with 29 additions and 93 deletions
+3 -3
View File
@@ -6,14 +6,14 @@ const fs_1 = require("fs");
class Artifact {
constructor(path, contentType = "raw") {
this.path = path;
this.name = (0, path_1.basename)(path);
this.name = path_1.basename(path);
this.contentType = contentType;
}
get contentLength() {
return (0, fs_1.statSync)(this.path).size;
return fs_1.statSync(this.path).size;
}
readFile() {
return (0, fs_1.readFileSync)(this.path);
return fs_1.readFileSync(this.path);
}
}
exports.Artifact = Artifact;