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