From 33eeebfbb1107a28ea59b940ec58499bd08b0b07 Mon Sep 17 00:00:00 2001 From: Joshua Holbrook Date: Fri, 6 Jul 2012 21:09:04 -0800 Subject: [PATCH] [fix] fs.existsSync was moved to fs.existsSync --- lib/middleware/assets.js | 2 +- lib/resolver/bliss.js | 2 +- lib/resolver/locale.js | 2 +- lib/resolver/script.js | 2 +- lib/resolver/yaml.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/middleware/assets.js b/lib/middleware/assets.js index 7a10367..905ff6e 100644 --- a/lib/middleware/assets.js +++ b/lib/middleware/assets.js @@ -19,7 +19,7 @@ module.exports = function(options) { var filename; if (compiler.match.test(pathname)) { filename = path.resolve(assetsPath, pathname.replace(compiler.target, compiler.source)); - if (path.existsSync(filename)) { + if (fs.existsSync(filename)) { try { compiler.compileFile(filename, null, function(err, result) { if (err) { diff --git a/lib/resolver/bliss.js b/lib/resolver/bliss.js index 08b5191..41e915f 100644 --- a/lib/resolver/bliss.js +++ b/lib/resolver/bliss.js @@ -31,7 +31,7 @@ module.exports = BlissResolver = (function(_super) { BlissResolver.prototype._load = function(event) { var self, template; self = this; - if (!path.existsSync(self._path)) { + if (!fs.existsSync(self._path)) { return self._destroy(); } else { template = bliss.compileFile(self._path); diff --git a/lib/resolver/locale.js b/lib/resolver/locale.js index b7ac9d7..32dd2bd 100644 --- a/lib/resolver/locale.js +++ b/lib/resolver/locale.js @@ -33,7 +33,7 @@ module.exports = LocaleResolver = (function(_super) { LocaleResolver.prototype._load = function(event) { var current, imports, previous, self; self = this; - if (!path.existsSync(self._path)) { + if (!fs.existsSync(self._path)) { return self._destroy(); } else { require.cache[self._path] = void 0; diff --git a/lib/resolver/script.js b/lib/resolver/script.js index 1abb8e0..b74a61e 100644 --- a/lib/resolver/script.js +++ b/lib/resolver/script.js @@ -21,7 +21,7 @@ module.exports = ScriptResolver = (function(_super) { ScriptResolver.prototype._load = function(event) { var current, imports, previous, self; self = this; - if (!path.existsSync(self._path)) { + if (!fs.existsSync(self._path)) { return self._destroy(); } else { require.cache[self._path] = void 0; diff --git a/lib/resolver/yaml.js b/lib/resolver/yaml.js index 1f4cfa9..a7d2728 100644 --- a/lib/resolver/yaml.js +++ b/lib/resolver/yaml.js @@ -21,7 +21,7 @@ module.exports = YAMLResolver = (function(_super) { YAMLResolver.prototype._load = function(event) { var current, imports, previous, self; self = this; - if (!path.existsSync(self._path)) { + if (!fs.existsSync(self._path)) { return self._destroy(); } else { require.cache[self._path] = void 0;