@designofadecade/server 4.2.0 → 4.2.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.
- package/CHANGELOG.md +5 -0
- package/package.json +41 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Fixed
|
|
11
|
+
- Added missing package.json exports for submodules (sanitizer, server, router, logger, etc.)
|
|
12
|
+
- Resolves ERR_PACKAGE_PATH_NOT_EXPORTED error when importing subpaths
|
|
13
|
+
- Enables direct imports like `@designofadecade/server/sanitizer`
|
|
14
|
+
|
|
10
15
|
### Added
|
|
11
16
|
- HtmlSanitizer now supports preserving specific attributes on allowed tags via optional `allowedAttributes` parameter
|
|
12
17
|
- Enables granular control over which attributes are preserved on each tag
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designofadecade/server",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "Design of a Decade Server - A modern TypeScript server with WebSocket support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -9,6 +9,46 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./sanitizer": {
|
|
14
|
+
"types": "./dist/sanitizer/HtmlSanitizer.d.ts",
|
|
15
|
+
"import": "./dist/sanitizer/HtmlSanitizer.js"
|
|
16
|
+
},
|
|
17
|
+
"./server": {
|
|
18
|
+
"types": "./dist/server/Server.d.ts",
|
|
19
|
+
"import": "./dist/server/Server.js"
|
|
20
|
+
},
|
|
21
|
+
"./router": {
|
|
22
|
+
"types": "./dist/router/Router.d.ts",
|
|
23
|
+
"import": "./dist/router/Router.js"
|
|
24
|
+
},
|
|
25
|
+
"./logger": {
|
|
26
|
+
"types": "./dist/logger/Logger.d.ts",
|
|
27
|
+
"import": "./dist/logger/Logger.js"
|
|
28
|
+
},
|
|
29
|
+
"./client": {
|
|
30
|
+
"types": "./dist/client/ApiClient.d.ts",
|
|
31
|
+
"import": "./dist/client/ApiClient.js"
|
|
32
|
+
},
|
|
33
|
+
"./context": {
|
|
34
|
+
"types": "./dist/context/Context.d.ts",
|
|
35
|
+
"import": "./dist/context/Context.js"
|
|
36
|
+
},
|
|
37
|
+
"./events": {
|
|
38
|
+
"types": "./dist/events/EventsManager.d.ts",
|
|
39
|
+
"import": "./dist/events/EventsManager.js"
|
|
40
|
+
},
|
|
41
|
+
"./websocket": {
|
|
42
|
+
"types": "./dist/websocket/WebSocketServer.d.ts",
|
|
43
|
+
"import": "./dist/websocket/WebSocketServer.js"
|
|
44
|
+
},
|
|
45
|
+
"./state": {
|
|
46
|
+
"types": "./dist/state/AppState.d.ts",
|
|
47
|
+
"import": "./dist/state/AppState.js"
|
|
48
|
+
},
|
|
49
|
+
"./utils": {
|
|
50
|
+
"types": "./dist/utils/HtmlRenderer.d.ts",
|
|
51
|
+
"import": "./dist/utils/HtmlRenderer.js"
|
|
12
52
|
}
|
|
13
53
|
},
|
|
14
54
|
"scripts": {
|