@sprucelabs/spruce-file-utils 15.1.23 → 15.1.24
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.
@@ -4,7 +4,7 @@ import { MercuryEventEmitter } from '@sprucelabs/mercury-types';
|
|
4
4
|
import { UploadedFile } from '../files.types';
|
5
5
|
export default class ChunkingUploaderImpl extends AbstractEventEmitter<ChunkingUploaderEventContract> implements ChunkingUploader {
|
6
6
|
private connectToApi;
|
7
|
-
static fetch:
|
7
|
+
static fetch: (...args: any[]) => Promise<Response>;
|
8
8
|
static chunkSizeKb: number;
|
9
9
|
static Class?: new (connectToApi: MercuryConnectFactory) => ChunkingUploader;
|
10
10
|
private restEndpointUrl?;
|
@@ -142,7 +142,8 @@ class ChunkingUploaderImpl extends AbstractEventEmitter {
|
|
142
142
|
return ChunkingUploaderImpl.fetch;
|
143
143
|
}
|
144
144
|
}
|
145
|
-
|
145
|
+
//@ts-ignore
|
146
|
+
ChunkingUploaderImpl.fetch = (...args) => fetch(...args);
|
146
147
|
ChunkingUploaderImpl.chunkSizeKb = 1024;
|
147
148
|
export default ChunkingUploaderImpl;
|
148
149
|
export const chunkingUploaderEventContract = buildEventContract({
|
@@ -4,7 +4,7 @@ import { MercuryEventEmitter } from '@sprucelabs/mercury-types';
|
|
4
4
|
import { UploadedFile } from '../files.types';
|
5
5
|
export default class ChunkingUploaderImpl extends AbstractEventEmitter<ChunkingUploaderEventContract> implements ChunkingUploader {
|
6
6
|
private connectToApi;
|
7
|
-
static fetch:
|
7
|
+
static fetch: (...args: any[]) => Promise<Response>;
|
8
8
|
static chunkSizeKb: number;
|
9
9
|
static Class?: new (connectToApi: MercuryConnectFactory) => ChunkingUploader;
|
10
10
|
private restEndpointUrl?;
|
@@ -129,7 +129,8 @@ class ChunkingUploaderImpl extends mercury_event_emitter_1.AbstractEventEmitter
|
|
129
129
|
return ChunkingUploaderImpl.fetch;
|
130
130
|
}
|
131
131
|
}
|
132
|
-
|
132
|
+
//@ts-ignore
|
133
|
+
ChunkingUploaderImpl.fetch = (...args) => fetch(...args);
|
133
134
|
ChunkingUploaderImpl.chunkSizeKb = 1024;
|
134
135
|
exports.default = ChunkingUploaderImpl;
|
135
136
|
exports.chunkingUploaderEventContract = (0, mercury_types_1.buildEventContract)({
|