@statezero/core 0.1.48 → 0.1.49
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.
|
@@ -59,6 +59,13 @@ export class FileObject {
|
|
|
59
59
|
`Provided: ${this.chunkSize / (1024 * 1024)}MB`);
|
|
60
60
|
}
|
|
61
61
|
this.maxConcurrency = options.maxConcurrency || 3;
|
|
62
|
+
// This is to make the fileObject serializable by IDB in the cache
|
|
63
|
+
Object.defineProperty(this, "uploadPromise", {
|
|
64
|
+
value: Promise.resolve(this.uploadResult),
|
|
65
|
+
writable: true,
|
|
66
|
+
enumerable: false,
|
|
67
|
+
configurable: true
|
|
68
|
+
});
|
|
62
69
|
this.uploadPromise = this._initializeAndStartUpload(file, options);
|
|
63
70
|
}
|
|
64
71
|
get isStoredFile() {
|
package/package.json
CHANGED