Skip to content

Commit 214a9ab

Browse files
authored
fix: Missing variable name (#106)
Also fixed a build issue by creating a netlify.toml file. May need some additional fixes on deployment/update of version numbers * fix: Missing variable name * fix: linting issues * fix: Undo format changes * Change to ubuntu-latest for build * fix: node version being used to run * Update to use node package for building * Try to build * fix: build issue * Add netlify toml file to try to update to a newer node version for building * Update publish directory * Update test section
1 parent a362868 commit 214a9ab

File tree

8 files changed

+49
-31
lines changed

8 files changed

+49
-31
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
root: true,
33
extends: ['airbnb-base', 'prettier'],
44
rules: {
5-
'import/extensions': "always", // Better for native ES Module usage
5+
'import/extensions': 2, // Better for native ES Module usage
66
'no-console': 0, // We can remove this later
77
'no-underscore-dangle': 0,
88
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],

.github/workflows/publish-package.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,22 @@ on:
77

88
jobs:
99
publish-package:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu:latest
1111
environment: publish
1212

1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616

17-
- name: Setup Node.js
18-
uses: actions/setup-node@v1
19-
with:
20-
node-version: 16
21-
22-
- name: Install packages
23-
uses: bahmutov/npm-install@v1
17+
- name: Install
18+
uses: oven-sh/setup-bun@v2
19+
run: bun install
2420

2521
- name: Run build
26-
run: npm run build
22+
run: bun run build
2723

2824
- name: Run tests
29-
run: npm run test
25+
run: bun run test
3026

3127
- name: Semantic release
3228
uses: cycjimmy/semantic-release-action@v3

.github/workflows/tests.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,18 @@ on:
66

77
jobs:
88
test:
9-
runs-on: ubuntu-20.04
9+
runs-on: ubuntu-latest
1010

1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v3
14-
15-
- name: Setup Node.js
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: 16
13+
uses: actions/checkout@v4
1914

2015
- name: Install packages
21-
uses: bahmutov/npm-install@v1
16+
uses: oven-sh/setup-bun@v2
17+
run: bun install
2218

2319
- name: Run build
24-
run: npm run build
20+
run: bun run build
2521

2622
- name: Run tests
27-
run: npm run test
23+
run: bun run test

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ bower_components
3131

3232
# Build directory
3333
build/
34+
dist/
3435

3536
# Dependency directories
3637
node_modules/
@@ -56,12 +57,16 @@ typings/
5657

5758
# Yarn lock file
5859
yarn.lock
60+
bun.lock
5961

6062
# dotenv environment variables file
6163
.env
6264

6365
.idea
6466

67+
*.code-workspace
68+
.vscode/
69+
6570
# docker files created by the docker containers for testing
6671
tmp
6772

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ before_script:
1919

2020
script:
2121
- npm install
22+
- echo travis build definition
2223
- npm run build

netlify.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[build]
2+
command = "npm install && npm run build"
3+
publish = "build"
4+
5+
[build.environment]
6+
NODE_VERSION = "20"
7+
NPM_FLAGS = "--legacy-peer-deps" # Optional, useful if you run into dependency resolution issues
8+
9+
[build.lifecycle]
10+
# This will run before the build command
11+
onPostBuild = "npm run test"
12+
13+
[[redirects]]
14+
from = "/*"
15+
to = "/index.html"
16+
status = 200

package-lock.json

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

src/api.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ class DICOMwebClient {
11251125
const url = `${this.wadoURL}/studies/${options.studyInstanceUID}/series/${options.seriesInstanceUID}/metadata`;
11261126

11271127
const request = getRequestOptions(options.request)
1128-
return this._httpGetApplicationJson(url, {}, false, withCredentials);
1128+
return this._httpGetApplicationJson(url, {}, request);
11291129
}
11301130

11311131
/**
@@ -1140,7 +1140,6 @@ class DICOMwebClient {
11401140
*/
11411141
searchForInstances(options = {}) {
11421142
let url = this.qidoURL;
1143-
let withCredentials = false;
11441143
if ('studyInstanceUID' in options) {
11451144
url += `/studies/${options.studyInstanceUID}`;
11461145
if ('seriesInstanceUID' in options) {

0 commit comments

Comments
 (0)