@marko/language-tools 2.4.5 → 2.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extractors/script/index.d.ts +1 -1
- package/dist/extractors/script/util/script-parser.d.ts +4 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +426 -394
- package/dist/index.mjs +415 -383
- package/dist/parser.d.ts +1 -1
- package/dist/util/project.d.ts +1 -1
- package/marko.internal.d.ts +0 -1
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type TS from "typescript/lib/tsserverlibrary";
|
|
2
1
|
import type { TaglibLookup } from "@marko/babel-utils";
|
|
2
|
+
import type TS from "typescript/lib/tsserverlibrary";
|
|
3
3
|
import { type Parsed } from "../../parser";
|
|
4
4
|
/**
|
|
5
5
|
* Iterate over the Marko CST and extract all the script content.
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type * as t from "@babel/types";
|
|
2
|
+
import type { Parsed } from "../../../parser";
|
|
2
3
|
export declare class ScriptParser {
|
|
3
4
|
#private;
|
|
4
|
-
constructor(
|
|
5
|
-
statementAt<T = t.Statement[]>(
|
|
6
|
-
expressionAt<T = t.Expression>(
|
|
5
|
+
constructor(parsed: Parsed);
|
|
6
|
+
statementAt<T = t.Statement[]>(startIndex: number, src: string): never[] | (T extends unknown[] ? T : readonly [T]);
|
|
7
|
+
expressionAt<T = t.Expression>(startIndex: number, src: string): T | undefined;
|
|
7
8
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./extractors/style";
|
|
1
|
+
export * from "./extractors/html";
|
|
3
2
|
export * from "./extractors/script";
|
|
4
|
-
export *
|
|
3
|
+
export * from "./extractors/style";
|
|
4
|
+
export * from "./parser";
|
|
5
5
|
export * as Processors from "./processors";
|
|
6
|
+
export { type Extracted } from "./util/extractor";
|
|
6
7
|
export { getExt } from "./util/get-ext";
|
|
7
8
|
export { isDefinitionFile } from "./util/is-definition-file";
|
|
8
|
-
export * from "./
|
|
9
|
-
export { type Extracted } from "./util/extractor";
|
|
9
|
+
export * as Project from "./util/project";
|