@flusys/nestjs-shared 1.0.0 → 1.0.1
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.
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* HTML Sanitizer Utilities
|
|
3
|
-
*
|
|
4
|
-
* Provides functions for escaping HTML content to prevent XSS attacks.
|
|
5
|
-
* Use these utilities when interpolating user-provided variables into HTML content.
|
|
6
|
-
*/ /**
|
|
7
|
-
* HTML entity mapping for escaping special characters
|
|
8
|
-
*/ "use strict";
|
|
1
|
+
"use strict";
|
|
9
2
|
Object.defineProperty(exports, "__esModule", {
|
|
10
3
|
value: true
|
|
11
4
|
});
|
|
@@ -23,7 +16,14 @@ _export(exports, {
|
|
|
23
16
|
return escapeHtmlVariables;
|
|
24
17
|
}
|
|
25
18
|
});
|
|
26
|
-
|
|
19
|
+
/**
|
|
20
|
+
* HTML Sanitizer Utilities
|
|
21
|
+
*
|
|
22
|
+
* Provides functions for escaping HTML content to prevent XSS attacks.
|
|
23
|
+
* Use these utilities when interpolating user-provided variables into HTML content.
|
|
24
|
+
*/ /**
|
|
25
|
+
* HTML entity mapping for escaping special characters
|
|
26
|
+
*/ const HTML_ESCAPE_MAP = {
|
|
27
27
|
'&': '&',
|
|
28
28
|
'<': '<',
|
|
29
29
|
'>': '>',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flusys/nestjs-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Common shared utilities for Flusys NestJS applications",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "fesm/index.js",
|
|
@@ -105,6 +105,6 @@
|
|
|
105
105
|
"winston-daily-rotate-file": "^5.0.0"
|
|
106
106
|
},
|
|
107
107
|
"dependencies": {
|
|
108
|
-
"@flusys/nestjs-core": "1.0.
|
|
108
|
+
"@flusys/nestjs-core": "1.0.1"
|
|
109
109
|
}
|
|
110
110
|
}
|