diff --git a/lib/peapod.js b/lib/peapod.js index 9c67e05..af8e043 100755 --- a/lib/peapod.js +++ b/lib/peapod.js @@ -162,18 +162,18 @@ Peapod.prototype.authenticate = function (callback) { Peapod.prototype.search = function (query, callback) { var params = { - 'facet': 'singleRootCat,brands,nutrition,specials,newArrivals', + 'facet': 'singleRootCat,brands,nutrition,specials,newArrivals,privateLabel', 'facetExcludeFilter': 'true', 'filter': '', 'flags': 'true', 'keywords': query, 'nutrition': 'true', 'rows': '120', - 'sort': 'bestMatch+asc', + 'sort': 'bestMatch asc', 'start': '0' }; - this.request('GET', 'v2.0/user/products', params, function (err, body, response) { + this.request('GET', 'v3.0/user/products', params, function (err, body, response) { if (err) { callback(err, null); } else { diff --git a/package.json b/package.json index a5dc9e9..a9dc5f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "peapod", - "version": "0.0.1", + "name": "peapod-v3", + "version": "0.0.3", "description": "A library for accessing the unofficial Peapod API.", "main": "index.js", "repository": { @@ -17,6 +17,7 @@ }, "dependencies": { "async": "^1.5.0", + "node-uuid": "^1.4.8", "request": "~2.67.0" }, "devDependencies": {