Permalink
Browse files

existsSync blah

  • Loading branch information...
1 parent 1400427 commit 5de95615b510559fa34af7a512fa673cfb4db030 @substack committed Aug 30, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −1 index.js
  2. +1 −1 package.json
View
@@ -1,6 +1,7 @@
var fs = require('fs');
var path = require('path');
var crypto = require('crypto');
+var existsSync = fs.existsSync || path.existsSync;
var mkdirp = require('mkdirp');
var detective = require('detective');
@@ -9,7 +10,7 @@ module.exports = function (cacheFile) {
mkdirp.sync(path.dirname(cacheFile), 0700);
var cache = {};
- if (path.existsSync(cacheFile)) {
+ if (existsSync(cacheFile)) {
var body = fs.readFileSync(cacheFile);
try {
cache = JSON.parse(body);
View
@@ -1,7 +1,7 @@
{
"name" : "deputy",
"description" : "caching layer for detective",
- "version" : "0.0.3",
+ "version" : "0.0.4",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/node-deputy.git"

0 comments on commit 5de9561

Please sign in to comment.