diff --git a/lib/Command.js b/lib/Command.js index f91b4cb..7896bff 100644 --- a/lib/Command.js +++ b/lib/Command.js @@ -4,7 +4,7 @@ var Data = require('./Data.js'), URL = require('url'), fs = require('fs'), qs = require('querystring'), - formFunctions = require('./form-functions.js'), + formFunctions = require('./Form.js'), cmdDir = __dirname + '/commands/'; /** @@ -361,7 +361,7 @@ Command.prototype.request = function (method, context, href, params, callback) { opts.proxy = proxies[proxies.index]; } - + instance.queueRequest(url, opts, function (err, res, document) { if (err !== null) { diff --git a/lib/form-functions.js b/lib/Form.js similarity index 100% rename from lib/form-functions.js rename to lib/Form.js diff --git a/lib/commands/login.js b/lib/commands/login.js index 79a3081..37ccfa7 100644 --- a/lib/commands/login.js +++ b/lib/commands/login.js @@ -12,7 +12,7 @@ * @see {@link Command.fail} */ -var form = require('../form-functions.js'); +var form = require('../Form.js'); function Login(context, data, next, done) { var user = this.args[0], diff --git a/lib/commands/paginate.js b/lib/commands/paginate.js index 2a75a46..1ab2f5d 100644 --- a/lib/commands/paginate.js +++ b/lib/commands/paginate.js @@ -21,7 +21,7 @@ * @instance */ -var form = require('../form-functions.js'); +var form = require('../Form.js'); function Paginate(context, data, next, done) { var selector = this.selector, diff --git a/lib/commands/submit.js b/lib/commands/submit.js index d5a323f..b0a8105 100644 --- a/lib/commands/submit.js +++ b/lib/commands/submit.js @@ -11,7 +11,7 @@ * @instance */ -var form = require('../form-functions.js'); +var form = require('../Form.js'); function Submit(context, data, next, done) { var node = context.get(this.selector), diff --git a/package.json b/package.json index 598b614..08a73c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "osmosis", - "version": "1.0.2", + "version": "1.1.0", "description": "Web scraper for NodeJS", "keywords": [ "web",