Socket
Socket
Sign inDemoInstall

@vue/compiler-core

Package Overview
Dependencies
Maintainers
2
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/compiler-core - npm Package Compare versions

Comparing version 3.4.21 to 3.4.22

39

dist/compiler-core.d.ts
import { Node as Node$1, Identifier, Function, BlockStatement as BlockStatement$1, Program, ObjectProperty } from '@babel/types';
import { ParserPlugin } from '@babel/parser';
import { RawSourceMap, SourceMapGenerator } from 'source-map-js';
export { generateCodeFrame } from '@vue/shared';

@@ -673,2 +672,3 @@

* Whitespace handling strategy
* @default 'condense'
*/

@@ -928,2 +928,37 @@ whitespace?: 'preserve' | 'condense';

/**
* The `SourceMapGenerator` type from `source-map-js` is a bit incomplete as it
* misses `toJSON()`. We also need to add types for internal properties which we
* need to access for better performance.
*
* Since TS 5.3, dts generation starts to strangely include broken triple slash
* references for source-map-js, so we are inlining all source map related types
* here to to workaround that.
*/
export interface CodegenSourceMapGenerator {
setSourceContent(sourceFile: string, sourceContent: string): void;
toJSON(): RawSourceMap;
_sources: Set<string>;
_names: Set<string>;
_mappings: {
add(mapping: MappingItem): void;
};
}
export interface RawSourceMap {
file?: string;
sourceRoot?: string;
version: string;
sources: string[];
names: string[];
sourcesContent?: string[];
mappings: string;
}
interface MappingItem {
source: string;
generatedLine: number;
generatedColumn: number;
originalLine: number;
originalColumn: number;
name: string | null;
}
type CodegenNode = TemplateChildNode | JSChildNode | SSRCodegenNode;

@@ -944,3 +979,3 @@ export interface CodegenResult {

pure: boolean;
map?: SourceMapGenerator;
map?: CodegenSourceMapGenerator;
helper(key: symbol): string;

@@ -947,0 +982,0 @@ push(code: string, newlineIndex?: number, node?: CodegenNode): void;

10

package.json
{
"name": "@vue/compiler-core",
"version": "3.4.21",
"version": "3.4.22",
"description": "@vue/compiler-core",

@@ -49,11 +49,11 @@ "main": "index.js",

"dependencies": {
"@babel/parser": "^7.23.9",
"@babel/parser": "^7.24.1",
"entities": "^4.5.0",
"estree-walker": "^2.0.2",
"source-map-js": "^1.0.2",
"@vue/shared": "3.4.21"
"source-map-js": "^1.2.0",
"@vue/shared": "3.4.22"
},
"devDependencies": {
"@babel/types": "^7.23.9"
"@babel/types": "^7.24.0"
}
}

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