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

@vue/compiler-sfc

Package Overview
Dependencies
Maintainers
1
Versions
277
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/compiler-sfc - npm Package Compare versions

Comparing version 3.2.4 to 3.2.5

58

dist/compiler-sfc.d.ts

@@ -7,7 +7,8 @@ import { parse as babelParse } from '@babel/parser';

import { ElementNode } from '@vue/compiler-core';
import { extractIdentifiers } from '@vue/compiler-core';
import { generateCodeFrame } from '@vue/compiler-core';
import { Identifier } from '@babel/types';
import { isInDestructureAssignment } from '@vue/compiler-core';
import { isStaticProperty } from '@vue/compiler-core';
import { LazyResult } from 'postcss';
import MagicString from 'magic-string';
import { Node as Node_2 } from '@babel/types';
import { ParserOptions } from '@vue/compiler-core';

@@ -18,5 +19,9 @@ import { ParserPlugin } from '@babel/parser';

import { RootNode } from '@vue/compiler-core';
import { shouldTransform as shouldTransformRef } from '@vue/ref-transform';
import { SourceLocation } from '@vue/compiler-core';
import { Statement } from '@babel/types';
import { transform as transformRef } from '@vue/ref-transform';
import { transformAST as transformRefAST } from '@vue/ref-transform';
import { walk } from 'estree-walker';
import { walkIdentifiers } from '@vue/compiler-core';

@@ -74,4 +79,10 @@ declare interface AssetURLOptions {

export { extractIdentifiers }
export { generateCodeFrame }
export { isInDestructureAssignment }
export { isStaticProperty }
export { MagicString }

@@ -89,15 +100,2 @@

/**
* Text range data for IDE support
*/
declare interface ScriptSetupTextRanges {
scriptBindings: TextRange[];
scriptSetupBindings: TextRange[];
propsTypeArg?: TextRange;
propsRuntimeArg?: TextRange;
emitsTypeArg?: TextRange;
emitsRuntimeArg?: TextRange;
withDefaultsArg?: TextRange;
}
export declare interface SFCAsyncStyleCompileOptions extends SFCStyleCompileOptions {

@@ -151,3 +149,2 @@ isAsync?: boolean;

scriptSetupAst?: Statement[];
ranges?: ScriptSetupTextRanges;
}

@@ -170,6 +167,10 @@

/**
* Introduce a compiler-based syntax sugar for using refs without `.value`
* (Experimental) Enable syntax transform for using refs without `.value`
* https://github.com/vuejs/rfcs/discussions/369
* @default true
*/
refTransform?: boolean;
/**
* @deprecated use `refTransform` instead.
*/
refSugar?: boolean;

@@ -190,8 +191,2 @@ /**

templateOptions?: Partial<SFCTemplateCompileOptions>;
/**
* Skip codegen and only return AST / binding / text range information.
* Also makes the call error-tolerant.
* Used for IDE support.
*/
parseOnly?: boolean;
}

@@ -275,2 +270,4 @@

export { shouldTransformRef }
export declare interface TemplateCompiler {

@@ -281,17 +278,10 @@ compile(template: string, options: CompilerOptions): CodegenResult;

declare interface TextRange {
start: number;
end: number;
}
export { transformRef }
export { transformRefAST }
export { walk }
/**
* Walk an AST and find identifiers that are variable references.
* This is largely the same logic with `transformExpressions` in compiler-core
* but with some subtle differences as this needs to handle a wider range of
* possible syntax.
*/
export declare function walkIdentifiers(root: Node_2, onIdentifier: (node: Identifier, parent: Node_2, parentStack: Node_2[]) => void, onNode?: (node: Node_2, parent: Node_2, parentStack: Node_2[]) => void | boolean): void;
export { walkIdentifiers }
export { }
{
"name": "@vue/compiler-sfc",
"version": "3.2.4",
"version": "3.2.5",
"description": "@vue/compiler-sfc",

@@ -34,11 +34,12 @@ "main": "dist/compiler-sfc.cjs.js",

"dependencies": {
"@babel/parser": "^7.13.9",
"@babel/types": "^7.13.0",
"@babel/parser": "^7.15.0",
"@babel/types": "^7.15.0",
"@types/estree": "^0.0.48",
"@vue/compiler-core": "3.2.4",
"@vue/compiler-dom": "3.2.4",
"@vue/compiler-ssr": "3.2.4",
"@vue/shared": "3.2.4",
"@vue/compiler-core": "3.2.5",
"@vue/compiler-dom": "3.2.5",
"@vue/compiler-ssr": "3.2.5",
"@vue/ref-transform": "3.2.5",
"@vue/shared": "3.2.5",
"consolidate": "^0.16.0",
"estree-walker": "^2.0.1",
"estree-walker": "^2.0.2",
"hash-sum": "^2.0.0",

@@ -45,0 +46,0 @@ "lru-cache": "^5.1.1",

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