Skip to content

Commit

Permalink
Merge pull request #1 from nellh/release-bids-fixes
Browse files Browse the repository at this point in the history
Release 0.6.9 with BIDS validator fixes
  • Loading branch information
nellh authored Oct 30, 2024
2 parents 0e406b0 + 8ac5ec5 commit a1fa97f
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 29 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
This is a fork of the [upstream](https://github.com/rii-mango/NIFTI-Reader-JS/) with fixes for the [BIDS validator](https://jsr.io/@bids/validator).

# NIFTI-Reader-JS
A JavaScript [NIfTI](http://nifti.nimh.nih.gov/) file format reader. This reader supports both NIfTI-1 and NIfT1-2 file formats, both compressed (.nii.gz) and uncompressed (.nii).

Expand Down
2 changes: 1 addition & 1 deletion __tests__/nifti-not-nifti.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('NIFTI-Reader-JS', function () {
});

it('readHeader() should return null', function () {
assert.equal(null, readHeader(data));
assert.throws(() => readHeader(data), 'That file does not appear to be NIFTI!');
});
});
});
2 changes: 1 addition & 1 deletion dist/__tests__/nifti-not-nifti.spec.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/__tests__/nifti-not-nifti.spec.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/src/nifti.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export declare function decompress(data: ArrayBuffer): ArrayBufferLike;
/**
* Reads and returns the header object.
* @param {ArrayBuffer} data
* @returns {NIFTI1|NIFTI2|null}
* @returns {NIFTI1|NIFTI2}
*/
export declare function readHeader(data: ArrayBuffer, isHdrImgPairOK?: boolean): NIFTI1 | NIFTI2 | null;
export declare function readHeader(data: ArrayBuffer, isHdrImgPairOK?: boolean): NIFTI1 | NIFTI2;
/**
* Returns true if this header contains an extension.
* @param {NIFTI1|NIFTI2} header
Expand Down
2 changes: 1 addition & 1 deletion dist/src/nifti.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/src/nifti.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/nifti.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/utilities.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions dist/src/utilities.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a1fa97f

Please sign in to comment.