motoko 3.5.6 → 3.5.8
Sign up to get free protection for your applications and to get access to all the features.
- package/contrib/generated/errorCodes.json +1 -0
- package/lib/index.d.ts +4 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/packages/latest/base.json +1 -1
- package/src/index.ts +8 -9
- package/versions/latest/moc.min.js +1 -1
- package/versions/latest/moc_interpreter.min.js +1 -1
package/src/index.ts
CHANGED
@@ -1,29 +1,28 @@
|
|
1
|
-
import { Node, simplifyAST
|
1
|
+
import { CompilerNode, Node, simplifyAST } from './ast';
|
2
2
|
import { file } from './file';
|
3
3
|
import {
|
4
|
-
fetchPackage,
|
5
|
-
installPackages,
|
6
4
|
Package,
|
7
5
|
PackageInfo,
|
6
|
+
fetchPackage,
|
7
|
+
installPackages,
|
8
8
|
validatePackage,
|
9
9
|
} from './package';
|
10
|
-
import {
|
10
|
+
import { resolveLib, resolveMain } from './utils/resolveEntryPoint';
|
11
11
|
|
12
12
|
export type Motoko = ReturnType<typeof wrapMotoko>;
|
13
13
|
|
14
14
|
type Compiler = any; // TODO: generate from `js_of_ocaml`?
|
15
15
|
|
16
|
-
// TODO: compatibility with the VS Code or Monaco `Diagnostic` type
|
17
16
|
export type Diagnostic = {
|
18
|
-
|
19
|
-
message: string;
|
17
|
+
source: string;
|
20
18
|
range: {
|
21
19
|
start: { line: number; character: number };
|
22
20
|
end: { line: number; character: number };
|
23
21
|
};
|
24
22
|
severity: string;
|
25
|
-
|
26
|
-
|
23
|
+
code: string;
|
24
|
+
category: string;
|
25
|
+
message: string;
|
27
26
|
};
|
28
27
|
|
29
28
|
export type WasmMode = 'ic' | 'wasi';
|