From 1b8e5c65e3626f32f4b384428ebf3b30392b96f9 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 2 Sep 2024 14:49:12 +0000 Subject: [PATCH] Static file updates --- InconsistentResponseError.js.html | 19 +- PaginationStream.js.html | 40 ++--- PollingTimeoutError.js.html | 106 +++++++++++ Transloadit.js.html | 287 ++++++++++++++---------------- TransloaditError.js.html | 115 ++++++++++++ coverage-badge.svg | 2 +- index.html | 62 +++++-- tus.js.html | 2 +- 8 files changed, 430 insertions(+), 203 deletions(-) create mode 100644 PollingTimeoutError.js.html create mode 100644 TransloaditError.js.html diff --git a/InconsistentResponseError.js.html b/InconsistentResponseError.js.html index 9011e9f..fdc921d 100644 --- a/InconsistentResponseError.js.html +++ b/InconsistentResponseError.js.html @@ -25,7 +25,7 @@

All files InconsistentResponseError.js

100% Statements - 8/8 + 5/5
@@ -46,7 +46,7 @@

All files InconsistentResponseError.js

100% Lines - 8/8 + 5/5
@@ -68,22 +68,13 @@

All files InconsistentResponseError.js

3 4 5 -6 -7 -8 -91x -1x -1x -1x +61x 1x 1x 1x 1x  
class InconsistentResponseError extends Error {
-  constructor(message) {
-    super(message)
-    this.name = 'InconsistentResponseError'
-  }
+  name = 'InconsistentResponseError'
 }
  
 module.exports = InconsistentResponseError
@@ -94,7 +85,7 @@ 

All files InconsistentResponseError.js

+ + + + + + \ No newline at end of file diff --git a/Transloadit.js.html b/Transloadit.js.html index d85cd25..afe2d1a 100644 --- a/Transloadit.js.html +++ b/Transloadit.js.html @@ -23,9 +23,9 @@

All files Transloadit.js

- 96.66% + 96.63% Statements - 724/749 + 719/744
@@ -44,9 +44,9 @@

All files Transloadit.js

- 96.66% + 96.63% Lines - 724/749 + 719/744
@@ -807,12 +807,9 @@

All files Transloadit.js

742 743 744 -745 -746 -747 -748 -749 -7501x +7451x +1x +1x 1x 1x 1x @@ -860,15 +857,15 @@

All files Transloadit.js

9x 1x 1x -28x -28x +27x +27x 1x 1x -28x +27x 1x -41x -41x -41x +40x +40x +40x 1x 28x 28x @@ -876,11 +873,6 @@

All files Transloadit.js

28x 3x 3x -3x -3x -3x -3x -3x 28x 1x 1x @@ -1085,26 +1077,24 @@

All files Transloadit.js

13x 13x 13x -22x -22x -22x +21x +21x +21x 12x 12x -10x -10x -10x -22x +9x +9x +9x +21x     -10x -10x -22x -1x -1x -1x -1x 9x 9x +21x +1x +1x +8x +8x 13x 3x 3x @@ -1189,14 +1179,14 @@

All files Transloadit.js

3x 3x 3x -50x -50x -50x -50x -50x -50x -50x -50x +55x +55x +55x +55x +55x +55x +55x +55x 3x 3x 1x @@ -1209,10 +1199,10 @@

All files Transloadit.js

3x 3x 3x -30x -28x -28x -30x +29x +27x +27x +29x 3x 3x 3x @@ -1397,13 +1387,6 @@

All files Transloadit.js

1x 3x 3x -123x -123x -123x -123x -123x -3x -3x 127x 127x 127x @@ -1411,6 +1394,13 @@

All files Transloadit.js

127x 3x 3x +131x +131x +131x +131x +131x +3x +3x 3x 3x 33x @@ -1438,103 +1428,103 @@

All files Transloadit.js

3x 3x 3x -89x -89x -89x -89x -89x -89x +93x +93x +93x +93x +93x +93x 3x 3x 3x -126x -126x +130x +130x 2x 2x -126x -120x -120x -126x -120x -120x -126x -120x -120x -126x -126x -126x -3x -3x -3x -3x -117x -117x -117x -117x -3x -3x -3x -3x -3x -119x -119x -119x -119x -119x -119x -119x -119x -119x -119x -119x -119x -119x -119x -119x -88x -88x -119x -119x -119x -119x -119x -119x -120x -120x -120x +130x +124x +124x +130x +124x +124x +130x +124x +124x +130x +130x +130x +3x +3x +3x +3x +121x +121x +121x +121x +3x +3x +3x +3x +3x +123x +123x +123x +123x +123x +123x +123x +123x +123x +123x +123x +123x +123x +123x +123x +92x +92x +123x +123x +123x +123x +123x +123x +124x +124x +124x 32x 32x 32x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x -120x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x +124x 1x 13x 1x 1x -120x -109x -120x +124x +113x +124x 10x 8x 8x @@ -1556,8 +1546,8 @@

All files Transloadit.js

1x 1x 1x -120x -119x +124x +123x 3x 1x 1x @@ -1574,6 +1564,8 @@

All files Transloadit.js

  const InconsistentResponseError = require('./InconsistentResponseError') const PaginationStream = require('./PaginationStream') +const PollingTimeoutError = require('./PollingTimeoutError') +const TransloaditError = require('./TransloaditError') const pkg = require('../package.json') const tus = require('./tus')   @@ -1623,12 +1615,7 @@

All files Transloadit.js

// In case server returned a successful HTTP status code, but an `error` in the JSON object // This happens sometimes when createAssembly with an invalid file (IMPORT_FILE_ERROR) if (typeof result === 'object' && result !== null && typeof result.error === 'string') { - const err = new Error('Error in response') - // Mimic got HTTPError structure - err.response = { - body: result, - } - throw decorateHttpError(err, result) + throw decorateHttpError(new TransloaditError('Error in response', result), result) } }   @@ -1848,9 +1835,7 @@

All files Transloadit.js

  const nowMs = getHrTimeMs() if (timeout != null && nowMs - startTimeMs >= timeout) { - const err = new Error('Polling timed out') - err.code = 'POLLING_TIMED_OUT' - throw err + throw new PollingTimeoutError('Polling timed out') } await new Promise((resolve) => setTimeout(resolve, interval)) } @@ -2317,7 +2302,7 @@

All files Transloadit.js

+ + + + + + \ No newline at end of file diff --git a/coverage-badge.svg b/coverage-badge.svg index f6daef8..fb9575f 100644 --- a/coverage-badge.svg +++ b/coverage-badge.svg @@ -1 +1 @@ -coverage: 97.02%coverage97.02% \ No newline at end of file +coverage: 97.05%coverage97.05% \ No newline at end of file diff --git a/index.html b/index.html index abb0648..5bca594 100644 --- a/index.html +++ b/index.html @@ -23,30 +23,30 @@

All files

- 97.02% + 97.05% Statements - 880/907 + 889/916
- 96.02% + 96.08% Branches - 169/176 + 172/179
- 86.27% + 87.03% Functions - 44/51 + 47/54
- 97.02% + 97.05% Lines - 880/907 + 889/916
@@ -84,13 +84,13 @@

All files

100% - 8/8 + 5/5 100% 1/1 100% 1/1 100% - 8/8 + 5/5 @@ -108,19 +108,49 @@

All files

37/39 + + PollingTimeoutError.js + +
+ + 100% + 7/7 + 100% + 1/1 + 100% + 1/1 + 100% + 7/7 + + Transloadit.js - +
- 96.66% - 724/749 + 96.63% + 719/744 95.94% 142/148 84.09% 37/44 - 96.66% - 724/749 + 96.63% + 719/744 + + + + TransloaditError.js + +
+ + 100% + 10/10 + 100% + 2/2 + 100% + 2/2 + 100% + 10/10 @@ -146,7 +176,7 @@

All files