@uploadista/client-core 0.0.14 → 0.0.15-beta.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uploadista/client-core",
3
3
  "type": "module",
4
- "version": "0.0.14",
4
+ "version": "0.0.15-beta.1",
5
5
  "description": "Platform-agnostic core upload client logic for Uploadista",
6
6
  "license": "MIT",
7
7
  "author": "Uploadista",
@@ -34,12 +34,12 @@
34
34
  "dependencies": {
35
35
  "js-base64": "3.7.8",
36
36
  "zod": "4.1.12",
37
- "@uploadista/core": "0.0.14"
37
+ "@uploadista/core": "0.0.15-beta.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "tsdown": "0.16.4",
41
41
  "vitest": "4.0.8",
42
- "@uploadista/typescript-config": "0.0.14"
42
+ "@uploadista/typescript-config": "0.0.15-beta.1"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "tsdown",
@@ -296,9 +296,12 @@ export class FlowManager<TInput = FlowUploadInput, TOutput = UploadFile> {
296
296
  * @param event - Flow event to process
297
297
  */
298
298
  handleFlowEvent(event: FlowEvent): void {
299
+ console.log("[FlowManager] handleFlowEvent", event.eventType, "eventJobId:", event.jobId, "stateJobId:", this.state.jobId);
300
+
299
301
  // For FlowStart, accept if we don't have a jobId yet (first event)
300
302
  // This handles the race condition where flow events arrive before onJobStart callback
301
303
  if (event.eventType === EventType.FlowStart && !this.state.jobId) {
304
+ console.log("[FlowManager] Setting jobId from FlowStart");
302
305
  this.updateState({
303
306
  jobId: event.jobId,
304
307
  flowStarted: true,
@@ -309,9 +312,12 @@ export class FlowManager<TInput = FlowUploadInput, TOutput = UploadFile> {
309
312
 
310
313
  // Only handle events for the current job
311
314
  if (!this.state.jobId || event.jobId !== this.state.jobId) {
315
+ console.log("[FlowManager] IGNORING event - jobId mismatch");
312
316
  return;
313
317
  }
314
318
 
319
+ console.log("[FlowManager] Processing event:", event.eventType);
320
+
315
321
  switch (event.eventType) {
316
322
  case EventType.FlowStart:
317
323
  this.updateState({