@marko/compiler 5.31.1 → 5.31.2
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/config.d.ts +4 -1
- package/index.d.ts +6 -5
- package/package.json +2 -2
package/config.d.ts
CHANGED
|
@@ -10,7 +10,10 @@ declare const Config: {
|
|
|
10
10
|
ignoreUnrecognizedTags?: boolean;
|
|
11
11
|
sourceMaps?: boolean | "inline" | "both";
|
|
12
12
|
translator?: any;
|
|
13
|
-
fileSystem?:
|
|
13
|
+
fileSystem?: Pick<
|
|
14
|
+
typeof import("fs"),
|
|
15
|
+
"statSync" | "readFileSync" | "readdirSync"
|
|
16
|
+
>;
|
|
14
17
|
modules?: "esm" | "cjs";
|
|
15
18
|
resolveVirtualDependency?:
|
|
16
19
|
| ((
|
package/index.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import { TaglibLookup, Diagnostic } from "@marko/babel-utils";
|
|
|
3
3
|
import * as types from "./babel-types";
|
|
4
4
|
export { types };
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
type _Config = typeof import("./config");
|
|
7
|
+
export interface Config extends _Config {}
|
|
7
8
|
|
|
8
9
|
type Dep = {
|
|
9
10
|
type: string;
|
|
@@ -16,21 +17,21 @@ type Dep = {
|
|
|
16
17
|
[x: string]: unknown;
|
|
17
18
|
};
|
|
18
19
|
|
|
19
|
-
export
|
|
20
|
+
export interface MarkoMeta {
|
|
20
21
|
id: string;
|
|
21
22
|
component?: string;
|
|
22
23
|
watchFiles: string[];
|
|
23
24
|
tags?: string[];
|
|
24
25
|
deps: Array<string | Dep>;
|
|
25
26
|
diagnostics: Diagnostic[];
|
|
26
|
-
}
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
export
|
|
29
|
+
export interface CompileResult {
|
|
29
30
|
ast: types.File;
|
|
30
31
|
code: string;
|
|
31
32
|
map: SourceMap;
|
|
32
33
|
meta: MarkoMeta;
|
|
33
|
-
}
|
|
34
|
+
}
|
|
34
35
|
|
|
35
36
|
export function configure(config: Config): void;
|
|
36
37
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
3
|
"description": "Marko template to JS compiler.",
|
|
4
|
-
"version": "5.31.
|
|
4
|
+
"version": "5.31.2",
|
|
5
5
|
"author": "Dylan Piercey <dpiercey@ebay.com>",
|
|
6
6
|
"bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
|
|
7
7
|
"dependencies": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@babel/runtime": "^7.16.0",
|
|
16
16
|
"@babel/traverse": "^7.16.0",
|
|
17
17
|
"@babel/types": "^7.16.0",
|
|
18
|
-
"@marko/babel-utils": "^6.2.
|
|
18
|
+
"@marko/babel-utils": "^6.2.1",
|
|
19
19
|
"complain": "^1.6.0",
|
|
20
20
|
"he": "^1.2.0",
|
|
21
21
|
"htmljs-parser": "^5.4.3",
|