Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vue/compiler-ssr

Package Overview
Dependencies
Maintainers
16
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/compiler-ssr - npm Package Compare versions

Comparing version 3.0.0-beta.18 to 3.0.0-beta.19

34

dist/compiler-ssr.cjs.js

@@ -9,2 +9,3 @@ 'use strict';

const SSR_INTERPOLATE = Symbol(`ssrInterpolate`);
const SSR_RENDER_VNODE = Symbol(`ssrRenderVNode`);
const SSR_RENDER_COMPONENT = Symbol(`ssrRenderComponent`);

@@ -26,2 +27,3 @@ const SSR_RENDER_SLOT = Symbol(`ssrRenderSlot`);

[SSR_INTERPOLATE]: `ssrInterpolate`,
[SSR_RENDER_VNODE]: `ssrRenderVNode`,
[SSR_RENDER_COMPONENT]: `ssrRenderComponent`,

@@ -233,4 +235,4 @@ [SSR_RENDER_SLOT]: `ssrRenderSlot`,

const component = compilerDom.resolveComponentType(node, context, true /* ssr */);
componentTypeMap.set(node, component);
if (shared.isSymbol(component)) {
componentTypeMap.set(node, component);
if (component === compilerDom.SUSPENSE) {

@@ -282,9 +284,25 @@ return ssrTransformSuspense(node, context);

: `null`;
node.ssrCodegenNode = compilerDom.createCallExpression(context.helper(SSR_RENDER_COMPONENT), [component, props, slots, `_parent`]);
if (typeof component !== 'string') {
// dynamic component that resolved to a `resolveDynamicComponent` call
// expression - since the reoslved result may be a plain element (string)
// or a VNode, handle it with `renderVNode`.
node.ssrCodegenNode = compilerDom.createCallExpression(context.helper(SSR_RENDER_VNODE), [
`_push`,
compilerDom.createCallExpression(context.helper(compilerDom.CREATE_VNODE), [
component,
props,
slots
]),
`_parent`
]);
}
else {
node.ssrCodegenNode = compilerDom.createCallExpression(context.helper(SSR_RENDER_COMPONENT), [component, props, slots, `_parent`]);
}
};
};
function ssrProcessComponent(node, context) {
const component = componentTypeMap.get(node);
if (!node.ssrCodegenNode) {
// this is a built-in component that fell-through.
const component = componentTypeMap.get(node);
if (component === compilerDom.TELEPORT) {

@@ -312,3 +330,11 @@ return ssrProcessTeleport(node, context);

}
context.pushStatement(compilerDom.createCallExpression(`_push`, [node.ssrCodegenNode]));
if (typeof component === 'string') {
// static component
context.pushStatement(compilerDom.createCallExpression(`_push`, [node.ssrCodegenNode]));
}
else {
// dynamic component (`resolveDynamicComponent` call)
// the codegen node is a `renderVNode` call
context.pushStatement(node.ssrCodegenNode);
}
}

@@ -315,0 +341,0 @@ }

6

package.json
{
"name": "@vue/compiler-ssr",
"version": "3.0.0-beta.18",
"version": "3.0.0-beta.19",
"description": "@vue/compiler-ssr",

@@ -30,5 +30,5 @@ "main": "dist/compiler-ssr.cjs.js",

"dependencies": {
"@vue/shared": "3.0.0-beta.18",
"@vue/compiler-dom": "3.0.0-beta.18"
"@vue/shared": "3.0.0-beta.19",
"@vue/compiler-dom": "3.0.0-beta.19"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc