@sparkvault/sdk-js 11.2.3 → 11.2.5
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.cjs +205 -76
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +55 -10
- package/dist/index.mjs +205 -76
- package/dist/index.mjs.map +1 -1
- package/dist/ingots/index.d.ts +23 -10
- package/dist/ingots/types.d.ts +17 -0
- package/dist/sparks/types.d.ts +17 -0
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/dist/vaults/upload/api.d.ts +7 -5
- package/package.json +1 -1
|
@@ -111,9 +111,10 @@ export declare class UploadApi extends SparkVaultApi {
|
|
|
111
111
|
* otherwise a HEAD after the backoff ({@link offsetAfterFailure}); a session
|
|
112
112
|
* the server no longer holds throws `session_gone`, which only a new upload
|
|
113
113
|
* recovers from (any code of Core's the server named rides
|
|
114
|
-
* `details.coreCode`); an upload Core refused
|
|
115
|
-
*
|
|
116
|
-
*
|
|
114
|
+
* `details.coreCode`); an upload Core refused (a full storage pool, a later
|
|
115
|
+
* upload that replaced it, its vault scheduled for deletion, whose 409 names
|
|
116
|
+
* Core's code) throws `upload_refused` in Core's words at once, which no new
|
|
117
|
+
* upload recovers from. While the browser is offline, the loop
|
|
117
118
|
* waits for the network instead of spending attempts.
|
|
118
119
|
*
|
|
119
120
|
* Resolves only once the server has confirmed finalization
|
|
@@ -196,8 +197,9 @@ export declare class UploadApi extends SparkVaultApi {
|
|
|
196
197
|
* the publication on its own. A 503 naming no `Retry-After` is no deferral
|
|
197
198
|
* of Forge's, so it is polled as a failure. A 400 is the server's verdict
|
|
198
199
|
* and fails immediately, as does the refusal Core decided
|
|
199
|
-
* (`upload_refused
|
|
200
|
-
* missing, and the upload continues from
|
|
200
|
+
* (`upload_refused`, a 409 naming Core's code among them); a 409 naming an
|
|
201
|
+
* earlier offset means bytes are missing, and the upload continues from
|
|
202
|
+
* there.
|
|
201
203
|
*/
|
|
202
204
|
private confirmServerFinalized;
|
|
203
205
|
/**
|