parse-community / Parse-SDK-JS
Showing 1 of 3 files from the diff.

@@ -169,24 +169,24 @@
Loading
169 169
        headers[key] = customHeaders[key];
170 170
      }
171 171
172 -
      function handleProgress(type, event) {
173 -
        if (options && typeof options.progress === 'function') {
172 +
      if (options && typeof options.progress === 'function') {
173 +
        const handleProgress = function (type, event) {
174 174
          if (event.lengthComputable) {
175 175
            options.progress(event.loaded / event.total, event.loaded, event.total, { type });
176 176
          } else {
177 177
            options.progress(null, null, null, { type });
178 178
          }
179 -
        }
180 -
      }
181 -
182 -
      xhr.onprogress = event => {
183 -
        handleProgress('download', event);
184 -
      };
179 +
        };
185 180
186 -
      if (xhr.upload) {
187 -
        xhr.upload.onprogress = event => {
188 -
          handleProgress('upload', event);
181 +
        xhr.onprogress = event => {
182 +
          handleProgress('download', event);
189 183
        };
184 +
185 +
        if (xhr.upload) {
186 +
          xhr.upload.onprogress = event => {
187 +
            handleProgress('upload', event);
188 +
          };
189 +
        }
190 190
      }
191 191
192 192
      xhr.open(method, url, true);
Files Coverage
src 99.90%
Project Totals (61 files) 99.90%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading