Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #55 from wibuni/master

Prefer fs.exists to path.exists
  • Loading branch information...
commit 1034bd6f8ff13cb54427f3cb64f551a7d3eff090 2 parents e42d547 + a03f281
@fb55 fb55 authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  lib/require-analyzer.js
  2. +1 −1  package.json
View
3  lib/require-analyzer.js
@@ -8,6 +8,7 @@
var util = require('util'),
path = require('path'),
fs = require('fs'),
+ exists = fs.exists || path.exists,
events = require('events'),
fork = require('child_process').fork,
readInstalled = require('read-installed'),
@@ -375,7 +376,7 @@ analyzer.package = function (options, callback) {
}
function checkFile(file) {
- path.exists(file, fileExists)
+ exists(file, fileExists)
}
function fileExists(exists) {
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "require-analyzer",
"description": "Determine dependencies for a given node.js file, directory tree, or module in code or on the command line",
- "version": "0.4.1",
+ "version": "0.4.1-1",
"author": "Nodejitsu Inc. <info@nodejitsu.com>",
"maintainers": [
"indexzero <charlie@nodejitsu.com>",
Please sign in to comment.
Something went wrong with that request. Please try again.