Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "amble", | ||
"description": "a nice watcher for software development", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"author": "Spencer Kelly <spencermountain@gmail.com> (http://spencermounta.in)", | ||
@@ -12,10 +12,10 @@ "repository": { | ||
"bin": { | ||
"amble":"./bin/amble.js" | ||
}, | ||
"preferGlobal": true, | ||
"amble": "./bin/amble.js" | ||
}, | ||
"preferGlobal": true, | ||
"scripts": {}, | ||
"dependencies": { | ||
"chalk": "^2.1.0", | ||
"gaze": "^1.1.2", | ||
"shelljs": "^0.7.8" | ||
"chalk": "2.4.0", | ||
"gaze": "1.1.2", | ||
"shelljs": "0.8.1" | ||
}, | ||
@@ -22,0 +22,0 @@ "devDependencies": {}, |
@@ -29,6 +29,4 @@ var chalk = require('chalk'); | ||
var str = ' ' + rando() | ||
// str += ' ' // + rando() | ||
// str += ' ' + rando() | ||
return str + '\n' | ||
}; | ||
module.exports = banner |
var exec = require('shelljs').exec | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
@@ -15,6 +14,4 @@ var gaze = require('gaze'); | ||
var watch = function(file) { | ||
//understand relative links | ||
//first, understand relative links | ||
var abs = path.resolve(cwd, file); | ||
@@ -26,3 +23,3 @@ var obj = { | ||
//run our exec function | ||
var doit = function() { | ||
@@ -34,8 +31,14 @@ console.log(banner()); | ||
}; | ||
//set-up the watcher | ||
var watch = obj.watch + '/**/*.js' | ||
var init = obj.watch + '/**/*.js' | ||
var node_modules = '!**/node_modules/**' | ||
var git = '!**/.git/**' | ||
gaze([watch, node_modules, git], options, function(err) { | ||
//do it right-away | ||
var rel = path.relative(cwd, init); | ||
console.log(chalk.grey('watching: ') + chalk.blue(rel)) | ||
console.log('\n\n') | ||
doit(); | ||
gaze([init, node_modules, git], options, function(err) { | ||
if (err) { | ||
@@ -47,3 +50,3 @@ console.log(err); | ||
}); | ||
// // On changed/added/deleted | ||
//On changed/added/deleted | ||
this.on('all', function() { | ||
@@ -53,10 +56,4 @@ doit(); | ||
}); | ||
//do it right-away | ||
var rel = path.relative(cwd, watch); | ||
console.log(chalk.grey('watching: ') + chalk.blue(rel)) | ||
console.log('\n\n') | ||
doit(); | ||
} | ||
module.exports = watch |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
4037
6
0
81
+ Addedchalk@2.4.0(transitive)
+ Addedgaze@1.1.2(transitive)
+ Addedshelljs@0.8.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedgaze@1.1.3(transitive)
- Removedshelljs@0.7.8(transitive)
Updatedchalk@2.4.0
Updatedgaze@1.1.2
Updatedshelljs@0.8.1