ebay-lookup
Advanced tools
Comparing version 0.1.0 to 0.2.0
11
index.js
@@ -109,2 +109,7 @@ /** | ||
var defaultCondition = 'Unspecified'; | ||
Ebay.prototype.condition = function (cond) { | ||
return this._condition = capitalize(cond), this; | ||
}; | ||
Ebay.prototype.done = function (cb) { | ||
@@ -125,2 +130,4 @@ return request | ||
.query({'itemFilter(0).value(0)': this.listingType || defaultListing}) | ||
.query({'itemFilter(1).name': 'Condition'}) | ||
.query({'itemFilter(1).value(0)': this._condition || defaultCondition}) | ||
.end(function (err, res) { | ||
@@ -197,1 +204,5 @@ if (err) return cb(err); | ||
}; | ||
var capitalize = function (str) { | ||
return str.slice(0,1).toUpperCase() + str.slice(1) | ||
}; |
{ | ||
"name": "ebay-lookup", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3
t.js
@@ -6,5 +6,6 @@ var ebay = require('./') | ||
.id('UrgeIOGm-6ef3-4c31-9b0a-2425f3a4b887') | ||
.country('DE') | ||
.country('US') | ||
.affiliate('5337468037') | ||
.type('fixed') | ||
.condition('new') | ||
.done(function (err, res) { | ||
@@ -11,0 +12,0 @@ console.dir(err); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25203869
201
7
1