Comparing version 0.8.0 to 0.8.1
{ | ||
"name": "sajari", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "JavaScript SDK for access to the Sajari search API", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -7,3 +7,5 @@ var isArray = require('./utils/isArray'); | ||
function query(options) { | ||
options = options || {}; | ||
if (options === undefined) { | ||
options = {}; | ||
} | ||
this.options = options; | ||
@@ -305,6 +307,8 @@ if (this.se === undefined) { | ||
} | ||
this.options.attrs.push({ | ||
key: key, | ||
value: value | ||
}); | ||
if (key !== undefined && value !== undefined) { | ||
this.options.attrs.push({ | ||
key: key, | ||
value: value | ||
}); | ||
} | ||
return this; | ||
@@ -324,6 +328,8 @@ }, | ||
for (var k in data) { | ||
this.options.attrs.push({ | ||
key: k, | ||
value: data[k] | ||
}); | ||
if (k !== undefined && data[k] !== undefined) { | ||
this.options.attrs.push({ | ||
key: k, | ||
value: data[k] | ||
}); | ||
} | ||
} | ||
@@ -330,0 +336,0 @@ return this; |
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
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
37555
1067