@emeryld/rrroutes-server 2.5.2 → 2.5.3

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/dist/index.cjs CHANGED
@@ -66,7 +66,7 @@ var normalizeOptions = (options) => {
66
66
  targets: new Set(options.targets ?? defaultTargets),
67
67
  trimStrings: options.trimStrings ?? false,
68
68
  stripNullBytes: options.stripNullBytes ?? true,
69
- stripPrototypePollutionKeys: options.stripPrototypePollutionKeys ?? true,
69
+ stripBlockedKeys: options.stripBlockedKeys ?? true,
70
70
  blockedKeys: new Set(options.blockedKeys ?? defaultBlockedKeys),
71
71
  maxDepth: options.maxDepth ?? defaultMaxDepth,
72
72
  customSanitizer: options.customSanitizer,
@@ -122,7 +122,7 @@ var sanitizeValue = (value, options, depth, seen, req, target, path) => {
122
122
  const source = value;
123
123
  const objectTarget = Object.getPrototypeOf(source) === null ? /* @__PURE__ */ Object.create(null) : {};
124
124
  for (const [key, entry] of Object.entries(source)) {
125
- if (options.stripPrototypePollutionKeys && options.blockedKeys.has(key)) {
125
+ if (options.stripBlockedKeys && options.blockedKeys.has(key)) {
126
126
  continue;
127
127
  }
128
128
  ;