@usearazzo/validator 1.0.1-alpha.17 → 1.0.1-alpha.18

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.1-alpha.18](https://github.com/usearazzo/arazzo-toolkit/compare/v1.0.1-alpha.17...v1.0.1-alpha.18) (2026-10-30)
7
+
8
+ **Note:** Version bump only for package @usearazzo/validator
9
+
6
10
  ## [1.0.1-alpha.17](https://github.com/usearazzo/arazzo-toolkit/compare/v1.0.1-alpha.16...v1.0.1-alpha.17) (2026-10-29)
7
11
 
8
12
  **Note:** Version bump only for package @usearazzo/validator
@@ -198137,7 +198137,7 @@ const Ast = function fnast() {
198137
198137
  xml += `<root nodes="${records.length / 2}" characters="${chars.length}">\n`;
198138
198138
  xml += `<!-- input string -->\n`;
198139
198139
  xml += indent(depth + 2);
198140
- xml += utils.charsToString(chars);
198140
+ xml += utils.charsToXmlString(chars);
198141
198141
  xml += '\n';
198142
198142
  records.forEach((rec) => {
198143
198143
  if (rec.state === id.SEM_PRE) {
@@ -198145,7 +198145,7 @@ const Ast = function fnast() {
198145
198145
  xml += indent(depth);
198146
198146
  xml += `<node name="${rec.name}" index="${rec.phraseIndex}" length="${rec.phraseLength}">\n`;
198147
198147
  xml += indent(depth + 2);
198148
- xml += utils.charsToString(chars, rec.phraseIndex, rec.phraseLength);
198148
+ xml += utils.charsToXmlString(chars, rec.phraseIndex, rec.phraseLength);
198149
198149
  xml += '\n';
198150
198150
  } else {
198151
198151
  xml += indent(depth);
@@ -198527,6 +198527,14 @@ const utilities = {
198527
198527
  }
198528
198528
  return String.fromCodePoint(...subChars);
198529
198529
  },
198530
+ charsToXmlString: (chars, beg, len) =>
198531
+ utilities
198532
+ .charsToString(chars, beg, len)
198533
+ .replace(/&/g, '&amp;')
198534
+ .replace(/</g, '&lt;')
198535
+ .replace(/>/g, '&gt;')
198536
+ .replace(/'/g, '&apos;')
198537
+ .replace(/"/g, '&quot;'),
198530
198538
  };
198531
198539
 
198532
198540
  const identifiers = {