@vue/compiler-ssr 3.5.24 → 3.5.26
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/compiler-ssr.cjs.js +30 -30
- package/package.json +3 -3
package/dist/compiler-ssr.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-ssr v3.5.
|
|
2
|
+
* @vue/compiler-ssr v3.5.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -10,31 +10,31 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
10
10
|
var compilerDom = require('@vue/compiler-dom');
|
|
11
11
|
var shared = require('@vue/shared');
|
|
12
12
|
|
|
13
|
-
const SSR_INTERPOLATE = Symbol(`ssrInterpolate`);
|
|
14
|
-
const SSR_RENDER_VNODE = Symbol(`ssrRenderVNode`);
|
|
15
|
-
const SSR_RENDER_COMPONENT = Symbol(`ssrRenderComponent`);
|
|
16
|
-
const SSR_RENDER_SLOT = Symbol(`ssrRenderSlot`);
|
|
17
|
-
const SSR_RENDER_SLOT_INNER = Symbol(`ssrRenderSlotInner`);
|
|
18
|
-
const SSR_RENDER_CLASS = Symbol(`ssrRenderClass`);
|
|
19
|
-
const SSR_RENDER_STYLE = Symbol(`ssrRenderStyle`);
|
|
20
|
-
const SSR_RENDER_ATTRS = Symbol(`ssrRenderAttrs`);
|
|
21
|
-
const SSR_RENDER_ATTR = Symbol(`ssrRenderAttr`);
|
|
22
|
-
const SSR_RENDER_DYNAMIC_ATTR = Symbol(`ssrRenderDynamicAttr`);
|
|
23
|
-
const SSR_RENDER_LIST = Symbol(`ssrRenderList`);
|
|
24
|
-
const SSR_INCLUDE_BOOLEAN_ATTR = Symbol(
|
|
13
|
+
const SSR_INTERPOLATE = /* @__PURE__ */ Symbol(`ssrInterpolate`);
|
|
14
|
+
const SSR_RENDER_VNODE = /* @__PURE__ */ Symbol(`ssrRenderVNode`);
|
|
15
|
+
const SSR_RENDER_COMPONENT = /* @__PURE__ */ Symbol(`ssrRenderComponent`);
|
|
16
|
+
const SSR_RENDER_SLOT = /* @__PURE__ */ Symbol(`ssrRenderSlot`);
|
|
17
|
+
const SSR_RENDER_SLOT_INNER = /* @__PURE__ */ Symbol(`ssrRenderSlotInner`);
|
|
18
|
+
const SSR_RENDER_CLASS = /* @__PURE__ */ Symbol(`ssrRenderClass`);
|
|
19
|
+
const SSR_RENDER_STYLE = /* @__PURE__ */ Symbol(`ssrRenderStyle`);
|
|
20
|
+
const SSR_RENDER_ATTRS = /* @__PURE__ */ Symbol(`ssrRenderAttrs`);
|
|
21
|
+
const SSR_RENDER_ATTR = /* @__PURE__ */ Symbol(`ssrRenderAttr`);
|
|
22
|
+
const SSR_RENDER_DYNAMIC_ATTR = /* @__PURE__ */ Symbol(`ssrRenderDynamicAttr`);
|
|
23
|
+
const SSR_RENDER_LIST = /* @__PURE__ */ Symbol(`ssrRenderList`);
|
|
24
|
+
const SSR_INCLUDE_BOOLEAN_ATTR = /* @__PURE__ */ Symbol(
|
|
25
25
|
`ssrIncludeBooleanAttr`
|
|
26
26
|
);
|
|
27
|
-
const SSR_LOOSE_EQUAL = Symbol(`ssrLooseEqual`);
|
|
28
|
-
const SSR_LOOSE_CONTAIN = Symbol(`ssrLooseContain`);
|
|
29
|
-
const SSR_RENDER_DYNAMIC_MODEL = Symbol(
|
|
27
|
+
const SSR_LOOSE_EQUAL = /* @__PURE__ */ Symbol(`ssrLooseEqual`);
|
|
28
|
+
const SSR_LOOSE_CONTAIN = /* @__PURE__ */ Symbol(`ssrLooseContain`);
|
|
29
|
+
const SSR_RENDER_DYNAMIC_MODEL = /* @__PURE__ */ Symbol(
|
|
30
30
|
`ssrRenderDynamicModel`
|
|
31
31
|
);
|
|
32
|
-
const SSR_GET_DYNAMIC_MODEL_PROPS = Symbol(
|
|
32
|
+
const SSR_GET_DYNAMIC_MODEL_PROPS = /* @__PURE__ */ Symbol(
|
|
33
33
|
`ssrGetDynamicModelProps`
|
|
34
34
|
);
|
|
35
|
-
const SSR_RENDER_TELEPORT = Symbol(`ssrRenderTeleport`);
|
|
36
|
-
const SSR_RENDER_SUSPENSE = Symbol(`ssrRenderSuspense`);
|
|
37
|
-
const SSR_GET_DIRECTIVE_PROPS = Symbol(`ssrGetDirectiveProps`);
|
|
35
|
+
const SSR_RENDER_TELEPORT = /* @__PURE__ */ Symbol(`ssrRenderTeleport`);
|
|
36
|
+
const SSR_RENDER_SUSPENSE = /* @__PURE__ */ Symbol(`ssrRenderSuspense`);
|
|
37
|
+
const SSR_GET_DIRECTIVE_PROPS = /* @__PURE__ */ Symbol(`ssrGetDirectiveProps`);
|
|
38
38
|
const ssrHelpers = {
|
|
39
39
|
[SSR_INTERPOLATE]: `ssrInterpolate`,
|
|
40
40
|
[SSR_RENDER_VNODE]: `ssrRenderVNode`,
|
|
@@ -710,7 +710,7 @@ function ssrProcessTransition(node, context) {
|
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
const wipMap = /* @__PURE__ */ new WeakMap();
|
|
713
|
-
const WIP_SLOT = Symbol();
|
|
713
|
+
const WIP_SLOT = /* @__PURE__ */ Symbol();
|
|
714
714
|
const componentTypeMap = /* @__PURE__ */ new WeakMap();
|
|
715
715
|
const ssrTransformComponent = (node, context) => {
|
|
716
716
|
if (node.type !== 1 || node.tagType !== 1) {
|
|
@@ -1090,7 +1090,7 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
1090
1090
|
if (value) {
|
|
1091
1091
|
context.onError(
|
|
1092
1092
|
compilerDom.createDOMCompilerError(
|
|
1093
|
-
|
|
1093
|
+
61,
|
|
1094
1094
|
value.loc
|
|
1095
1095
|
)
|
|
1096
1096
|
);
|
|
@@ -1138,11 +1138,11 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
if (node.tagType === 0) {
|
|
1140
1140
|
const res = { props: [] };
|
|
1141
|
-
const defaultProps = [
|
|
1142
|
-
// default value binding for text type inputs
|
|
1143
|
-
compilerDom.createObjectProperty(`value`, model)
|
|
1144
|
-
];
|
|
1145
1141
|
if (node.tag === "input") {
|
|
1142
|
+
const defaultProps = [
|
|
1143
|
+
// default value binding for text type inputs
|
|
1144
|
+
compilerDom.createObjectProperty(`value`, model)
|
|
1145
|
+
];
|
|
1146
1146
|
const type = compilerDom.findProp(node, "type");
|
|
1147
1147
|
if (type) {
|
|
1148
1148
|
const value = findValueBinding(node);
|
|
@@ -1199,7 +1199,7 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
1199
1199
|
case "file":
|
|
1200
1200
|
context.onError(
|
|
1201
1201
|
compilerDom.createDOMCompilerError(
|
|
1202
|
-
|
|
1202
|
+
60,
|
|
1203
1203
|
dir.loc
|
|
1204
1204
|
)
|
|
1205
1205
|
);
|
|
@@ -1222,7 +1222,7 @@ const ssrTransformModel = (dir, node, context) => {
|
|
|
1222
1222
|
} else {
|
|
1223
1223
|
context.onError(
|
|
1224
1224
|
compilerDom.createDOMCompilerError(
|
|
1225
|
-
|
|
1225
|
+
58,
|
|
1226
1226
|
dir.loc
|
|
1227
1227
|
)
|
|
1228
1228
|
);
|
|
@@ -1240,7 +1240,7 @@ function findValueBinding(node) {
|
|
|
1240
1240
|
const ssrTransformShow = (dir, node, context) => {
|
|
1241
1241
|
if (!dir.exp) {
|
|
1242
1242
|
context.onError(
|
|
1243
|
-
compilerDom.createDOMCompilerError(
|
|
1243
|
+
compilerDom.createDOMCompilerError(62)
|
|
1244
1244
|
);
|
|
1245
1245
|
}
|
|
1246
1246
|
return {
|
|
@@ -1263,7 +1263,7 @@ const ssrTransformShow = (dir, node, context) => {
|
|
|
1263
1263
|
};
|
|
1264
1264
|
};
|
|
1265
1265
|
|
|
1266
|
-
const filterChild = (node) => node.children.filter((n) => n
|
|
1266
|
+
const filterChild = (node) => node.children.filter((n) => !compilerDom.isCommentOrWhitespace(n));
|
|
1267
1267
|
const hasSingleChild = (node) => filterChild(node).length === 1;
|
|
1268
1268
|
const ssrInjectFallthroughAttrs = (node, context) => {
|
|
1269
1269
|
if (node.type === 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-ssr",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.26",
|
|
4
4
|
"description": "@vue/compiler-ssr",
|
|
5
5
|
"main": "dist/compiler-ssr.cjs.js",
|
|
6
6
|
"types": "dist/compiler-ssr.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vue/shared": "3.5.
|
|
32
|
-
"@vue/compiler-dom": "3.5.
|
|
31
|
+
"@vue/shared": "3.5.26",
|
|
32
|
+
"@vue/compiler-dom": "3.5.26"
|
|
33
33
|
}
|
|
34
34
|
}
|