🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@marko/language-tools

Package Overview
Dependencies
Maintainers
7
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marko/language-tools - npm Package Compare versions

Comparing version
2.6.0
to
2.6.1
+9
dist/extractors/script/util/get-component-name.d.ts
/**
* Returns a PascalCase identifier to name a component's default export binding,
* but only when the file is auto-discoverable as a Marko tag (through a
* `components`/`tags` directory) and the tag name normalizes to a valid
* identifier. Otherwise `undefined`, so the extractor keeps a plain anonymous
* `export default`. Naming the binding lets auto-imports read `import MyButton`
* rather than TypeScript's file-derived `MyButtonMarko`.
*/
export declare function getComponentName(filePath: string): string | undefined;
+2
-0

@@ -78,2 +78,4 @@ // This is a typescript file which defines utilities used in the output of the typescript extractor.

export function mergeClasses<T>(...values: NoInfer<T>[]): T;
export function state<Component>(

@@ -80,0 +82,0 @@ component: Component,

+1
-1
{
"name": "@marko/language-tools",
"version": "2.6.0",
"version": "2.6.1",
"description": "Marko Language Tools",

@@ -5,0 +5,0 @@ "keywords": [

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

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