entities 4.5.0 → 5.0.0

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 (113) hide show
  1. package/{lib/decode_codepoint.d.ts → dist/commonjs/decode-codepoint.d.ts} +1 -1
  2. package/dist/commonjs/decode-codepoint.d.ts.map +1 -0
  3. package/{lib/decode_codepoint.js → dist/commonjs/decode-codepoint.js} +14 -13
  4. package/dist/commonjs/decode-codepoint.js.map +1 -0
  5. package/{lib → dist/commonjs}/decode.d.ts +18 -20
  6. package/dist/commonjs/decode.d.ts.map +1 -0
  7. package/{lib → dist/commonjs}/decode.js +122 -144
  8. package/dist/commonjs/decode.js.map +1 -0
  9. package/{lib/esm → dist/commonjs}/encode.d.ts +2 -2
  10. package/dist/commonjs/encode.d.ts.map +1 -0
  11. package/{lib → dist/commonjs}/encode.js +31 -32
  12. package/dist/commonjs/encode.js.map +1 -0
  13. package/{lib/esm → dist/commonjs}/escape.d.ts +2 -2
  14. package/dist/commonjs/escape.d.ts.map +1 -0
  15. package/{lib → dist/commonjs}/escape.js +35 -37
  16. package/dist/commonjs/escape.js.map +1 -0
  17. package/dist/commonjs/generated/decode-data-html.d.ts.map +1 -0
  18. package/{lib → dist/commonjs}/generated/decode-data-html.js +1 -1
  19. package/dist/commonjs/generated/decode-data-html.js.map +1 -0
  20. package/dist/commonjs/generated/decode-data-xml.d.ts.map +1 -0
  21. package/{lib → dist/commonjs}/generated/decode-data-xml.js +1 -1
  22. package/dist/commonjs/generated/decode-data-xml.js.map +1 -0
  23. package/dist/commonjs/generated/encode-html.d.ts.map +1 -0
  24. package/{lib → dist/commonjs}/generated/encode-html.js +4 -4
  25. package/dist/commonjs/generated/encode-html.js.map +1 -0
  26. package/{lib → dist/commonjs}/index.d.ts +6 -6
  27. package/dist/commonjs/index.d.ts.map +1 -0
  28. package/{lib → dist/commonjs}/index.js +41 -39
  29. package/dist/commonjs/index.js.map +1 -0
  30. package/dist/commonjs/package.json +3 -0
  31. package/{lib/esm/decode_codepoint.d.ts → dist/esm/decode-codepoint.d.ts} +1 -1
  32. package/dist/esm/decode-codepoint.d.ts.map +1 -0
  33. package/{lib/esm/decode_codepoint.js → dist/esm/decode-codepoint.js} +9 -8
  34. package/dist/esm/decode-codepoint.js.map +1 -0
  35. package/{lib → dist}/esm/decode.d.ts +18 -20
  36. package/dist/esm/decode.d.ts.map +1 -0
  37. package/{lib → dist}/esm/decode.js +72 -71
  38. package/dist/esm/decode.js.map +1 -0
  39. package/{lib → dist/esm}/encode.d.ts +2 -2
  40. package/dist/esm/encode.d.ts.map +1 -0
  41. package/{lib → dist}/esm/encode.js +24 -24
  42. package/dist/esm/encode.js.map +1 -0
  43. package/{lib → dist/esm}/escape.d.ts +2 -2
  44. package/dist/esm/escape.d.ts.map +1 -0
  45. package/{lib → dist}/esm/escape.js +28 -28
  46. package/dist/esm/escape.js.map +1 -0
  47. package/dist/esm/generated/decode-data-html.d.ts.map +1 -0
  48. package/dist/esm/generated/decode-data-html.js.map +1 -0
  49. package/dist/esm/generated/decode-data-xml.d.ts.map +1 -0
  50. package/dist/esm/generated/decode-data-xml.js.map +1 -0
  51. package/dist/esm/generated/encode-html.d.ts.map +1 -0
  52. package/{lib → dist}/esm/generated/encode-html.js +4 -4
  53. package/dist/esm/generated/encode-html.js.map +1 -0
  54. package/{lib → dist}/esm/index.d.ts +6 -6
  55. package/dist/esm/index.d.ts.map +1 -0
  56. package/{lib → dist}/esm/index.js +30 -25
  57. package/dist/esm/index.js.map +1 -0
  58. package/dist/esm/package.json +3 -0
  59. package/package.json +96 -66
  60. package/src/decode-codepoint.ts +81 -0
  61. package/src/decode.spec.ts +320 -0
  62. package/src/decode.ts +620 -0
  63. package/src/encode.spec.ts +78 -0
  64. package/src/encode.ts +77 -0
  65. package/src/escape.spec.ts +14 -0
  66. package/src/escape.ts +144 -0
  67. package/src/generated/.eslintrc.json +10 -0
  68. package/src/generated/decode-data-html.ts +8 -0
  69. package/src/generated/decode-data-xml.ts +8 -0
  70. package/src/generated/encode-html.ts +17 -0
  71. package/src/index.spec.ts +125 -0
  72. package/src/index.ts +185 -0
  73. package/lib/decode.d.ts.map +0 -1
  74. package/lib/decode.js.map +0 -1
  75. package/lib/decode_codepoint.d.ts.map +0 -1
  76. package/lib/decode_codepoint.js.map +0 -1
  77. package/lib/encode.d.ts.map +0 -1
  78. package/lib/encode.js.map +0 -1
  79. package/lib/escape.d.ts.map +0 -1
  80. package/lib/escape.js.map +0 -1
  81. package/lib/esm/decode.d.ts.map +0 -1
  82. package/lib/esm/decode.js.map +0 -1
  83. package/lib/esm/decode_codepoint.d.ts.map +0 -1
  84. package/lib/esm/decode_codepoint.js.map +0 -1
  85. package/lib/esm/encode.d.ts.map +0 -1
  86. package/lib/esm/encode.js.map +0 -1
  87. package/lib/esm/escape.d.ts.map +0 -1
  88. package/lib/esm/escape.js.map +0 -1
  89. package/lib/esm/generated/decode-data-html.d.ts.map +0 -1
  90. package/lib/esm/generated/decode-data-html.js.map +0 -1
  91. package/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
  92. package/lib/esm/generated/decode-data-xml.js.map +0 -1
  93. package/lib/esm/generated/encode-html.d.ts.map +0 -1
  94. package/lib/esm/generated/encode-html.js.map +0 -1
  95. package/lib/esm/index.d.ts.map +0 -1
  96. package/lib/esm/index.js.map +0 -1
  97. package/lib/esm/package.json +0 -1
  98. package/lib/generated/decode-data-html.d.ts.map +0 -1
  99. package/lib/generated/decode-data-html.js.map +0 -1
  100. package/lib/generated/decode-data-xml.d.ts.map +0 -1
  101. package/lib/generated/decode-data-xml.js.map +0 -1
  102. package/lib/generated/encode-html.d.ts.map +0 -1
  103. package/lib/generated/encode-html.js.map +0 -1
  104. package/lib/index.d.ts.map +0 -1
  105. package/lib/index.js.map +0 -1
  106. /package/{lib/esm → dist/commonjs}/generated/decode-data-html.d.ts +0 -0
  107. /package/{lib/esm → dist/commonjs}/generated/decode-data-xml.d.ts +0 -0
  108. /package/{lib/esm → dist/commonjs}/generated/encode-html.d.ts +0 -0
  109. /package/{lib → dist/esm}/generated/decode-data-html.d.ts +0 -0
  110. /package/{lib → dist}/esm/generated/decode-data-html.js +0 -0
  111. /package/{lib → dist/esm}/generated/decode-data-xml.d.ts +0 -0
  112. /package/{lib → dist}/esm/generated/decode-data-xml.js +0 -0
  113. /package/{lib → dist/esm}/generated/encode-html.d.ts +0 -0
@@ -1,9 +1,6 @@
1
1
  import htmlDecodeTree from "./generated/decode-data-html.js";
2
2
  import xmlDecodeTree from "./generated/decode-data-xml.js";
3
- import decodeCodePoint, { replaceCodePoint, fromCodePoint, } from "./decode_codepoint.js";
4
- // Re-export for use by eg. htmlparser2
5
- export { htmlDecodeTree, xmlDecodeTree, decodeCodePoint };
6
- export { replaceCodePoint, fromCodePoint } from "./decode_codepoint.js";
3
+ import { replaceCodePoint, fromCodePoint } from "./decode-codepoint.js";
7
4
  var CharCodes;
8
5
  (function (CharCodes) {
9
6
  CharCodes[CharCodes["NUM"] = 35] = "NUM";
@@ -20,7 +17,7 @@ var CharCodes;
20
17
  CharCodes[CharCodes["UPPER_Z"] = 90] = "UPPER_Z";
21
18
  })(CharCodes || (CharCodes = {}));
22
19
  /** Bit that needs to be set to convert an upper case ASCII character to lower case */
23
- const TO_LOWER_BIT = 0b100000;
20
+ const TO_LOWER_BIT = 32;
24
21
  export var BinTrieFlags;
25
22
  (function (BinTrieFlags) {
26
23
  BinTrieFlags[BinTrieFlags["VALUE_LENGTH"] = 49152] = "VALUE_LENGTH";
@@ -121,32 +118,32 @@ export class EntityDecoder {
121
118
  * Mirrors the implementation of `getDecoder`, but with the ability to stop decoding if the
122
119
  * entity is incomplete, and resume when the next string is written.
123
120
  *
124
- * @param string The string containing the entity (or a continuation of the entity).
121
+ * @param input The string containing the entity (or a continuation of the entity).
125
122
  * @param offset The offset at which the entity begins. Should be 0 if this is not the first call.
126
123
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
127
124
  */
128
- write(str, offset) {
125
+ write(input, offset) {
129
126
  switch (this.state) {
130
127
  case EntityDecoderState.EntityStart: {
131
- if (str.charCodeAt(offset) === CharCodes.NUM) {
128
+ if (input.charCodeAt(offset) === CharCodes.NUM) {
132
129
  this.state = EntityDecoderState.NumericStart;
133
130
  this.consumed += 1;
134
- return this.stateNumericStart(str, offset + 1);
131
+ return this.stateNumericStart(input, offset + 1);
135
132
  }
136
133
  this.state = EntityDecoderState.NamedEntity;
137
- return this.stateNamedEntity(str, offset);
134
+ return this.stateNamedEntity(input, offset);
138
135
  }
139
136
  case EntityDecoderState.NumericStart: {
140
- return this.stateNumericStart(str, offset);
137
+ return this.stateNumericStart(input, offset);
141
138
  }
142
139
  case EntityDecoderState.NumericDecimal: {
143
- return this.stateNumericDecimal(str, offset);
140
+ return this.stateNumericDecimal(input, offset);
144
141
  }
145
142
  case EntityDecoderState.NumericHex: {
146
- return this.stateNumericHex(str, offset);
143
+ return this.stateNumericHex(input, offset);
147
144
  }
148
145
  case EntityDecoderState.NamedEntity: {
149
- return this.stateNamedEntity(str, offset);
146
+ return this.stateNamedEntity(input, offset);
150
147
  }
151
148
  }
152
149
  }
@@ -155,28 +152,28 @@ export class EntityDecoder {
155
152
  *
156
153
  * Equivalent to the `Numeric character reference state` in the HTML spec.
157
154
  *
158
- * @param str The string containing the entity (or a continuation of the entity).
155
+ * @param input The string containing the entity (or a continuation of the entity).
159
156
  * @param offset The current offset.
160
157
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
161
158
  */
162
- stateNumericStart(str, offset) {
163
- if (offset >= str.length) {
159
+ stateNumericStart(input, offset) {
160
+ if (offset >= input.length) {
164
161
  return -1;
165
162
  }
166
- if ((str.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
163
+ if ((input.charCodeAt(offset) | TO_LOWER_BIT) === CharCodes.LOWER_X) {
167
164
  this.state = EntityDecoderState.NumericHex;
168
165
  this.consumed += 1;
169
- return this.stateNumericHex(str, offset + 1);
166
+ return this.stateNumericHex(input, offset + 1);
170
167
  }
171
168
  this.state = EntityDecoderState.NumericDecimal;
172
- return this.stateNumericDecimal(str, offset);
169
+ return this.stateNumericDecimal(input, offset);
173
170
  }
174
- addToNumericResult(str, start, end, base) {
171
+ addToNumericResult(input, start, end, base) {
175
172
  if (start !== end) {
176
173
  const digitCount = end - start;
177
174
  this.result =
178
175
  this.result * Math.pow(base, digitCount) +
179
- parseInt(str.substr(start, digitCount), base);
176
+ Number.parseInt(input.substr(start, digitCount), base);
180
177
  this.consumed += digitCount;
181
178
  }
182
179
  }
@@ -185,23 +182,23 @@ export class EntityDecoder {
185
182
  *
186
183
  * Equivalent to the `Hexademical character reference state` in the HTML spec.
187
184
  *
188
- * @param str The string containing the entity (or a continuation of the entity).
185
+ * @param input The string containing the entity (or a continuation of the entity).
189
186
  * @param offset The current offset.
190
187
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
191
188
  */
192
- stateNumericHex(str, offset) {
193
- const startIdx = offset;
194
- while (offset < str.length) {
195
- const char = str.charCodeAt(offset);
189
+ stateNumericHex(input, offset) {
190
+ const startIndex = offset;
191
+ while (offset < input.length) {
192
+ const char = input.charCodeAt(offset);
196
193
  if (isNumber(char) || isHexadecimalCharacter(char)) {
197
194
  offset += 1;
198
195
  }
199
196
  else {
200
- this.addToNumericResult(str, startIdx, offset, 16);
197
+ this.addToNumericResult(input, startIndex, offset, 16);
201
198
  return this.emitNumericEntity(char, 3);
202
199
  }
203
200
  }
204
- this.addToNumericResult(str, startIdx, offset, 16);
201
+ this.addToNumericResult(input, startIndex, offset, 16);
205
202
  return -1;
206
203
  }
207
204
  /**
@@ -209,23 +206,23 @@ export class EntityDecoder {
209
206
  *
210
207
  * Equivalent to the `Decimal character reference state` in the HTML spec.
211
208
  *
212
- * @param str The string containing the entity (or a continuation of the entity).
209
+ * @param input The string containing the entity (or a continuation of the entity).
213
210
  * @param offset The current offset.
214
211
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
215
212
  */
216
- stateNumericDecimal(str, offset) {
217
- const startIdx = offset;
218
- while (offset < str.length) {
219
- const char = str.charCodeAt(offset);
213
+ stateNumericDecimal(input, offset) {
214
+ const startIndex = offset;
215
+ while (offset < input.length) {
216
+ const char = input.charCodeAt(offset);
220
217
  if (isNumber(char)) {
221
218
  offset += 1;
222
219
  }
223
220
  else {
224
- this.addToNumericResult(str, startIdx, offset, 10);
221
+ this.addToNumericResult(input, startIndex, offset, 10);
225
222
  return this.emitNumericEntity(char, 2);
226
223
  }
227
224
  }
228
- this.addToNumericResult(str, startIdx, offset, 10);
225
+ this.addToNumericResult(input, startIndex, offset, 10);
229
226
  return -1;
230
227
  }
231
228
  /**
@@ -269,17 +266,17 @@ export class EntityDecoder {
269
266
  *
270
267
  * Equivalent to the `Named character reference state` in the HTML spec.
271
268
  *
272
- * @param str The string containing the entity (or a continuation of the entity).
269
+ * @param input The string containing the entity (or a continuation of the entity).
273
270
  * @param offset The current offset.
274
271
  * @returns The number of characters that were consumed, or -1 if the entity is incomplete.
275
272
  */
276
- stateNamedEntity(str, offset) {
273
+ stateNamedEntity(input, offset) {
277
274
  const { decodeTree } = this;
278
275
  let current = decodeTree[this.treeIndex];
279
276
  // The mask is the number of bytes of the value, including the current byte.
280
277
  let valueLength = (current & BinTrieFlags.VALUE_LENGTH) >> 14;
281
- for (; offset < str.length; offset++, this.excess++) {
282
- const char = str.charCodeAt(offset);
278
+ for (; offset < input.length; offset++, this.excess++) {
279
+ const char = input.charCodeAt(offset);
283
280
  this.treeIndex = determineBranch(decodeTree, current, this.treeIndex + Math.max(1, valueLength), char);
284
281
  if (this.treeIndex < 0) {
285
282
  return this.result === 0 ||
@@ -386,28 +383,28 @@ export class EntityDecoder {
386
383
  * @returns A function that decodes entities in a string.
387
384
  */
388
385
  function getDecoder(decodeTree) {
389
- let ret = "";
390
- const decoder = new EntityDecoder(decodeTree, (str) => (ret += fromCodePoint(str)));
391
- return function decodeWithTrie(str, decodeMode) {
386
+ let returnValue = "";
387
+ const decoder = new EntityDecoder(decodeTree, (data) => (returnValue += fromCodePoint(data)));
388
+ return function decodeWithTrie(input, decodeMode) {
392
389
  let lastIndex = 0;
393
390
  let offset = 0;
394
- while ((offset = str.indexOf("&", offset)) >= 0) {
395
- ret += str.slice(lastIndex, offset);
391
+ while ((offset = input.indexOf("&", offset)) >= 0) {
392
+ returnValue += input.slice(lastIndex, offset);
396
393
  decoder.startEntity(decodeMode);
397
- const len = decoder.write(str,
394
+ const length = decoder.write(input,
398
395
  // Skip the "&"
399
396
  offset + 1);
400
- if (len < 0) {
397
+ if (length < 0) {
401
398
  lastIndex = offset + decoder.end();
402
399
  break;
403
400
  }
404
- lastIndex = offset + len;
405
- // If `len` is 0, skip the current `&` and continue.
406
- offset = len === 0 ? lastIndex + 1 : lastIndex;
401
+ lastIndex = offset + length;
402
+ // If `length` is 0, skip the current `&` and continue.
403
+ offset = length === 0 ? lastIndex + 1 : lastIndex;
407
404
  }
408
- const result = ret + str.slice(lastIndex);
405
+ const result = returnValue + input.slice(lastIndex);
409
406
  // Make sure we don't keep a reference to the final string.
410
- ret = "";
407
+ returnValue = "";
411
408
  return result;
412
409
  };
413
410
  }
@@ -421,31 +418,31 @@ function getDecoder(decodeTree) {
421
418
  * @param char The current character.
422
419
  * @returns The index of the next node, or -1 if no branch is taken.
423
420
  */
424
- export function determineBranch(decodeTree, current, nodeIdx, char) {
421
+ export function determineBranch(decodeTree, current, nodeIndex, char) {
425
422
  const branchCount = (current & BinTrieFlags.BRANCH_LENGTH) >> 7;
426
423
  const jumpOffset = current & BinTrieFlags.JUMP_TABLE;
427
424
  // Case 1: Single branch encoded in jump offset
428
425
  if (branchCount === 0) {
429
- return jumpOffset !== 0 && char === jumpOffset ? nodeIdx : -1;
426
+ return jumpOffset !== 0 && char === jumpOffset ? nodeIndex : -1;
430
427
  }
431
428
  // Case 2: Multiple branches encoded in jump table
432
429
  if (jumpOffset) {
433
430
  const value = char - jumpOffset;
434
431
  return value < 0 || value >= branchCount
435
432
  ? -1
436
- : decodeTree[nodeIdx + value] - 1;
433
+ : decodeTree[nodeIndex + value] - 1;
437
434
  }
438
435
  // Case 3: Multiple branches encoded in dictionary
439
436
  // Binary search for the character.
440
- let lo = nodeIdx;
437
+ let lo = nodeIndex;
441
438
  let hi = lo + branchCount - 1;
442
439
  while (lo <= hi) {
443
440
  const mid = (lo + hi) >>> 1;
444
- const midVal = decodeTree[mid];
445
- if (midVal < char) {
441
+ const midValue = decodeTree[mid];
442
+ if (midValue < char) {
446
443
  lo = mid + 1;
447
444
  }
448
- else if (midVal > char) {
445
+ else if (midValue > char) {
449
446
  hi = mid - 1;
450
447
  }
451
448
  else {
@@ -459,38 +456,42 @@ const xmlDecoder = getDecoder(xmlDecodeTree);
459
456
  /**
460
457
  * Decodes an HTML string.
461
458
  *
462
- * @param str The string to decode.
459
+ * @param htmlString The string to decode.
463
460
  * @param mode The decoding mode.
464
461
  * @returns The decoded string.
465
462
  */
466
- export function decodeHTML(str, mode = DecodingMode.Legacy) {
467
- return htmlDecoder(str, mode);
463
+ export function decodeHTML(htmlString, mode = DecodingMode.Legacy) {
464
+ return htmlDecoder(htmlString, mode);
468
465
  }
469
466
  /**
470
467
  * Decodes an HTML string in an attribute.
471
468
  *
472
- * @param str The string to decode.
469
+ * @param htmlAttribute The string to decode.
473
470
  * @returns The decoded string.
474
471
  */
475
- export function decodeHTMLAttribute(str) {
476
- return htmlDecoder(str, DecodingMode.Attribute);
472
+ export function decodeHTMLAttribute(htmlAttribute) {
473
+ return htmlDecoder(htmlAttribute, DecodingMode.Attribute);
477
474
  }
478
475
  /**
479
476
  * Decodes an HTML string, requiring all entities to be terminated by a semicolon.
480
477
  *
481
- * @param str The string to decode.
478
+ * @param htmlString The string to decode.
482
479
  * @returns The decoded string.
483
480
  */
484
- export function decodeHTMLStrict(str) {
485
- return htmlDecoder(str, DecodingMode.Strict);
481
+ export function decodeHTMLStrict(htmlString) {
482
+ return htmlDecoder(htmlString, DecodingMode.Strict);
486
483
  }
487
484
  /**
488
485
  * Decodes an XML string, requiring all entities to be terminated by a semicolon.
489
486
  *
490
- * @param str The string to decode.
487
+ * @param xmlString The string to decode.
491
488
  * @returns The decoded string.
492
489
  */
493
- export function decodeXML(str) {
494
- return xmlDecoder(str, DecodingMode.Strict);
490
+ export function decodeXML(xmlString) {
491
+ return xmlDecoder(xmlString, DecodingMode.Strict);
495
492
  }
493
+ // Re-export for use by eg. htmlparser2
494
+ export { default as htmlDecodeTree } from "./generated/decode-data-html.js";
495
+ export { default as xmlDecodeTree } from "./generated/decode-data-xml.js";
496
+ export { default as decodeCodePoint, replaceCodePoint, fromCodePoint, } from "./decode-codepoint.js";
496
497
  //# sourceMappingURL=decode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decode.js","sourceRoot":"","sources":["../../src/decode.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAExE,IAAW,SAaV;AAbD,WAAW,SAAS;IAChB,wCAAQ,CAAA;IACR,0CAAS,CAAA;IACT,8CAAW,CAAA;IACX,0CAAS,CAAA;IACT,0CAAS,CAAA;IACT,gDAAY,CAAA;IACZ,iDAAa,CAAA;IACb,iDAAa,CAAA;IACb,iDAAa,CAAA;IACb,gDAAY,CAAA;IACZ,gDAAY,CAAA;IACZ,gDAAY,CAAA;AAChB,CAAC,EAbU,SAAS,KAAT,SAAS,QAanB;AAED,sFAAsF;AACtF,MAAM,YAAY,GAAG,EAAS,CAAC;AAE/B,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,mEAAoC,CAAA;IACpC,qEAAqC,CAAA;IACrC,6DAAkC,CAAA;AACtC,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB;AAED,SAAS,QAAQ,CAAC,IAAY;IAC1B,OAAO,IAAI,IAAI,SAAS,CAAC,IAAI,I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AAG,UAAU,CAAC,aAAa,CAAC,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CACtB,UAAkB,EAClB,IAAI,GAAG,YAAY,CAAC,MAAM;IAE1B,OAAO,WAAW,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,aAAqB;IACrD,OAAO,WAAW,CAAC,aAAa,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;AAC9D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAAC,UAAkB;IAC/C,OAAO,WAAW,CAAC,UAAU,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,SAAS,CAAC,SAAiB;IACvC,OAAO,UAAU,CAAC,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;AACtD,CAAC;AAED,uCAAuC;AACvC,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE1E,OAAO,EACH,OAAO,IAAI,eAAe,EAC1B,gBAAgB,EAChB,aAAa,GAChB,MAAM,uBAAuB,CAAC"}
@@ -9,7 +9,7 @@
9
9
  * If a character has no equivalent entity, a numeric hexadecimal reference
10
10
  * (eg. `&#xfc;`) will be used.
11
11
  */
12
- export declare function encodeHTML(data: string): string;
12
+ export declare function encodeHTML(input: string): string;
13
13
  /**
14
14
  * Encodes all non-ASCII characters, as well as characters not valid in HTML
15
15
  * documents using HTML entities. This function will not encode characters that
@@ -18,5 +18,5 @@ export declare function encodeHTML(data: string): string;
18
18
  * If a character has no equivalent entity, a numeric hexadecimal reference
19
19
  * (eg. `&#xfc;`) will be used.
20
20
  */
21
- export declare function encodeNonAsciiHTML(data: string): string;
21
+ export declare function encodeNonAsciiHTML(input: string): string;
22
22
  //# sourceMappingURL=encode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../src/encode.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD;AACD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD"}
@@ -1,6 +1,6 @@
1
1
  import htmlTrie from "./generated/encode-html.js";
2
2
  import { xmlReplacer, getCodePoint } from "./escape.js";
3
- const htmlReplacer = /[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;
3
+ const htmlReplacer = /[\t\n\f!-,./:-@[-`{-}\u0080-\uFFFF]/g;
4
4
  /**
5
5
  * Encodes all characters in the input using HTML entities. This includes
6
6
  * characters that are valid ASCII characters in HTML documents, such as `#`.
@@ -12,8 +12,8 @@ const htmlReplacer = /[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;
12
12
  * If a character has no equivalent entity, a numeric hexadecimal reference
13
13
  * (eg. `&#xfc;`) will be used.
14
14
  */
15
- export function encodeHTML(data) {
16
- return encodeHTMLTrieRe(htmlReplacer, data);
15
+ export function encodeHTML(input) {
16
+ return encodeHTMLTrieRe(htmlReplacer, input);
17
17
  }
18
18
  /**
19
19
  * Encodes all non-ASCII characters, as well as characters not valid in HTML
@@ -23,47 +23,47 @@ export function encodeHTML(data) {
23
23
  * If a character has no equivalent entity, a numeric hexadecimal reference
24
24
  * (eg. `&#xfc;`) will be used.
25
25
  */
26
- export function encodeNonAsciiHTML(data) {
27
- return encodeHTMLTrieRe(xmlReplacer, data);
26
+ export function encodeNonAsciiHTML(input) {
27
+ return encodeHTMLTrieRe(xmlReplacer, input);
28
28
  }
29
- function encodeHTMLTrieRe(regExp, str) {
30
- let ret = "";
31
- let lastIdx = 0;
29
+ function encodeHTMLTrieRe(regExp, input) {
30
+ let returnValue = "";
31
+ let lastIndex = 0;
32
32
  let match;
33
- while ((match = regExp.exec(str)) !== null) {
34
- const i = match.index;
35
- ret += str.substring(lastIdx, i);
36
- const char = str.charCodeAt(i);
33
+ while ((match = regExp.exec(input)) !== null) {
34
+ const { index } = match;
35
+ returnValue += input.substring(lastIndex, index);
36
+ const char = input.charCodeAt(index);
37
37
  let next = htmlTrie.get(char);
38
38
  if (typeof next === "object") {
39
39
  // We are in a branch. Try to match the next char.
40
- if (i + 1 < str.length) {
41
- const nextChar = str.charCodeAt(i + 1);
40
+ if (index + 1 < input.length) {
41
+ const nextChar = input.charCodeAt(index + 1);
42
42
  const value = typeof next.n === "number"
43
43
  ? next.n === nextChar
44
44
  ? next.o
45
45
  : undefined
46
46
  : next.n.get(nextChar);
47
47
  if (value !== undefined) {
48
- ret += value;
49
- lastIdx = regExp.lastIndex += 1;
48
+ returnValue += value;
49
+ lastIndex = regExp.lastIndex += 1;
50
50
  continue;
51
51
  }
52
52
  }
53
53
  next = next.v;
54
54
  }
55
55
  // We might have a tree node without a value; skip and use a numeric entity.
56
- if (next !== undefined) {
57
- ret += next;
58
- lastIdx = i + 1;
56
+ if (next === undefined) {
57
+ const cp = getCodePoint(input, index);
58
+ returnValue += `&#x${cp.toString(16)};`;
59
+ // Increase by 1 if we have a surrogate pair
60
+ lastIndex = regExp.lastIndex += Number(cp !== char);
59
61
  }
60
62
  else {
61
- const cp = getCodePoint(str, i);
62
- ret += `&#x${cp.toString(16)};`;
63
- // Increase by 1 if we have a surrogate pair
64
- lastIdx = regExp.lastIndex += Number(cp !== char);
63
+ returnValue += next;
64
+ lastIndex = index + 1;
65
65
  }
66
66
  }
67
- return ret + str.substr(lastIdx);
67
+ return returnValue + input.substr(lastIndex);
68
68
  }
69
69
  //# sourceMappingURL=encode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encode.js","sourceRoot":"","sources":["../../src/encode.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,4BAA4B,CAAC;AA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f,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;gBAE/B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;oBACtB,WAAW,IAAI,KAAK,CAAC;oBACrB,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC;oBAClC,SAAS;gBACb,CAAC;YACL,CAAC;YAED,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,4EAA4E;QAC5E,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACrB,MAAM,EAAE,GAAG,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACtC,WAAW,IAAI,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC;YACxC,4CAA4C;YAC5C,SAAS,GAAG,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACJ,WAAW,IAAI,IAAI,CAAC;YACpB,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;QAC1B,CAAC;IACL,CAAC;IAED,OAAO,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AACjD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export declare const xmlReplacer: RegExp;
2
- export declare const getCodePoint: (str: string, index: number) => number;
2
+ export declare const getCodePoint: (c: string, index: number) => number;
3
3
  /**
4
4
  * Encodes all non-ASCII characters, as well as characters not valid in XML
5
5
  * documents using XML entities.
@@ -7,7 +7,7 @@ export declare const getCodePoint: (str: string, index: number) => number;
7
7
  * If a character has no equivalent entity, a
8
8
  * numeric hexadecimal reference (eg. `&#xfc;`) will be used.
9
9
  */
10
- export declare function encodeXML(str: string): string;
10
+ export declare function encodeXML(input: string): string;
11
11
  /**
12
12
  * Encodes all non-ASCII characters, as well as characters not valid in XML
13
13
  * documents using numeric hexadecimal reference (eg. `&#xfc;`).
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escape.d.ts","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAA2B,CAAC;AAWpD,eAAO,MAAM,YAAY,MAGX,MAAM,SAAS,MAAM,KAAG,MAQuC,CAAC;AAE9E;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA0B/C;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,kBAAY,CAAC;AAqChC;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,SA7Bb,MAAM,KAAK,MA6BuC,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,SArClB,MAAM,KAAK,MA4CpB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,SApDb,MAAM,KAAK,MA4DpB,CAAC"}
@@ -1,4 +1,4 @@
1
- export const xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
1
+ export const xmlReplacer = /["$&'<>\u0080-\uFFFF]/g;
2
2
  const xmlCodeMap = new Map([
3
3
  [34, "&quot;"],
4
4
  [38, "&amp;"],
@@ -9,15 +9,15 @@ const xmlCodeMap = new Map([
9
9
  // For compatibility with node < 4, we wrap `codePointAt`
10
10
  export const getCodePoint =
11
11
  // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
12
- String.prototype.codePointAt != null
13
- ? (str, index) => str.codePointAt(index)
12
+ String.prototype.codePointAt == null
13
+ ? (c, index) => (c.charCodeAt(index) & 64512) === 55296
14
+ ? (c.charCodeAt(index) - 55296) * 1024 +
15
+ c.charCodeAt(index + 1) -
16
+ 56320 +
17
+ 65536
18
+ : c.charCodeAt(index)
14
19
  : // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
15
- (c, index) => (c.charCodeAt(index) & 0xfc00) === 0xd800
16
- ? (c.charCodeAt(index) - 0xd800) * 0x400 +
17
- c.charCodeAt(index + 1) -
18
- 0xdc00 +
19
- 0x10000
20
- : c.charCodeAt(index);
20
+ (input, index) => input.codePointAt(index);
21
21
  /**
22
22
  * Encodes all non-ASCII characters, as well as characters not valid in XML
23
23
  * documents using XML entities.
@@ -25,25 +25,25 @@ String.prototype.codePointAt != null
25
25
  * If a character has no equivalent entity, a
26
26
  * numeric hexadecimal reference (eg. `&#xfc;`) will be used.
27
27
  */
28
- export function encodeXML(str) {
29
- let ret = "";
30
- let lastIdx = 0;
28
+ export function encodeXML(input) {
29
+ let returnValue = "";
30
+ let lastIndex = 0;
31
31
  let match;
32
- while ((match = xmlReplacer.exec(str)) !== null) {
33
- const i = match.index;
34
- const char = str.charCodeAt(i);
32
+ while ((match = xmlReplacer.exec(input)) !== null) {
33
+ const { index } = match;
34
+ const char = input.charCodeAt(index);
35
35
  const next = xmlCodeMap.get(char);
36
- if (next !== undefined) {
37
- ret += str.substring(lastIdx, i) + next;
38
- lastIdx = i + 1;
36
+ if (next === undefined) {
37
+ returnValue += `${input.substring(lastIndex, index)}&#x${getCodePoint(input, index).toString(16)};`;
38
+ // Increase by 1 if we have a surrogate pair
39
+ lastIndex = xmlReplacer.lastIndex += Number((char & 64512) === 55296);
39
40
  }
40
41
  else {
41
- ret += `${str.substring(lastIdx, i)}&#x${getCodePoint(str, i).toString(16)};`;
42
- // Increase by 1 if we have a surrogate pair
43
- lastIdx = xmlReplacer.lastIndex += Number((char & 0xfc00) === 0xd800);
42
+ returnValue += input.substring(lastIndex, index) + next;
43
+ lastIndex = index + 1;
44
44
  }
45
45
  }
46
- return ret + str.substr(lastIdx);
46
+ return returnValue + input.substr(lastIndex);
47
47
  }
48
48
  /**
49
49
  * Encodes all non-ASCII characters, as well as characters not valid in XML
@@ -68,18 +68,18 @@ export const escape = encodeXML;
68
68
  function getEscaper(regex, map) {
69
69
  return function escape(data) {
70
70
  let match;
71
- let lastIdx = 0;
71
+ let lastIndex = 0;
72
72
  let result = "";
73
73
  while ((match = regex.exec(data))) {
74
- if (lastIdx !== match.index) {
75
- result += data.substring(lastIdx, match.index);
74
+ if (lastIndex !== match.index) {
75
+ result += data.substring(lastIndex, match.index);
76
76
  }
77
77
  // We know that this character will be in the map.
78
78
  result += map.get(match[0].charCodeAt(0));
79
79
  // Every match will be of length 1
80
- lastIdx = match.index + 1;
80
+ lastIndex = match.index + 1;
81
81
  }
82
- return result + data.substring(lastIdx);
82
+ return result + data.substring(lastIndex);
83
83
  };
84
84
  }
85
85
  /**
@@ -89,7 +89,7 @@ function getEscaper(regex, map) {
89
89
  *
90
90
  * @param data String to escape.
91
91
  */
92
- export const escapeUTF8 = getEscaper(/[&<>'"]/g, xmlCodeMap);
92
+ export const escapeUTF8 = getEscaper(/["&'<>]/g, xmlCodeMap);
93
93
  /**
94
94
  * Encodes all characters that have to be escaped in HTML attributes,
95
95
  * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escape.js","sourceRoot":"","sources":["../../src/escape.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,wBAAwB,CAAC;AAEpD,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC;IACvB,CAAC,EAAE,EAAE,QAAQ,CAAC;IACd,CAAC,EAAE,EAAE,OAAO,CAAC;IACb,CAAC,EAAE,EAAE,QAAQ,CAAC;IACd,CAAC,EAAE,EAAE,MAAM,CAAC;IACZ,CAAC,EAAE,EAAE,MAAM,CAAC;CACf,CAAC,CAAC;AAEH,yDAAyD;AACzD,MAAM,CAAC,MAAM,YAAY;AACrB,uEAAuE;AACvE,MAAM,CAAC,SAAS,CAAC,WAAW,IAAI,IAAI;IAChC,CAAC,CAAC,CAAC,CAAS,EAAE,KAAa,EAAU,EAAE,CACjC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,KAAO,CAAC,KAAK,KAAO;QACvC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,KAAO,CAAC,GAAG,IAAM;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AC,EAAE,EAAE,OAAO,CAAC;IACb,CAAC,EAAE,EAAE,MAAM,CAAC;IACZ,CAAC,EAAE,EAAE,MAAM,CAAC;IACZ,CAAC,GAAG,EAAE,QAAQ,CAAC;CAClB,CAAC,CACL,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decode-data-html.d.ts","sourceRoot":"","sources":["../../../src/generated/decode-data-html.ts"],"names":[],"mappings":";AAEA,wBAKE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decode-data-html.js","sourceRoot":"","sources":["../../../src/generated/decode-data-html.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,eAAe,IAAI,WAAW;AAC1B,kBAAkB;AAClB,268CAA268C;KACt68C,KAAK,CAAC,EAAE,CAAC;KACT,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CACnC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decode-data-xml.d.ts","sourceRoot":"","sources":["../../../src/generated/decode-data-xml.ts"],"names":[],"mappings":";AAEA,wBAKE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decode-data-xml.js","sourceRoot":"","sources":["../../../src/generated/decode-data-xml.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,eAAe,IAAI,WAAW;AAC1B,kBAAkB;AAClB,uFAAuF;KAClF,KAAK,CAAC,EAAE,CAAC;KACT,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CACnC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encode-html.d.ts","sourceRoot":"","sources":["../../../src/generated/encode-html.ts"],"names":[],"mappings":"AAEA,KAAK,cAAc,GACb,MAAM,GACN;IAAE,CAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAAC,CAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;;AAY1E,wBAAo+tB"}