@sparkvault/sdk-js 13.0.4 → 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 CHANGED
@@ -619,7 +619,7 @@ function retryDelayMs({ attempt, retryAfterMs = null, baseMs = 1000, capMs = 320
619
619
  throw new TypeError('A retry delay needs the key its transfer spreads by');
620
620
  }
621
621
  if (!isDuration(baseMs) || baseMs === 0 || !isDuration(capMs) || capMs < baseMs) {
622
- throw new TypeError(`A retry backs off from a positive base (${baseMs} ms) up to a cap no smaller (${capMs} ms)`);
622
+ throw new TypeError('A retry backs off from a positive base up to a cap no smaller');
623
623
  }
624
624
  if (retryAfterMs !== null && !isDuration(retryAfterMs)) {
625
625
  throw new TypeError(`A Retry-After floor is a non-negative number of ms, not ${retryAfterMs}`);
@@ -712,7 +712,7 @@ function createTransferBudget({
712
712
  },
713
713
  failed(verdict, retryAfterMs = null) {
714
714
  if (!RETRYABLE_VERDICTS.has(verdict)) {
715
- throw new TypeError(`A transfer budget records retryable answers only, not '${verdict}'`);
715
+ throw new TypeError('A transfer budget records retryable answers only');
716
716
  }
717
717
  const allowed = startsInsideIdleLimit(retryAfterMs);
718
718
  consecutiveFailures += 1;
@@ -760,7 +760,7 @@ const RESUME_OFFSET_PROBLEM = Object.freeze({
760
760
  */
761
761
  function resumeOffsetProblem(offset, { totalSize, chunkSize }) {
762
762
  if (!Number.isSafeInteger(totalSize) || totalSize < 0 || !Number.isSafeInteger(chunkSize) || chunkSize < 1) {
763
- throw new TypeError(`An upload's geometry is a whole length and a positive chunk size, not ${totalSize} and ${chunkSize}`);
763
+ throw new TypeError('An upload\'s geometry is a whole length and a positive chunk size');
764
764
  }
765
765
  if (!Number.isSafeInteger(offset) || offset < 0) return RESUME_OFFSET_PROBLEM.INVALID;
766
766
  if (offset > totalSize) return RESUME_OFFSET_PROBLEM.BEYOND_TOTAL;
@@ -18318,7 +18318,7 @@ class SparkVault {
18318
18318
  }
18319
18319
  /** Get the SDK version */
18320
18320
  static get version() {
18321
- return '13.0.4';
18321
+ return '13.0.6';
18322
18322
  }
18323
18323
  }
18324
18324
  if (typeof window !== 'undefined') {