bobe 0.0.50 → 0.0.52

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/bobe.esm.js CHANGED
@@ -1318,12 +1318,16 @@ function TokenLoc(target, context) {
1318
1318
  }
1319
1319
  function NodeHook(target, context) {
1320
1320
  return function (_node) {
1321
+ const prevParent = this.currentParent;
1321
1322
  const hook = this.hooks[context.name];
1322
1323
  const node = {
1323
1324
  loc: {}
1324
1325
  };
1326
+ node.parent = prevParent;
1325
1327
  hook?.enter?.call(this, node);
1328
+ this.currentParent = node;
1326
1329
  const result = target.call(this, node);
1330
+ this.currentParent = prevParent;
1327
1331
  hook?.leave?.call(this, node);
1328
1332
  return result;
1329
1333
  };
@@ -2023,7 +2027,9 @@ class Interpreter {
2023
2027
  const render = ComponentOrRender;
2024
2028
  const boundStore = render.boundStore;
2025
2029
  child = deepSignal({}, getPulling(), true);
2026
- Object.setPrototypeOf(child, boundStore);
2030
+ if (boundStore) {
2031
+ Object.setPrototypeOf(child, boundStore);
2032
+ }
2027
2033
  tokenizer = render(true);
2028
2034
  }
2029
2035
  const node = {