@edge-base/react-native 0.1.2 → 0.1.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.js CHANGED
@@ -1016,8 +1016,10 @@ function matchesDatabaseLiveChannel(channel, change, messageChannel) {
1016
1016
  }
1017
1017
  return parts[3] === change.table && change.docId === parts[4];
1018
1018
  }
1019
+ var UNSAFE_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
1019
1020
  function deepSet(obj, path, value) {
1020
1021
  const parts = path.split(".");
1022
+ if (parts.some((p) => UNSAFE_KEYS.has(p))) return;
1021
1023
  let current = obj;
1022
1024
  for (let i = 0; i < parts.length - 1; i++) {
1023
1025
  const key = parts[i];