Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Node.js v0.8 fix :) #12

Closed
wants to merge 1 commit into from

2 participants

@pahen

No description provided.

@substack
Owner

Got fixed at some point, but thanks for your pull request!

@substack substack closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 17, 2012
  1. @pahen
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  index.js
View
3  index.js
@@ -16,8 +16,9 @@ exports.sync = function (x, opts) {
if (core[x]) return x;
if (!opts) opts = {};
+ var exists = fs.existsSync || path.existsSync;
var isFile = opts.isFile || function (file) {
- return path.existsSync(file) && fs.statSync(file).isFile()
+ return exists(file) && fs.statSync(file).isFile()
};
var readFileSync = opts.readFileSync || fs.readFileSync;
Something went wrong with that request. Please try again.