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

@vue/compiler-ssr-canary

Package Overview
Dependencies
Maintainers
0
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/compiler-ssr-canary - npm Package Compare versions

Comparing version 3.20240715.0-minor.0 to 3.20240812.0-minor.0

40

dist/compiler-ssr.cjs.js
/**
* @vue/compiler-ssr-canary v3.20240715.0-minor.0
* @vue/compiler-ssr-canary v3.20240812.0-minor.0
* (c) 2018-present Yuxi (Evan) You and Vue contributors

@@ -24,7 +24,13 @@ * @license MIT

const SSR_RENDER_LIST = Symbol(`ssrRenderList`);
const SSR_INCLUDE_BOOLEAN_ATTR = Symbol(`ssrIncludeBooleanAttr`);
const SSR_INCLUDE_BOOLEAN_ATTR = Symbol(
`ssrIncludeBooleanAttr`
);
const SSR_LOOSE_EQUAL = Symbol(`ssrLooseEqual`);
const SSR_LOOSE_CONTAIN = Symbol(`ssrLooseContain`);
const SSR_RENDER_DYNAMIC_MODEL = Symbol(`ssrRenderDynamicModel`);
const SSR_GET_DYNAMIC_MODEL_PROPS = Symbol(`ssrGetDynamicModelProps`);
const SSR_RENDER_DYNAMIC_MODEL = Symbol(
`ssrRenderDynamicModel`
);
const SSR_GET_DYNAMIC_MODEL_PROPS = Symbol(
`ssrGetDynamicModelProps`
);
const SSR_RENDER_TELEPORT = Symbol(`ssrRenderTeleport`);

@@ -97,6 +103,3 @@ const SSR_RENDER_SUSPENSE = Symbol(`ssrRenderSuspense`);

const ssrTransformFor = compilerDom.createStructuralDirectiveTransform(
"for",
compilerDom.processFor
);
const ssrTransformFor = compilerDom.createStructuralDirectiveTransform("for", compilerDom.processFor);
function ssrProcessFor(node, context, disableNestedFragments = false) {

@@ -364,2 +367,21 @@ const needFragmentWrapper = !disableNestedFragments && (node.children.length !== 1 || node.children[0].type !== 1);

}
} else if (directives.length && !node.children.length) {
const tempId = `_temp${context.temps++}`;
propsExp.arguments = [
compilerDom.createAssignmentExpression(
compilerDom.createSimpleExpression(tempId, false),
mergedProps
)
];
rawChildrenMap.set(
node,
compilerDom.createConditionalExpression(
compilerDom.createSimpleExpression(`"textContent" in ${tempId}`, false),
compilerDom.createCallExpression(context.helper(SSR_INTERPOLATE), [
compilerDom.createSimpleExpression(`${tempId}.textContent`, false)
]),
compilerDom.createSimpleExpression(`${tempId}.innerHTML ?? ''`, false),
false
)
);
}

@@ -653,3 +675,3 @@ if (needTagForRuntime) {

context.pushStringPart(`>`);
processChildren(node, context, false, true);
processChildren(node, context, false, true, true);
context.pushStringPart(`</${tag.value.content}>`);

@@ -656,0 +678,0 @@ }

{
"name": "@vue/compiler-ssr-canary",
"version": "3.20240715.0-minor.0",
"version": "3.20240812.0-minor.0",
"description": "@vue/compiler-ssr",

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

"dependencies": {
"@vue/shared": "npm:@vue/shared-canary@3.20240715.0-minor.0",
"@vue/compiler-dom": "npm:@vue/compiler-dom-canary@3.20240715.0-minor.0"
"@vue/shared": "npm:@vue/shared-canary@3.20240812.0-minor.0",
"@vue/compiler-dom": "npm:@vue/compiler-dom-canary@3.20240812.0-minor.0"
}
}

@@ -1,1 +0,1 @@

# @vue/compiler-ssr
# @vue/compiler-ssr
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