Skip to content

Commit

Permalink
Update fast-xml dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Oct 13, 2023
1 parent 17e9332 commit 98d4877
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"config": "^3.3.3",
"escape-html": "^1.0.3",
"express": "^4.17.1",
"fast-xml-parser": "^3.17.6",
"fast-xml-parser": "^4.3.2",
"hls.js": "^0.14.17",
"irc-upd": "^0.11.0",
"js-yaml": "^3.14.1",
Expand Down
8 changes: 5 additions & 3 deletions src/backends/penta/PentabarfParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import * as parser from 'fast-xml-parser';
import { XMLParser } from "fast-xml-parser";
import { IAuditorium, IConference, IInterestRoom, IPerson, ITalk, Role } from "../../models/schedule";
import moment from "moment";
import { RoomKind } from "../../models/room_kinds";
Expand Down Expand Up @@ -133,11 +133,13 @@ export class PentabarfParser {
public readonly interestRooms: IInterestRoom[];

constructor(rawXml: string, prefixConfig: IPrefixConfig) {
this.parsed = parser.parse(rawXml, {
attrNodeName: "attr",
const parser = new XMLParser({
attributesGroupName: "attr",
attributeNamePrefix : "@_",
textNodeName: "#text",
ignoreAttributes: false,
});
this.parsed = parser.parse(rawXml);

this.auditoriums = [];
this.talks = [];
Expand Down

0 comments on commit 98d4877

Please sign in to comment.