@sparkvault/sdk-mobile 9.0.3 → 9.0.4
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/README.md
CHANGED
|
@@ -147,7 +147,7 @@ const downloaded = await sparkVault.ingots.downloadToFile({
|
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
- Uploads use Forge's tus v1.0.0: chunks sent over XHR are read through `fileReader`, while the background adapters (`backgroundTransfer`, `backgroundUploader`) read the file at `fileUri` themselves. Stage generated content to a file URI first, so every upload takes the same streaming path. Downloads stream through `fileDownloader` for every file size.
|
|
150
|
-
- A cancel (`abortSignal`, with the default `abortBehavior` `terminate`) gives the upload up: Forge drops its chunks, and `uploadFromUri` ends the upload with the file its create made. An upload given up any other way ends the same way through `endUpload({ vaultId, vat, upload })`, given the placement `onIngotCreated` hands over (or `createUpload`'s result), which names the upload the create staged (`uploadId
|
|
150
|
+
- A cancel (`abortSignal`, with the default `abortBehavior` `terminate`) gives the upload up: Forge drops its chunks, and `uploadFromUri` ends the upload with the file its create made. An upload given up any other way ends the same way through `endUpload({ vaultId, vat, upload })`, given the placement `onIngotCreated` hands over (or `createUpload`'s result), which names the upload the create staged (`uploadId`; what Core deletes: in the monorepo, `docs/FORGE.md` → ISTK Flow), and the call resolves `deleted` (the file is gone) or `kept` (this end deleted nothing: the upload published it, a later upload took it over, or the create did not make it).
|
|
151
151
|
- `downloadToFile` deletes the file when it refuses an answer or a cancel lands during an attempt, but leaves what the adapter wrote when the adapter rejects (a transport failure, a timeout): once `downloadToFile` rejects, delete what is left at `fileUri`.
|
|
152
152
|
- Transfers: [Upload, Download, Replace](https://sparkvault.com/api/docs/sdk-mobile/#use-case-transfer); the error classes: [Errors](https://sparkvault.com/api/docs/sdk-mobile/#errors). Resume, cancellation, the retry budget and the download rules: in the monorepo, `docs/SDK.md` → Mobile Vault and Ingot Transfer.
|
|
153
153
|
|
|
@@ -27,9 +27,9 @@ export function contentConflictReason(error: {
|
|
|
27
27
|
* rename, a move, an upload landing, a race for the
|
|
28
28
|
* same name): read it again and retry
|
|
29
29
|
* DESTINATION_CHANGED another request moved the folder a move targets
|
|
30
|
-
* NAME_UNSUPPORTED the file's name, stored before names
|
|
31
|
-
* holds a character no name index takes
|
|
32
|
-
*
|
|
30
|
+
* NAME_UNSUPPORTED the file's or folder's name, stored before names
|
|
31
|
+
* were checked, holds a character no name index takes
|
|
32
|
+
* yet: rename it, then retry
|
|
33
33
|
* FOLDER_DELETING a folder the change places content into, moves
|
|
34
34
|
* content out of, or changes is being deleted:
|
|
35
35
|
* `folder_id` names it and `role` the part it plays
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* rename, a move, an upload landing, a race for the
|
|
18
18
|
* same name): read it again and retry
|
|
19
19
|
* DESTINATION_CHANGED another request moved the folder a move targets
|
|
20
|
-
* NAME_UNSUPPORTED the file's name, stored before names
|
|
21
|
-
* holds a character no name index takes
|
|
22
|
-
*
|
|
20
|
+
* NAME_UNSUPPORTED the file's or folder's name, stored before names
|
|
21
|
+
* were checked, holds a character no name index takes
|
|
22
|
+
* yet: rename it, then retry
|
|
23
23
|
* FOLDER_DELETING a folder the change places content into, moves
|
|
24
24
|
* content out of, or changes is being deleted:
|
|
25
25
|
* `folder_id` names it and `role` the part it plays
|
package/package.json
CHANGED
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
* rename, a move, an upload landing, a race for the
|
|
19
19
|
* same name): read it again and retry
|
|
20
20
|
* DESTINATION_CHANGED another request moved the folder a move targets
|
|
21
|
-
* NAME_UNSUPPORTED the file's name, stored before names
|
|
22
|
-
* holds a character no name index takes
|
|
23
|
-
*
|
|
21
|
+
* NAME_UNSUPPORTED the file's or folder's name, stored before names
|
|
22
|
+
* were checked, holds a character no name index takes
|
|
23
|
+
* yet: rename it, then retry
|
|
24
24
|
* FOLDER_DELETING a folder the change places content into, moves
|
|
25
25
|
* content out of, or changes is being deleted:
|
|
26
26
|
* `folder_id` names it and `role` the part it plays
|