Socket
Socket
Sign inDemoInstall

@vue/compiler-dom

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/compiler-dom - npm Package Compare versions

Comparing version 3.4.0-alpha.1 to 3.4.0-alpha.2

4

dist/compiler-dom.d.ts

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

import { ParserOptions, NodeTransform, SourceLocation, CompilerError, DirectiveTransform, CompilerOptions, CodegenResult, RootNode } from '@vue/compiler-core';
import { ParserOptions, NodeTransform, SourceLocation, CompilerError, DirectiveTransform, RootNode, CompilerOptions, CodegenResult } from '@vue/compiler-core';
export * from '@vue/compiler-core';

@@ -43,4 +43,4 @@

export declare const DOMDirectiveTransforms: Record<string, DirectiveTransform>;
export declare function compile(template: string, options?: CompilerOptions): CodegenResult;
export declare function compile(src: string | RootNode, options?: CompilerOptions): CodegenResult;
export declare function parse(template: string, options?: ParserOptions): RootNode;

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

import { registerRuntimeHelpers, isBuiltInType, createSimpleExpression, createCompilerError, createObjectProperty, getConstantType, createCallExpression, TO_DISPLAY_STRING, transformModel as transformModel$1, findProp, hasDynamicKeyVBind, transformOn as transformOn$1, isStaticExp, createCompoundExpression, checkCompatEnabled, noopDirectiveTransform, baseCompile, baseParse } from '@vue/compiler-core';
import { registerRuntimeHelpers, createSimpleExpression, createCompilerError, createObjectProperty, getConstantType, createCallExpression, TO_DISPLAY_STRING, transformModel as transformModel$1, findProp, hasDynamicKeyVBind, findDir, isStaticArgOf, transformOn as transformOn$1, isStaticExp, createCompoundExpression, checkCompatEnabled, noopDirectiveTransform, baseCompile, baseParse } from '@vue/compiler-core';
export * from '@vue/compiler-core';
import { isVoidTag, isHTMLTag, isSVGTag, makeMap, parseStringStyle, capitalize, extend } from '@vue/shared';
import { isVoidTag, isHTMLTag, isSVGTag, parseStringStyle, capitalize, makeMap, extend } from '@vue/shared';

@@ -42,7 +42,4 @@ const V_MODEL_RADIO = Symbol(!!(process.env.NODE_ENV !== "production") ? `vModelRadio` : ``);

const isRawTextContainer = /* @__PURE__ */ makeMap(
"style,iframe,script,noscript",
true
);
const parserOptions = {
parseMode: "html",
isVoidTag,

@@ -53,5 +50,5 @@ isNativeTag: (tag) => isHTMLTag(tag) || isSVGTag(tag),

isBuiltInComponent: (tag) => {
if (isBuiltInType(tag, `Transition`)) {
if (tag === "Transition" || tag === "transition") {
return TRANSITION;
} else if (isBuiltInType(tag, `TransitionGroup`)) {
} else if (tag === "TransitionGroup" || tag === "transition-group") {
return TRANSITION_GROUP;

@@ -61,4 +58,4 @@ }

// https://html.spec.whatwg.org/multipage/parsing.html#tree-construction-dispatcher
getNamespace(tag, parent) {
let ns = parent ? parent.ns : 0;
getNamespace(tag, parent, rootNamespace) {
let ns = parent ? parent.ns : rootNamespace;
if (parent && ns === 2) {

@@ -91,14 +88,2 @@ if (parent.tag === "annotation-xml") {

return ns;
},
// https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments
getTextMode({ tag, ns }) {
if (ns === 0) {
if (tag === "textarea" || tag === "title") {
return 1;
}
if (isRawTextContainer(tag)) {
return 2;
}
}
return 0;
}

@@ -218,4 +203,4 @@ };

function checkDuplicatedValue() {
const value = findProp(node, "value");
if (value) {
const value = findDir(node, "bind");
if (value && isStaticArgOf(value.arg, "value")) {
context.onError(

@@ -425,2 +410,3 @@ createDOMCompilerError(

name: "persisted",
nameLoc: node.loc,
value: void 0,

@@ -470,5 +456,5 @@ loc: node.loc

};
function compile(template, options = {}) {
function compile(src, options = {}) {
return baseCompile(
template,
src,
extend({}, parserOptions, options, {

@@ -475,0 +461,0 @@ nodeTransforms: [

{
"name": "@vue/compiler-dom",
"version": "3.4.0-alpha.1",
"version": "3.4.0-alpha.2",
"description": "@vue/compiler-dom",

@@ -40,5 +40,5 @@ "main": "index.js",

"dependencies": {
"@vue/shared": "3.4.0-alpha.1",
"@vue/compiler-core": "3.4.0-alpha.1"
"@vue/shared": "3.4.0-alpha.2",
"@vue/compiler-core": "3.4.0-alpha.2"
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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