Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt committed Dec 31, 2023
1 parent e842e4b commit 718e326
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,33 @@
* accepts the input defined in the API documentation.
*/

/* eslint-disable */

const { OPTIONS } = require('./api-type-definitions.cjs');
const downloadLatestAppAndOpenWindowInBackground = require('./src/downloadLatestAppAndOpenWindowInBackground/index.cjs');

function stub () {}

const nwSplasherAutoUpdate = {
downloadLatestAppAndOpenWindowInBackground,
/**
* Checks for updates. Downloads zip and extracts it if
* new version is available. Launches a window pointed
* to the latest version.
* Sets the current working directory (process.cwd) to the latest downloaded/extracted app version.
*/
setCurrentWorkingDirectory: function () {
console.log('This is a stub');
},
/**
* Ran from the new app window. This will tell the splash window to close itself. Then displays the new window.
*
* @param {OPTIONS} options The user's options object
* @param {OPTIONS} options Users options object.
*/
downloadLatestAppAndOpenWindowInBackground,
setCurrentWorkingDirectory: function () {},
closeSplashAndShowApp: function (options) {
options = {
// Must match the port number used in the splash.html
port: 4443
};
console.log(options);
console.log('This is a stub');
},
/**
* Deletes past downloaded app versions, leaving the latest in place.
*/
deletePastVersions: function () {
console.log('This is a stub');
}
Expand Down

0 comments on commit 718e326

Please sign in to comment.