@sparkvault/sdk-js 13.0.5 → 13.0.6
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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -615,7 +615,7 @@ function retryDelayMs({ attempt, retryAfterMs = null, baseMs = 1000, capMs = 320
|
|
|
615
615
|
throw new TypeError('A retry delay needs the key its transfer spreads by');
|
|
616
616
|
}
|
|
617
617
|
if (!isDuration(baseMs) || baseMs === 0 || !isDuration(capMs) || capMs < baseMs) {
|
|
618
|
-
throw new TypeError(
|
|
618
|
+
throw new TypeError('A retry backs off from a positive base up to a cap no smaller');
|
|
619
619
|
}
|
|
620
620
|
if (retryAfterMs !== null && !isDuration(retryAfterMs)) {
|
|
621
621
|
throw new TypeError(`A Retry-After floor is a non-negative number of ms, not ${retryAfterMs}`);
|
|
@@ -708,7 +708,7 @@ function createTransferBudget({
|
|
|
708
708
|
},
|
|
709
709
|
failed(verdict, retryAfterMs = null) {
|
|
710
710
|
if (!RETRYABLE_VERDICTS.has(verdict)) {
|
|
711
|
-
throw new TypeError(
|
|
711
|
+
throw new TypeError('A transfer budget records retryable answers only');
|
|
712
712
|
}
|
|
713
713
|
const allowed = startsInsideIdleLimit(retryAfterMs);
|
|
714
714
|
consecutiveFailures += 1;
|
|
@@ -756,7 +756,7 @@ const RESUME_OFFSET_PROBLEM = Object.freeze({
|
|
|
756
756
|
*/
|
|
757
757
|
function resumeOffsetProblem(offset, { totalSize, chunkSize }) {
|
|
758
758
|
if (!Number.isSafeInteger(totalSize) || totalSize < 0 || !Number.isSafeInteger(chunkSize) || chunkSize < 1) {
|
|
759
|
-
throw new TypeError(
|
|
759
|
+
throw new TypeError('An upload\'s geometry is a whole length and a positive chunk size');
|
|
760
760
|
}
|
|
761
761
|
if (!Number.isSafeInteger(offset) || offset < 0) return RESUME_OFFSET_PROBLEM.INVALID;
|
|
762
762
|
if (offset > totalSize) return RESUME_OFFSET_PROBLEM.BEYOND_TOTAL;
|
|
@@ -18314,7 +18314,7 @@ class SparkVault {
|
|
|
18314
18314
|
}
|
|
18315
18315
|
/** Get the SDK version */
|
|
18316
18316
|
static get version() {
|
|
18317
|
-
return '13.0.
|
|
18317
|
+
return '13.0.6';
|
|
18318
18318
|
}
|
|
18319
18319
|
}
|
|
18320
18320
|
if (typeof window !== 'undefined') {
|