@vue/server-renderer 3.4.31 → 3.4.32
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/server-renderer v3.4.
|
|
2
|
+
* @vue/server-renderer v3.4.32
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -196,7 +196,10 @@ function pushWarningContext(vnode) {
|
|
|
196
196
|
function popWarningContext() {
|
|
197
197
|
stack.pop();
|
|
198
198
|
}
|
|
199
|
+
let isWarning = false;
|
|
199
200
|
function warn$1(msg, ...args) {
|
|
201
|
+
if (isWarning) return;
|
|
202
|
+
isWarning = true;
|
|
200
203
|
const instance = stack.length ? stack[stack.length - 1].component : null;
|
|
201
204
|
const appWarnHandler = instance && instance.appContext.config.warnHandler;
|
|
202
205
|
const trace = getComponentTrace();
|
|
@@ -227,6 +230,7 @@ function warn$1(msg, ...args) {
|
|
|
227
230
|
}
|
|
228
231
|
console.warn(...warnArgs);
|
|
229
232
|
}
|
|
233
|
+
isWarning = false;
|
|
230
234
|
}
|
|
231
235
|
function getComponentTrace() {
|
|
232
236
|
let currentVNode = stack[stack.length - 1];
|
|
@@ -325,7 +329,8 @@ const ErrorTypeStrings = {
|
|
|
325
329
|
[11]: "app warnHandler",
|
|
326
330
|
[12]: "ref function",
|
|
327
331
|
[13]: "async component loader",
|
|
328
|
-
[14]: "scheduler flush
|
|
332
|
+
[14]: "scheduler flush",
|
|
333
|
+
[15]: "component update"
|
|
329
334
|
};
|
|
330
335
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
331
336
|
try {
|
|
@@ -604,9 +609,9 @@ function createBuffer() {
|
|
|
604
609
|
const isStringItem = shared.isString(item);
|
|
605
610
|
if (appendable && isStringItem) {
|
|
606
611
|
buffer[buffer.length - 1] += item;
|
|
607
|
-
|
|
608
|
-
buffer.push(item);
|
|
612
|
+
return;
|
|
609
613
|
}
|
|
614
|
+
buffer.push(item);
|
|
610
615
|
appendable = isStringItem;
|
|
611
616
|
if (shared.isPromise(item) || shared.isArray(item) && item.hasAsync) {
|
|
612
617
|
buffer.hasAsync = true;
|
|
@@ -870,24 +875,36 @@ function renderTeleportVNode(push, vnode, parentComponent, slotScopeId) {
|
|
|
870
875
|
}
|
|
871
876
|
|
|
872
877
|
const { isVNode: isVNode$1 } = Vue.ssrUtils;
|
|
873
|
-
|
|
874
|
-
if (buffer.hasAsync) {
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
} else {
|
|
884
|
-
ret += await unrollBuffer$1(item);
|
|
885
|
-
}
|
|
878
|
+
function nestedUnrollBuffer(buffer, parentRet, startIndex) {
|
|
879
|
+
if (!buffer.hasAsync) {
|
|
880
|
+
return parentRet + unrollBufferSync$1(buffer);
|
|
881
|
+
}
|
|
882
|
+
let ret = parentRet;
|
|
883
|
+
for (let i = startIndex; i < buffer.length; i += 1) {
|
|
884
|
+
const item = buffer[i];
|
|
885
|
+
if (shared.isString(item)) {
|
|
886
|
+
ret += item;
|
|
887
|
+
continue;
|
|
886
888
|
}
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
889
|
+
if (shared.isPromise(item)) {
|
|
890
|
+
return item.then((nestedItem) => {
|
|
891
|
+
buffer[i] = nestedItem;
|
|
892
|
+
return nestedUnrollBuffer(buffer, ret, i);
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
const result = nestedUnrollBuffer(item, ret, 0);
|
|
896
|
+
if (shared.isPromise(result)) {
|
|
897
|
+
return result.then((nestedItem) => {
|
|
898
|
+
buffer[i] = nestedItem;
|
|
899
|
+
return nestedUnrollBuffer(buffer, "", i);
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
ret = result;
|
|
890
903
|
}
|
|
904
|
+
return ret;
|
|
905
|
+
}
|
|
906
|
+
function unrollBuffer$1(buffer) {
|
|
907
|
+
return nestedUnrollBuffer(buffer, "", 0);
|
|
891
908
|
}
|
|
892
909
|
function unrollBufferSync$1(buffer) {
|
|
893
910
|
let ret = "";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/server-renderer v3.4.
|
|
2
|
+
* @vue/server-renderer v3.4.32
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -341,9 +341,9 @@ function createBuffer() {
|
|
|
341
341
|
const isStringItem = shared.isString(item);
|
|
342
342
|
if (appendable && isStringItem) {
|
|
343
343
|
buffer[buffer.length - 1] += item;
|
|
344
|
-
|
|
345
|
-
buffer.push(item);
|
|
344
|
+
return;
|
|
346
345
|
}
|
|
346
|
+
buffer.push(item);
|
|
347
347
|
appendable = isStringItem;
|
|
348
348
|
if (shared.isPromise(item) || shared.isArray(item) && item.hasAsync) {
|
|
349
349
|
buffer.hasAsync = true;
|
|
@@ -607,24 +607,36 @@ function renderTeleportVNode(push, vnode, parentComponent, slotScopeId) {
|
|
|
607
607
|
}
|
|
608
608
|
|
|
609
609
|
const { isVNode: isVNode$1 } = Vue.ssrUtils;
|
|
610
|
-
|
|
611
|
-
if (buffer.hasAsync) {
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
} else {
|
|
621
|
-
ret += await unrollBuffer$1(item);
|
|
622
|
-
}
|
|
610
|
+
function nestedUnrollBuffer(buffer, parentRet, startIndex) {
|
|
611
|
+
if (!buffer.hasAsync) {
|
|
612
|
+
return parentRet + unrollBufferSync$1(buffer);
|
|
613
|
+
}
|
|
614
|
+
let ret = parentRet;
|
|
615
|
+
for (let i = startIndex; i < buffer.length; i += 1) {
|
|
616
|
+
const item = buffer[i];
|
|
617
|
+
if (shared.isString(item)) {
|
|
618
|
+
ret += item;
|
|
619
|
+
continue;
|
|
623
620
|
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
621
|
+
if (shared.isPromise(item)) {
|
|
622
|
+
return item.then((nestedItem) => {
|
|
623
|
+
buffer[i] = nestedItem;
|
|
624
|
+
return nestedUnrollBuffer(buffer, ret, i);
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
const result = nestedUnrollBuffer(item, ret, 0);
|
|
628
|
+
if (shared.isPromise(result)) {
|
|
629
|
+
return result.then((nestedItem) => {
|
|
630
|
+
buffer[i] = nestedItem;
|
|
631
|
+
return nestedUnrollBuffer(buffer, "", i);
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
ret = result;
|
|
627
635
|
}
|
|
636
|
+
return ret;
|
|
637
|
+
}
|
|
638
|
+
function unrollBuffer$1(buffer) {
|
|
639
|
+
return nestedUnrollBuffer(buffer, "", 0);
|
|
628
640
|
}
|
|
629
641
|
function unrollBufferSync$1(buffer) {
|
|
630
642
|
let ret = "";
|