@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 +8 -2
- package/out/index.cjs.map +1 -1
- package/out/index.mjs +8 -2
- package/out/index.mjs.map +1 -1
- package/package.json +1 -1
package/out/index.mjs
CHANGED
|
@@ -180,7 +180,7 @@ function mapNullFieldsToUndefined(obj) {
|
|
|
180
180
|
}
|
|
181
181
|
//#endregion
|
|
182
182
|
//#region package.json
|
|
183
|
-
var version = "0.23.
|
|
183
|
+
var version = "0.23.9";
|
|
184
184
|
//#endregion
|
|
185
185
|
//#region lib/helpers/mergeFilters.ts
|
|
186
186
|
const EmptyFilter$1 = Symbol.for("drizzle:EmptyFilter");
|
|
@@ -1171,7 +1171,13 @@ function deepSetProto(obj, proto = Object.prototype, seen = /* @__PURE__ */ new
|
|
|
1171
1171
|
if (obj === null || typeof obj !== "object") return;
|
|
1172
1172
|
if (seen.has(obj)) return;
|
|
1173
1173
|
seen.add(obj);
|
|
1174
|
-
if (
|
|
1174
|
+
if (Array.isArray(obj)) {
|
|
1175
|
+
for (const item of obj) deepSetProto(item, proto, seen);
|
|
1176
|
+
return;
|
|
1177
|
+
}
|
|
1178
|
+
const currentProto = Object.getPrototypeOf(obj);
|
|
1179
|
+
if (currentProto !== Object.prototype && currentProto !== null) return;
|
|
1180
|
+
Object.setPrototypeOf(obj, proto);
|
|
1175
1181
|
for (const key of Object.keys(obj)) deepSetProto(obj[key], proto, seen);
|
|
1176
1182
|
}
|
|
1177
1183
|
//#endregion
|