Comparing version 0.0.24 to 0.0.25
@@ -289,2 +289,3 @@ var __create = Object.create; | ||
}, "focusProp"); | ||
var specialKeys = ["use", "getStore", "$key"]; | ||
var proxyLens = /* @__PURE__ */ __name((storeFactory, focus = { lens: basicLens(), keyPath: [] }) => { | ||
@@ -318,6 +319,9 @@ const proxy = new Proxy({}, { | ||
ownKeys(_target) { | ||
return ["$key", "getStore", "use", THROW_ON_COPY]; | ||
return [...specialKeys, THROW_ON_COPY]; | ||
}, | ||
has(_target, key) { | ||
return specialKeys.includes(key); | ||
}, | ||
getOwnPropertyDescriptor(_target, key) { | ||
if (key === "$key" || key === "getStore" || key === "use") { | ||
if (specialKeys.includes(key)) { | ||
return { | ||
@@ -324,0 +328,0 @@ configurable: true, |
{ | ||
"name": "concave", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "Lens-like state management (for React)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
99902
1005