@emeryld/rrroutes-server 2.5.3 → 2.6.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.
- package/README.md +2 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -225,8 +225,9 @@ const server = createRRRoute(app, {
|
|
|
225
225
|
By default, the sanitizer:
|
|
226
226
|
|
|
227
227
|
- strips null bytes from strings
|
|
228
|
-
- removes
|
|
228
|
+
- removes blocked keys (`__proto__`, `prototype`, `constructor`) unless `stripBlockedKeys: false`
|
|
229
229
|
- keeps whitespace unless `trimStrings: true` is set
|
|
230
|
+
- can log per-target timings when `profiler: true`
|
|
230
231
|
|
|
231
232
|
`blockedKeys` exists to prevent prototype-pollution payloads from surviving into downstream object merges.
|
|
232
233
|
|
package/dist/index.cjs
CHANGED
|
@@ -1222,7 +1222,8 @@ function createSocketConnections(io, events, opts) {
|
|
|
1222
1222
|
sentAt: /* @__PURE__ */ new Date(),
|
|
1223
1223
|
sentTo: targets,
|
|
1224
1224
|
data: check.data,
|
|
1225
|
-
metadata: metadata ?? {}
|
|
1225
|
+
metadata: metadata ?? {},
|
|
1226
|
+
rooms: targets
|
|
1226
1227
|
};
|
|
1227
1228
|
if (targets.length === 0) io.emit(String(eventName), envelope);
|
|
1228
1229
|
else if (targets.length === 1) {
|