@uploadista/client-core 1.0.0-beta.3 → 1.0.0
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.
- package/dist/index.d.mts +8 -9
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/managers/flow-manager.ts +3 -2
- package/src/upload/flow-upload.ts +1 -2
- package/src/upload/single-upload.ts +1 -1
- package/tsconfig.json +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uploadista/client-core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"description": "Platform-agnostic core upload client logic for Uploadista",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Uploadista",
|
|
@@ -32,17 +32,17 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"js-base64": "3.
|
|
36
|
-
"@uploadista/core": "1.0.0
|
|
35
|
+
"js-base64": "3.8.0",
|
|
36
|
+
"@uploadista/core": "1.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"zod": "^4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"tsdown": "0.
|
|
43
|
-
"vitest": "4.
|
|
44
|
-
"zod": "4.3
|
|
45
|
-
"@uploadista/typescript-config": "1.0.0
|
|
42
|
+
"tsdown": "0.22.3",
|
|
43
|
+
"vitest": "4.1.10",
|
|
44
|
+
"zod": "4.4.3",
|
|
45
|
+
"@uploadista/typescript-config": "1.0.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsc --noEmit && tsdown",
|
|
@@ -812,8 +812,9 @@ export class FlowManager<TInput = FlowUploadInput> {
|
|
|
812
812
|
// Determine what status to resume to
|
|
813
813
|
// If we had started uploading, resume to uploading state
|
|
814
814
|
// Otherwise, this shouldn't happen (can only pause during upload/processing)
|
|
815
|
-
const resumeStatus: "uploading" | "processing" =
|
|
816
|
-
|
|
815
|
+
const resumeStatus: "uploading" | "processing" = this.state.flowStarted
|
|
816
|
+
? "processing"
|
|
817
|
+
: "uploading";
|
|
817
818
|
|
|
818
819
|
// Call abort controller's resume method if available
|
|
819
820
|
// This allows chunk uploads to continue
|
|
@@ -3,12 +3,11 @@ import type { UploadistaApi } from "../client/uploadista-api";
|
|
|
3
3
|
import { UploadistaError } from "../error";
|
|
4
4
|
import type { Logger } from "../logger";
|
|
5
5
|
import type { AbortControllerLike } from "../services";
|
|
6
|
+
import { waitForResumeIfPaused } from "../services/abort-controller-service";
|
|
6
7
|
import type { FileSource } from "../services/file-reader-service";
|
|
7
8
|
import type { PlatformService, Timeout } from "../services/platform-service";
|
|
8
9
|
import type { SmartChunker, SmartChunkerConfig } from "../smart-chunker";
|
|
9
10
|
import type { FlowUploadConfig } from "../types/flow-upload-config";
|
|
10
|
-
|
|
11
|
-
import { waitForResumeIfPaused } from "../services/abort-controller-service";
|
|
12
11
|
import { shouldRetry } from "./chunk-upload";
|
|
13
12
|
import type { Callbacks } from "./single-upload";
|
|
14
13
|
import type { UploadMetrics } from "./upload-metrics";
|
|
@@ -3,6 +3,7 @@ import type { UploadistaApi } from "../client/uploadista-api";
|
|
|
3
3
|
import { UploadistaError } from "../error";
|
|
4
4
|
import type { Logger } from "../logger";
|
|
5
5
|
import type { AbortControllerLike } from "../services/abort-controller-service";
|
|
6
|
+
import { waitForResumeIfPaused } from "../services/abort-controller-service";
|
|
6
7
|
import type { ChecksumService } from "../services/checksum-service";
|
|
7
8
|
import type { FileSource } from "../services/file-reader-service";
|
|
8
9
|
import type { IdGenerationService } from "../services/id-generation-service";
|
|
@@ -10,7 +11,6 @@ import type { PlatformService, Timeout } from "../services/platform-service";
|
|
|
10
11
|
import type { WebSocketLike } from "../services/websocket-service";
|
|
11
12
|
import type { SmartChunker, SmartChunkerConfig } from "../smart-chunker";
|
|
12
13
|
import type { ClientStorage } from "../storage/client-storage";
|
|
13
|
-
import { waitForResumeIfPaused } from "../services/abort-controller-service";
|
|
14
14
|
import {
|
|
15
15
|
type OnProgress,
|
|
16
16
|
type OnShouldRetry,
|