Socket
Socket
Sign inDemoInstall

glob-watcher

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob-watcher - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

1

index.js

@@ -24,2 +24,3 @@ var gaze = require('gaze');

watcher.on('ready', out.emit.bind(out, 'ready'));
watcher.on('nomatch', out.emit.bind(out, 'nomatch'));

@@ -26,0 +27,0 @@ out.end = function(){

16

package.json
{
"name": "glob-watcher",
"description": "Watch globs",
"version": "0.0.3",
"version": "0.0.4",
"homepage": "http://github.com/wearefractal/glob-watcher",

@@ -10,12 +10,12 @@ "repository": "git://github.com/wearefractal/glob-watcher.git",

"dependencies": {
"gaze": "~0.4.3"
"gaze": "^0.5.0"
},
"devDependencies": {
"mocha": "~1.17.0",
"should": "~2.1.1",
"mocha": "^1.17.0",
"should": "^2.1.1",
"mocha-lcov-reporter": "0.0.1",
"coveralls": "~2.6.1",
"istanbul": "~0.2.3",
"rimraf": "~2.2.5",
"jshint": "~2.4.1"
"coveralls": "^2.6.1",
"istanbul": "^0.2.3",
"rimraf": "^2.2.5",
"jshint": "^2.4.1"
},

@@ -22,0 +22,0 @@ "scripts": {

@@ -31,3 +31,3 @@ # glob-watcher [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url]

var watcher = watch(["./*.js", "!./something.js"]);
watcher.on('changed', function(evt) {
watcher.on('change', function(evt) {
// evt has what file changed and all that jazz

@@ -34,0 +34,0 @@ });

@@ -33,2 +33,11 @@ var watch = require('../');

it('should emit nomatch via EE', function(done) {
var fname = join(__dirname, "./doesnt_exist_lol/temp.coffee");
var watcher = watch(fname);
watcher.on('nomatch', function() {
done();
});
});
it('should return a valid file struct via callback', function(done) {

@@ -35,0 +44,0 @@ var expectedName = join(__dirname, "./fixtures/stuff/test.coffee");

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc