motoko 3.5.7 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
package/src/index.ts CHANGED
@@ -1,29 +1,28 @@
1
- import { Node, simplifyAST, CompilerAST, CompilerNode } from './ast';
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 { resolveMain, resolveLib } from './utils/resolveEntryPoint';
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
- code?: string | number | { target: any; value: string | number };
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
- severity: string;
25
- source?: string;
26
- tags?: string[];
22
+ severity: number;
23
+ code: string;
24
+ category: string;
25
+ message: string;
27
26
  };
28
27
 
29
28
  export type WasmMode = 'ic' | 'wasi';