diff --git a/lib/nodeQuery.js b/lib/nodeQuery.js index 8373afe..77920f8 100644 --- a/lib/nodeQuery.js +++ b/lib/nodeQuery.js @@ -331,6 +331,8 @@ module.exports.middleware = function (client, conn, fn) { res = conn, next = fn; if (module.exports.debug) console.log('express middleware loaded', req.url); + return Browserify(pkg); + } else { if (module.exports.debug) console.log('dnode middleware loaded'); fns.forEach(function (fn) { @@ -341,8 +343,11 @@ module.exports.middleware = function (client, conn, fn) { module.exports.use = function (fn) { fns.push(fn); + return this; }; +module.exports.use(module.exports); + if (!module.exports.debug) pkg.filter = require('uglify-js'); module.exports.bundle = Browserify(pkg); diff --git a/lib/querystring.js b/lib/querystring.js deleted file mode 100644 index e69de29..0000000 diff --git a/package.json b/package.json index cf87c46..b390b8f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "nodeQuery", "description": "DOM manipulation from the server.", "author": "Thomas Blobaum", - "version": "0.0.8-3", + "version": "0.0.8-5", "main": "index.js", "keywords": [ "DOM",