Ejemplo n.º 1
0
 funnel(null, function() {

 _etag = uuid.generate();

 Object.keys(_watched).forEach(function(path) {
 fs.unwatchFile(path); });

 _watched = { };
 dependencies = { }; });};
Ejemplo n.º 2
0
	funnel(null, function() {
		// one of the files changed: regenerate etag and reset cache
		_etag = uuid.generate();
		// unwatch all files because list may change
		Object.keys(_watched).forEach( function(path) {
			fs.unwatchFile(path);
		});
		_watched = {};
		dependencies = {};
	});
Ejemplo n.º 3
0
  if ((cut <= 0)) {
    throw new Error(("too many parent dirs" + rel))
  };
  path = path.substring(0, cut);
  while ((rel.indexOf("./.") == 0)) {
    rel = rel.substring(2);;
  };
  if ((rel.indexOf("../") == 0)) {
    return _combine(path, rel.substring(1))
  };
  if ((rel.indexOf("./") != 0)) {
    return ((modulesDir + "/") + rel)
  };
  return (path + rel.substring(1));
};
var _etag = uuid.generate();
var _watched = {
};
function _watcher(stats) {
  funnel(null, function __1() {
    _etag = uuid.generate();
    Object.keys(_watched).forEach(function __1(path) {
      fs.unwatchFile(path);
    });
    _watched = {
    };
    dependencies = {
    };
  });
};
exports.etag = function __1() {