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

@volar/vue-code-gen

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/vue-code-gen - npm Package Compare versions

Comparing version 0.34.16 to 0.34.17

3

out/generators/template.d.ts

@@ -5,3 +5,4 @@ import { CodeGen } from '@volar/code-gen';

export declare const transformContext: CompilerDOM.TransformContext;
export declare function generate(ts: typeof import('typescript/lib/tsserverlibrary'), sourceLang: string, templateAst: CompilerDOM.RootNode, isVue2: boolean, experimentalRuntimeMode: 'runtime-dom' | 'runtime-uni-app', allowTypeNarrowingInEventExpressions: boolean, cssScopedClasses: string[] | undefined, htmlToTemplate: (htmlStart: number, htmlEnd: number) => {
export declare function isIntrinsicElement(runtimeMode: "runtime-dom" | "runtime-uni-app" | undefined, tag: string): boolean;
export declare function generate(ts: typeof import('typescript/lib/tsserverlibrary'), sourceLang: string, templateAst: CompilerDOM.RootNode, isVue2: boolean, experimentalRuntimeMode: 'runtime-dom' | 'runtime-uni-app' | undefined, allowTypeNarrowingInEventExpressions: boolean, cssScopedClasses: string[] | undefined, htmlToTemplate: (htmlStart: number, htmlEnd: number) => {
start: number;

@@ -8,0 +9,0 @@ end: number;

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

import { isIntrinsicElement } from './generators/template';
import * as CompilerDOM from '@vue/compiler-dom';
export * from './types';
export * from '@vue/compiler-dom';
export { isIntrinsicElement };
/**

@@ -5,0 +7,0 @@ * @param templateAst Use `require('@vue/compiler-dom').compile` or `require('@volar/vue-code-gen').compileTemplate`, provide to resolve variables unused in script setup

@@ -17,4 +17,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.compileSFCTemplate = exports.generateSFCScriptTypeCheckCode = void 0;
exports.compileSFCTemplate = exports.generateSFCScriptTypeCheckCode = exports.isIntrinsicElement = void 0;
const script_1 = require("./generators/script");
const template_1 = require("./generators/template");
Object.defineProperty(exports, "isIntrinsicElement", { enumerable: true, get: function () { return template_1.isIntrinsicElement; } });
const scriptRanges_1 = require("./parsers/scriptRanges");

@@ -21,0 +23,0 @@ const scriptSetupRanges_1 = require("./parsers/scriptSetupRanges");

@@ -9,3 +9,3 @@ "use strict";

options.onError = (error) => {
if (error.code === 33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */)
if (error.code === 33 /* CompilerCore.ErrorCodes.X_V_FOR_TEMPLATE_KEY_PLACEMENT */)
return; // :key binding allowed in v-for template child in vue 2

@@ -31,6 +31,6 @@ if (onError)

if (!prefixIdentifiers && options.cacheHandlers) {
onError(CompilerCore.createCompilerError(48 /* X_CACHE_HANDLER_NOT_SUPPORTED */));
onError(CompilerCore.createCompilerError(48 /* CompilerCore.ErrorCodes.X_CACHE_HANDLER_NOT_SUPPORTED */));
}
if (options.scopeId && !isModuleMode) {
onError(CompilerCore.createCompilerError(49 /* X_SCOPE_ID_NOT_SUPPORTED */));
onError(CompilerCore.createCompilerError(49 /* CompilerCore.ErrorCodes.X_SCOPE_ID_NOT_SUPPORTED */));
}

@@ -37,0 +37,0 @@ const ast = CompilerCore.baseParse(template, options);

{
"name": "@volar/vue-code-gen",
"version": "0.34.16",
"version": "0.34.17",
"main": "out/index.js",

@@ -19,9 +19,9 @@ "license": "MIT",

"dependencies": {
"@volar/code-gen": "0.34.16",
"@volar/source-map": "0.34.16",
"@vue/compiler-core": "^3.2.31",
"@vue/compiler-dom": "^3.2.31",
"@vue/shared": "^3.2.31"
"@volar/code-gen": "0.34.17",
"@volar/source-map": "0.34.17",
"@vue/compiler-core": "^3.2.36",
"@vue/compiler-dom": "^3.2.36",
"@vue/shared": "^3.2.36"
},
"gitHead": "ac00080f9823618b7fcb6170b9dff04b60d1e89c"
"gitHead": "a8cc362a7c90876bff4ed82b73eddc87db4b4cfc"
}

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