Permalink
Browse files

Push to 3.0.0beta7

Fixed critical middleware bug introduced in 3.0.0beta6
  • Loading branch information...
1 parent 7b2b70b commit 8efd128495b17191215a7b2c1837848ea1511b44 @bminer committed Jan 11, 2013
Showing with 5 additions and 5 deletions.
  1. +3 −3 lib/blade.js
  2. +1 −1 package.json
  3. +1 −1 smart.json
View
@@ -110,7 +110,7 @@ function middleware(sourcePath, options) {
{
var expires = new Date();
expires.setFullYear(expires.getFullYear() + 1);
- req.assetFingerprint(pathname, pathname + "?v=" + exports.version,
+ req.assetFingerprint(path, path + "?v=" + exports.version,
{"etag": exports.version, "expires": expires});
}
}
@@ -125,8 +125,8 @@ function middleware(sourcePath, options) {
if(err) return next(err);
data = bladeutil.uglify(data.toString(), true);
fileCache["runtime"] = data;
- res.type("application/javascript").send(data);
staticAsset(req, pathname);
+ res.type("application/javascript").send(data);
});
}
else if(options.pluginsMount &&
@@ -144,8 +144,8 @@ function middleware(sourcePath, options) {
if(err) return next(err);
data = bladeutil.uglify(data.toString(), true);
fileCache[fullPath] = data;
- res.type("application/javascript").send(data);
staticAsset(req, pathname);
+ res.type("application/javascript").send(data);
});
}
else if(pathname.substr(0, options.mount.length) == options.mount)
View
@@ -15,7 +15,7 @@
"live binding",
"meteor"
],
- "version": "3.0.0beta6",
+ "version": "3.0.0beta7",
"homepage": "https://github.com/bminer/node-blade",
"repository": {
"type": "git",
View
@@ -3,7 +3,7 @@
"author": "Blake Miner <miner.blake@gmail.com> (http://www.blakeminer.com/)",
"description": "Blade - HTML Template Compiler, inspired by Jade & Haml",
"homepage": "https://github.com/bminer/node-blade",
- "version": "3.0.0beta6",
+ "version": "3.0.0beta7",
"git": "https://github.com/bminer/node-blade.git",
"packages": {
}

0 comments on commit 8efd128

Please sign in to comment.