bobe 0.0.28 → 0.0.29
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 +5 -3
- package/dist/bobe.cjs.js.map +1 -1
- package/dist/bobe.esm.js +5 -3
- package/dist/bobe.esm.js.map +1 -1
- package/dist/index.d.ts +2 -4
- package/dist/index.umd.js +5 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/bobe.cjs.js
CHANGED
|
@@ -225,6 +225,7 @@ class Interpreter {
|
|
|
225
225
|
prev: null
|
|
226
226
|
}, (ctxProvider.__logicType & LogicalBit ? NodeSort.Logic : 0) | NodeSort.CtxProvider);
|
|
227
227
|
}
|
|
228
|
+
const rootLen = stack.length;
|
|
228
229
|
const ctx = this.ctx = {
|
|
229
230
|
realParent: root,
|
|
230
231
|
prevSibling: before,
|
|
@@ -264,7 +265,7 @@ class Interpreter {
|
|
|
264
265
|
continue;
|
|
265
266
|
}
|
|
266
267
|
if (ctx.current) {
|
|
267
|
-
if (stack.length ===
|
|
268
|
+
if (stack.length === rootLen && !ctx.prevSibling) {
|
|
268
269
|
ctx.prevSibling = before;
|
|
269
270
|
}
|
|
270
271
|
this.handleInsert(ctx.realParent, ctx.current, ctx.prevSibling);
|
|
@@ -731,7 +732,7 @@ class Interpreter {
|
|
|
731
732
|
getData() {
|
|
732
733
|
const _this$ctx$stack$peekB = this.ctx.stack.peekByType(NodeSort.CtxProvider),
|
|
733
734
|
node = _this$ctx$stack$peekB.node;
|
|
734
|
-
return node.data
|
|
735
|
+
return node.data;
|
|
735
736
|
}
|
|
736
737
|
onePropParsed(data, node, key, value, valueIsMapKey, isFn, hookI) {
|
|
737
738
|
if (isFn) {
|
|
@@ -819,7 +820,8 @@ class Interpreter {
|
|
|
819
820
|
preCond: preIsCond ? prevSibling : null,
|
|
820
821
|
isFirstRender: true,
|
|
821
822
|
effect: null,
|
|
822
|
-
owner
|
|
823
|
+
owner,
|
|
824
|
+
data
|
|
823
825
|
};
|
|
824
826
|
let signal;
|
|
825
827
|
switch (keyWord.value) {
|