Skip to content
2 changes: 1 addition & 1 deletion .eslintrc.js
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer a valid code, so I applied the allowed value.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
root: true,
extends: ['airbnb-base', 'prettier'],
rules: {
'import/extensions': "always", // Better for native ES Module usage
'import/extensions': 2, // Better for native ES Module usage
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why the symbol is changed to a magic number? What does 2 mean?

'no-console': 0, // We can remove this later
'no-underscore-dangle': 0,
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
Expand Down
3 changes: 1 addition & 2 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ class DICOMwebClient {
const url = `${this.wadoURL}/studies/${options.studyInstanceUID}/series/${options.seriesInstanceUID}/metadata`;

const request = getRequestOptions(options.request)
return this._httpGetApplicationJson(url, {}, false, withCredentials);
return this._httpGetApplicationJson(url, {}, request);
}

/**
Expand All @@ -1140,7 +1140,6 @@ class DICOMwebClient {
*/
searchForInstances(options = {}) {
let url = this.qidoURL;
let withCredentials = false;
if ('studyInstanceUID' in options) {
url += `/studies/${options.studyInstanceUID}`;
if ('seriesInstanceUID' in options) {
Expand Down
Loading