Skip to content
Browse files

Merged updates from nrstott (for some reason pull didn't work)

  • Loading branch information...
1 parent b4978ac commit bff761a0b48be9e28ab4ad1778187633ad47ac04 @kriszyp committed Jul 24, 2010
Showing with 13 additions and 5 deletions.
  1. +5 −4 lib/jsgi/transporter.js
  2. +8 −1 package.json
View
9 lib/jsgi/transporter.js
@@ -10,11 +10,12 @@ exports.Transporter = function(options, app) {
});
}),
loader = options.loader || function(id){
- var file = require("file");
+ var FS = require("fs"),
+ PATH = require("path");
for (var i = 0; i < paths.length; i++){
- var path = file.join(paths[i], id);
- if(file.isFile(path)){
- return file.read(path);
+ var path = PATH.join(paths[i], id);
+ if(PATH.existsSync(path)){
+ return FS.readFileSync(path, "ascii");
}
}
},
View
9 package.json
@@ -9,5 +9,12 @@
],
"githubName": "transporter",
"type": "zip",
- "location": "http://github.com/kriszyp/transporter/zipball/master"
+ "location": "http://github.com/kriszyp/transporter/zipball/master",
+ "overlay": {
+ "npm": {
+ "directories": { "lib": "./lib" },
+ "main": "./lib/jsgi/transporter",
+ "version": "0.0.1"
+ }
+ }
}

0 comments on commit bff761a

Please sign in to comment.
Something went wrong with that request. Please try again.