Skip to content

Commit

Permalink
fix(deps): resolve all security warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Jun 9, 2024
1 parent daa2436 commit fd6c0d8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1,382 deletions.
4 changes: 2 additions & 2 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//updater will copy itself to origin directory
//updater will run app
var pkg = require('./package.json');
var request = require('request');
var axios = require('axios');
var url = require('url');
var path = require('path');
var os = require('os');
Expand All @@ -37,7 +37,7 @@


if(!copyPath){
request.get(url.resolve(pkg.manifestUrl, '/version/'+ pkg.version));
axios.get(url.resolve(pkg.manifestUrl, '/version/'+ pkg.version));
document.getElementById('version').innerHTML = 'current version ' + pkg.version;
newVersionCheckIntervalId = setInterval(function(){
if(!d && !tryingForNewVersion) {
Expand Down
17 changes: 3 additions & 14 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
var exec = require('child_process').exec;
var exec = require('node:child_process').exec;
var fs = require('node:fs');

var ncp = require('ncp');
var fs = require('fs');

var isWin = /^win/.test(process.platform);
var isMac = /^darwin/.test(process.platform);
Expand Down Expand Up @@ -87,23 +88,12 @@ module.exports = function(grunt){
dest: dest + '/win/'
}
},
jsdoc2md: {
withOptions: {
options: {
index: false,
template: "docs/README.hbs"
},
src: "app/updater.js",
dest: "README.md"
}
}
});
grunt.loadNpmTasks('grunt-nw-builder');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-jsdoc-to-markdown');

grunt.registerTask('packageMacZip', function(){
var done = this.async();
Expand Down Expand Up @@ -153,7 +143,6 @@ module.exports = function(grunt){
if(isWin) buildFlow.push('copy:win');

grunt.registerTask('buildapp', buildFlow);
grunt.registerTask('docs', 'jsdoc2md');

grunt.registerTask('default', 'mochaTest');
};
Loading

0 comments on commit fd6c0d8

Please sign in to comment.