@code-inspector/core
Advanced tools
+1
-1
| { | ||
| "name": "@code-inspector/core", | ||
| "version": "1.4.5", | ||
| "version": "1.4.6", | ||
| "main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.mjs", |
| import MagicString from 'magic-string'; | ||
| import { EscapeTags } from '../../shared'; | ||
| import type { ElementNode } from '@vue/compiler-dom'; | ||
| import * as pug from 'volar-service-pug/lib/languageService'; | ||
| interface AstLocation { | ||
| column: number; | ||
| line: number; | ||
| } | ||
| export interface PugFileInfo { | ||
@@ -9,2 +14,11 @@ content: string; | ||
| export declare const pugMap: Map<string, PugFileInfo>; | ||
| export declare function belongTemplate(target: AstLocation, start: AstLocation, end: AstLocation): boolean; | ||
| interface TransformPugParams { | ||
| node: pug.Node | null | undefined; | ||
| templateNode: ElementNode; | ||
| s: MagicString; | ||
| escapeTags: EscapeTags; | ||
| filePath: string; | ||
| } | ||
| export declare function transformPugAst(params: TransformPugParams): void; | ||
| /** | ||
@@ -31,1 +45,2 @@ * Check if a template node uses Pug syntax | ||
| export declare function transformPugTemplate(content: string, filePath: string, templateNode: ElementNode, escapeTags: EscapeTags, s: MagicString): void; | ||
| export {}; |
| import { EscapeTags } from '../../shared'; | ||
| type VueCompilerDom = Pick<typeof import('@vue/compiler-dom'), 'parse' | 'transform'>; | ||
| export declare function resolveVueCompilerDom(mod: any): VueCompilerDom; | ||
| export declare function transformVue(content: string, filePath: string, escapeTags: EscapeTags): Promise<string>; | ||
| export {}; |
| import { CodeOptions, Condition, EscapeTags } from './type'; | ||
| export declare function getIP(ip: boolean | string): string; | ||
| export declare function fileURLToPath(fileURL: string): string; | ||
| export declare function isJsTypeFile(file: string): boolean; | ||
@@ -5,0 +4,0 @@ export declare function getFilePathWithoutExt(filePath: string): string; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
12321563
03249
0.53%