Skip to content

Commit f56e8fa

Browse files
authored
Update to SUSHI 3.4.0 and bump to 2.1.2 (#243)
* Update to SUSHI 3.4.0 * Bump to v2.1.2
1 parent 68932c9 commit f56e8fa

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gofsh",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "GoFSH is a FHIR Shorthand (FSH) decompiler, able to convert formal FHIR definitions from JSON to FSH.",
55
"main": "dist/index.js",
66
"scripts": {
@@ -76,7 +76,7 @@
7676
"fhir-package-loader": "^0.5.0",
7777
"flat": "^5.0.2",
7878
"fs-extra": "^9.0.1",
79-
"fsh-sushi": "^3.3.3",
79+
"fsh-sushi": "^3.4.0",
8080
"ini": "^1.3.8",
8181
"lodash": "^4.17.21",
8282
"readline-sync": "^1.4.10",

src/processor/AliasProcessor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export class AliasProcessor {
4949
const ctx = parser.doc() as sushiImport.DocContext;
5050
ctx.entity().forEach(entity => {
5151
if (entity.alias()) {
52-
const name = entity.alias().SEQUENCE()[0].getText();
53-
let value = entity.alias().SEQUENCE()[1]?.getText();
52+
const name = entity.alias().name().getText();
53+
let value = entity.alias().SEQUENCE()?.getText();
5454
// When the url contains a fragment (http://example.org#fragment), the grammar will read it as a
5555
// CODE, so we also accept that for the value here
5656
if (!value && entity.alias().CODE()) {

0 commit comments

Comments
 (0)