express-ext 0.3.4 → 0.3.5

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
@@ -385,6 +385,7 @@ function escapeHTML(obj) {
385
385
  }
386
386
  return obj;
387
387
  }
388
+ exports.escapeHTML = escapeHTML;
388
389
  function escapeArray(arrs) {
389
390
  if (!arrs) {
390
391
  return arrs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-ext",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "express-ext",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -348,7 +348,7 @@ function escapeHtml(input: string): string {
348
348
 
349
349
  const s = 'string';
350
350
  const o = 'object';
351
- function escapeHTML(obj: any): any {
351
+ export function escapeHTML(obj: any): any {
352
352
  if (!obj || typeof obj !== s) {
353
353
  return obj;
354
354
  }