express-ext 0.4.8 → 0.4.9

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/lib/index.js CHANGED
@@ -360,6 +360,7 @@ function escapeHTML(input) {
360
360
  return map[char]
361
361
  })
362
362
  }
363
+ exports.escapeHTML = escapeHTML
363
364
  var s = "string"
364
365
  var o = "object"
365
366
  function escape(obj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-ext",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "express-ext",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -340,7 +340,7 @@ const map: StringMap = {
340
340
  "'": "'",
341
341
  "`": "`",
342
342
  }
343
- function escapeHTML(input: string): string {
343
+ export function escapeHTML(input: string): string {
344
344
  return input.replace(/[&<>"'`]/g, function (char) {
345
345
  return map[char]
346
346
  })