Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit 679e827

Browse files
committed
fix: fix default parameter overrideQueries
1 parent 6cd57ba commit 679e827

File tree

9 files changed

+23
-17
lines changed

9 files changed

+23
-17
lines changed

dist/apisearch.js

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.node.js

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.node.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/apisearch.node.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:min": "webpack --config ./webpack.prod.js",
1111
"dist": "npm t; rm -rf ./dist/*; npm run build && npm run build:min",
1212
"test": "mocha --compilers js:babel-core/register && eslint --quiet ./src/**/*.js",
13-
"cover": "nyc npm test"
13+
"cover": "nyc npm test; rm -rf .nyc_output;"
1414
},
1515
"license": "MIT",
1616
"author": "alexhoma <alexcm.14@gmail.com>",

src/Http/HttpClient.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ export default class HttpClient {
2020
* @returns {Promise}
2121
*/
2222
query(query) {
23-
// check if query exists in cache store
24-
// return promise with the cached value if key exists
25-
// if not exists, fetch the data
23+
/**
24+
* Check if query exists in cache store
25+
* return promise with the cached value if key exists
26+
* if not exists, fetch the data
27+
*/
2628
if (this.cache) {
2729
let cachedResponse = this.cache.get(query.url);
2830
if (cachedResponse) {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = function({
2222
endpoint: '//puntmig.net',
2323
apiVersion: 'v1',
2424
timeout: 10000,
25-
cancelToken: true,
25+
overrideQueries: true,
2626
...options,
2727
cache: {
2828
inMemory: true,

0 commit comments

Comments
 (0)