diff --git a/package.json b/package.json index 1782746a2adf6b1c347821f0734b3f7c6a591734..27626be77bb331aa0ec85c5a2eb1e661995e25db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@d-ptb/dcc-js", - "version": "1.4.2", + "version": "1.4.3", "license": "EUPL-1.2", "contributors": [ "Jan Loewe <jan.loewe@ptb.de>", diff --git a/src/DCC.ts b/src/DCC.ts index 8a01a0091041f2e49af3cfa86ff98700bcb92928..66912d4c64163a3a9a077828a17ddb5867c2b373 100644 --- a/src/DCC.ts +++ b/src/DCC.ts @@ -150,12 +150,12 @@ export class RefTypeDefinitionType extends DCCXMLElement { export class ReportAmendedSubstitutedType extends DCCXMLElement { _attr: IIdAndRefTypeAttributes; - typeOfChange: TextType; + typeOfChange: DCCXMLElement; replacedUniqueIdentifier: DCCXMLElement; constructor(el: Partial<ReportAmendedSubstitutedType> = {}) { super(el); - this.typeOfChange = new TextType(el.typeOfChange); + this.typeOfChange = new DCCXMLElement(el.typeOfChange); this.replacedUniqueIdentifier = new DCCXMLElement(el.replacedUniqueIdentifier); } }