Kinvey/js-sdk

View on GitHub
packages/nativescript-sdk/src/nativescript/files/upload.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function uploadFile has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function uploadFile(url: string, file: File, metadata: any, options: any = {}): Promise<any> {
  return new Promise((resolve, reject) => {
    const session = bghttp.session('file-upload');
    const request = {
      url,
Severity: Minor
Found in packages/nativescript-sdk/src/nativescript/files/upload.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status