@m1212e/rumble 0.23.8 → 0.23.9

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/out/index.cjs CHANGED
@@ -208,7 +208,7 @@ function mapNullFieldsToUndefined(obj) {
208
208
  }
209
209
  //#endregion
210
210
  //#region package.json
211
- var version = "0.23.8";
211
+ var version = "0.23.9";
212
212
  //#endregion
213
213
  //#region lib/helpers/mergeFilters.ts
214
214
  const EmptyFilter$1 = Symbol.for("drizzle:EmptyFilter");
@@ -1199,7 +1199,13 @@ function deepSetProto(obj, proto = Object.prototype, seen = /* @__PURE__ */ new
1199
1199
  if (obj === null || typeof obj !== "object") return;
1200
1200
  if (seen.has(obj)) return;
1201
1201
  seen.add(obj);
1202
- if (!Array.isArray(obj)) Object.setPrototypeOf(obj, proto);
1202
+ if (Array.isArray(obj)) {
1203
+ for (const item of obj) deepSetProto(item, proto, seen);
1204
+ return;
1205
+ }
1206
+ const currentProto = Object.getPrototypeOf(obj);
1207
+ if (currentProto !== Object.prototype && currentProto !== null) return;
1208
+ Object.setPrototypeOf(obj, proto);
1203
1209
  for (const key of Object.keys(obj)) deepSetProto(obj[key], proto, seen);
1204
1210
  }
1205
1211
  //#endregion