@micromerce/media-fileuploader 1.0.1917 → 1.0.1919

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.
@@ -1,5 +1,6 @@
1
1
  /**
2
- * A stand-in for @uppy/tus, used by FileUploader.upload.test.tsx.
2
+ * A stand-in for @uppy/tus, used by FileUploader.upload.test.tsx and
3
+ * FileUploader.lifecycle.test.tsx.
3
4
  *
4
5
  * It is a real Uppy uploader plugin rather than a jest.fn(), on purpose: the
5
6
  * component's error and progress handling depends on Uppy's *internal* event
@@ -11,7 +12,10 @@
11
12
  * exactly what a major Uppy upgrade changes silently. Driving the events through
12
13
  * `uppy.emit` keeps the whole chain under test.
13
14
  *
14
- * Faithful to @uppy/tus 3.x in two details that matter:
15
+ * Faithful to @uppy/tus 3.x in three details that matter:
16
+ * - `upload-start` is emitted for the batch before uploading, because Uppy core
17
+ * is what turns that into `progress.uploadStarted`, which the unmount path
18
+ * reads via uploadInProgress;
15
19
  * - per-file failures do not reject the uploader (Tus collects them with
16
20
  * Promise.allSettled), so the global `error` event is not raised by us;
17
21
  * - `onBeforeRequest` / `onAfterResponse` are invoked with the same shape the
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
1
  /**
2
- * A stand-in for @uppy/tus, used by FileUploader.upload.test.tsx.
2
+ * A stand-in for @uppy/tus, used by FileUploader.upload.test.tsx and
3
+ * FileUploader.lifecycle.test.tsx.
3
4
  *
4
5
  * It is a real Uppy uploader plugin rather than a jest.fn(), on purpose: the
5
6
  * component's error and progress handling depends on Uppy's *internal* event
@@ -11,7 +12,10 @@
11
12
  * exactly what a major Uppy upgrade changes silently. Driving the events through
12
13
  * `uppy.emit` keeps the whole chain under test.
13
14
  *
14
- * Faithful to @uppy/tus 3.x in two details that matter:
15
+ * Faithful to @uppy/tus 3.x in three details that matter:
16
+ * - `upload-start` is emitted for the batch before uploading, because Uppy core
17
+ * is what turns that into `progress.uploadStarted`, which the unmount path
18
+ * reads via uploadInProgress;
15
19
  * - per-file failures do not reject the uploader (Tus collects them with
16
20
  * Promise.allSettled), so the global `error` event is not raised by us;
17
21
  * - `onBeforeRequest` / `onAfterResponse` are invoked with the same shape the
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromerce/media-fileuploader",
3
- "version": "1.0.1917",
3
+ "version": "1.0.1919",
4
4
  "homepage": "https://www.micromerce.com",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",