musicxml-io 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -244,7 +244,8 @@ function decodeTree(nodes) {
244
244
  }
245
245
  var TXML_OPTIONS = { noChildNodes: [] };
246
246
  function parse(xmlString) {
247
- const parsed = _txml.parse.call(void 0, xmlString, TXML_OPTIONS);
247
+ const cleanedXml = xmlString.replace(/<\?(?!xml\s)[^?]*\?>/g, "");
248
+ const parsed = _txml.parse.call(void 0, cleanedXml, TXML_OPTIONS);
248
249
  decodeTree(parsed);
249
250
  let scorePartwiseVersion;
250
251
  let scorePartwise;
package/dist/index.mjs CHANGED
@@ -244,7 +244,8 @@ function decodeTree(nodes) {
244
244
  }
245
245
  var TXML_OPTIONS = { noChildNodes: [] };
246
246
  function parse(xmlString) {
247
- const parsed = txmlParse(xmlString, TXML_OPTIONS);
247
+ const cleanedXml = xmlString.replace(/<\?(?!xml\s)[^?]*\?>/g, "");
248
+ const parsed = txmlParse(cleanedXml, TXML_OPTIONS);
248
249
  decodeTree(parsed);
249
250
  let scorePartwiseVersion;
250
251
  let scorePartwise;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musicxml-io",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Parse and serialize MusicXML (.xml/.mxl) and ABC notation with high round-trip fidelity",
5
5
  "author": "tan-z-tan",
6
6
  "license": "MIT",