@sprucelabs/spruce-file-utils 7.0.2 → 7.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,10 +32,10 @@ const file_type_1 = __importDefault(require("file-type"));
32
32
  const mime_types_1 = __importDefault(require("mime-types"));
33
33
  const uuid = __importStar(require("uuid"));
34
34
  class FileUploaderImpl {
35
- static Class;
36
35
  constructor() { }
37
36
  static Uploader() {
38
- return new (this.Class ?? this)();
37
+ var _a;
38
+ return new ((_a = this.Class) !== null && _a !== void 0 ? _a : this)();
39
39
  }
40
40
  async upload(payload) {
41
41
  const { base64Body, name } = (0, schema_1.assertOptions)(payload, [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-file-utils",
3
3
  "description": "Utils for working with files and Sprucebot.",
4
- "version": "7.0.2",
4
+ "version": "7.0.4",
5
5
  "skill": {
6
6
  "namespace": "files"
7
7
  },