cx 22.4.3 → 22.5.2

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/data.js CHANGED
@@ -21,7 +21,6 @@ function createAccessorModelProxy(chain) {
21
21
  }
22
22
 
23
23
  var lastOp = null;
24
- var lastName = null;
25
24
  var proxy = new Proxy(emptyFn, {
26
25
  get: function get(_, name) {
27
26
  if (typeof name !== "string") return proxy;
@@ -40,13 +39,11 @@ function createAccessorModelProxy(chain) {
40
39
  var newChain = chain;
41
40
  if (newChain.length > 0) newChain += ".";
42
41
  newChain += name;
43
- lastName = name;
44
42
  return createAccessorModelProxy(newChain);
45
43
  },
46
44
  apply: function apply() {
47
45
  switch (lastOp) {
48
46
  case "nameOf":
49
- if (lastName != null) return lastName;
50
47
  var lastDotIndex = chain.lastIndexOf(".");
51
48
  return lastDotIndex > 0 ? chain.substring(lastDotIndex + 1) : chain;
52
49