xml-twig 1.3.14 → 1.3.17

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/twig.js +2 -2
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "dependencies": {
3
- "sax": "^1.3.0",
3
+ "sax": "^1.4.1",
4
4
  "xml-writer": "^1.7.0"
5
5
  },
6
6
  "name": "xml-twig",
7
7
  "description": "Node module for processing huge XML documents in tree mode",
8
- "version": "1.3.14",
8
+ "version": "1.3.17",
9
9
  "main": "twig.js",
10
10
  "directories": {
11
11
  "doc": "doc"
12
12
  },
13
13
  "devDependencies": {
14
- "jsdoc-to-markdown": "^8.0.1",
15
- "luxon": "^3.4.4",
14
+ "jsdoc-to-markdown": "^9.0.0",
15
+ "luxon": "^3.5.0",
16
16
  "node-expat": "^2.4.1",
17
17
  "saxophone": "^0.8.0"
18
18
  },
package/twig.js CHANGED
@@ -415,7 +415,7 @@ function onStart(binds, node, attrs) {
415
415
  if (typeof hndl.tag === 'string' && name === hndl.tag) {
416
416
  elt.pin();
417
417
  break;
418
- } else if (typeof Array.isArray(hndl.tag) && hndl.tag.includes(name)) {
418
+ } else if (Array.isArray(hndl.tag) && hndl.tag.includes(name)) {
419
419
  elt.pin();
420
420
  break;
421
421
  } else if (hndl.tag instanceof RegExp && hndl.tag.test(name)) {
@@ -471,7 +471,7 @@ function onClose(handler, options, name) {
471
471
  if (typeof hndl.function === 'function') hndl.function(tree);
472
472
  if (typeof hndl.event === 'string') parser.emit(hndl.event, tree);
473
473
  purge = false;
474
- } else if (typeof Array.isArray(hndl.tag) && hndl.tag.includes(name)) {
474
+ } else if (Array.isArray(hndl.tag) && hndl.tag.includes(name)) {
475
475
  if (typeof hndl.function === 'function') hndl.function(current ?? tree);
476
476
  if (typeof hndl.event === 'string') parser.emit(hndl.event, current ?? tree);
477
477
  purge = false;