Comparing version 0.3.4 to 0.3.5
@@ -112,4 +112,4 @@ var Q = require('q'); | ||
// Always request for one more concept than has been asked for, as we will ignore the first result (which is the concept that has been asked for!) | ||
var url = this.semanticNewsApiHost+'/concepts/co-occurrences/?uri='+encodeURIComponent(conceptUri)+'&limit='+encodeURIComponent(limit + 1)+'&apikey='+encodeURIComponent(this.apiKey); | ||
// Always request 2 more concepts than has been asked for, as we will ignore the first result (which is the concept that has been asked for!) *and* sometimes the API returns one less than requested. | ||
var url = this.semanticNewsApiHost+'/concepts/co-occurrences/?uri='+encodeURIComponent(conceptUri)+'&limit='+encodeURIComponent(limit + 2)+'&apikey='+encodeURIComponent(this.apiKey); | ||
@@ -116,0 +116,0 @@ if (conceptTypeUris instanceof Array) { |
@@ -9,3 +9,3 @@ { | ||
"description": "The newsQuery NPM package provides a simple interface to BBC News Labs APIs", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"main": "./lib/newsquery.js", | ||
@@ -30,6 +30,8 @@ "keywords": [ | ||
"devDependencies" : { | ||
"mocha" : "1.19.0" | ||
"mocha": "1.19.0", | ||
"parallel-mocha": "*" | ||
}, | ||
"scripts" : { | ||
"test" : "mocha test/*.js" | ||
"test": "mocha test/*.js", | ||
"test-parallel": "parallel-mocha test/*.js" | ||
}, | ||
@@ -36,0 +38,0 @@ "engines": { |
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
26992
2