Skip to content

Fetch is not defined #6

Description

@AlloryDante

Using the latest version of uaup + node 14.16.1 I get

UnhandledPromiseRejectionWarning: ReferenceError: fetch is not defined
at GetUpdateVersion (D:\Dektop\test\node_modules\uaup-js\index.js:150:5

The following code should be sufficient to replicate this issue

const uaup = require('uaup-js');


let updateOptions = {
    gitRepo: "windows-sub4sub-client", // [Required] Your Repo Name
    gitUsername: "cezarlacatus",  // [Required] Your GitHub Username.
    appName: "sub4sub-client", //[Required] The Name of the app archive and the app folder.
    appExecutableName: "sub4sub-client.exe", //[Required] The Executable of the Application to be Run after updating.
  };
let isUpdateAvalible = uaup.CheckForUpdates(updateOptions);
if(isUpdateAvalible){
   console.log("Update found! Downloading..")
    uaup.Update(updateOptions);
  }else{
    console.log("No updates found...")
}

Also some lybraries are obsolete so I really hope that this project will still be maintained as it is verry good

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions