@dbml/parse 10.2.1-expose-diagnostic-filepath.0 → 10.2.1-expose-diagnostic-filepath.1

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.
@@ -1,5 +1,6 @@
1
1
  import { Filepath } from '../../core/types/filepath';
2
2
  export interface DbmlProjectLayout {
3
+ resolveFileSpecifier(currentFilepath: Filepath, specifier: string): Filepath | undefined;
3
4
  getSource(filePath: Filepath): string | undefined;
4
5
  exists(filePath: Filepath): boolean;
5
6
  isFile(filePath: Filepath): boolean;
@@ -10,6 +11,7 @@ export interface DbmlProjectLayout {
10
11
  export declare class MemoryProjectLayout implements DbmlProjectLayout {
11
12
  private readonly files;
12
13
  constructor(files?: Map<string, string> | Record<string, string>);
14
+ resolveFileSpecifier(currentFilepath: Filepath, relativePath: string): Filepath | undefined;
13
15
  setSource(filePath: Filepath, content: string): void;
14
16
  getSource(filePath: Filepath): string | undefined;
15
17
  deleteSource(filePath: Filepath): void;
@@ -14,13 +14,14 @@ export declare class Filepath implements Internable<FilepathId> {
14
14
  static resolve(fromDir: string, relativePath: string): Filepath;
15
15
  static fromUri(uri: string): Filepath;
16
16
  get absolute(): string;
17
+ get fsPath(): string;
17
18
  get dirname(): string;
18
19
  get basename(): string;
19
20
  get extname(): string;
20
21
  resolve(relativePath: string): Filepath;
21
22
  join(...segments: string[]): Filepath;
22
23
  relativeTo(baseDir: string): string;
23
- toString(): string;
24
+ toKey(): string;
24
25
  equals(other: Filepath): boolean;
25
26
  isParentOf(other: Filepath): boolean;
26
27
  toUri(options?: {
@@ -28,5 +29,4 @@ export declare class Filepath implements Internable<FilepathId> {
28
29
  }): string;
29
30
  static isRelative(p: string): boolean;
30
31
  }
31
- export declare function resolveImportFilepath(currentFilepath: Filepath, relativePath: string): Filepath | undefined;
32
32
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@dbml/parse",
4
- "version": "10.2.1-expose-diagnostic-filepath.0",
4
+ "version": "10.2.1-expose-diagnostic-filepath.1",
5
5
  "description": "DBML parser v2",
6
6
  "author": "Holistics <dev@holistics.io>",
7
7
  "license": "Apache-2.0",
@@ -51,5 +51,5 @@
51
51
  "engines": {
52
52
  "node": ">=18"
53
53
  },
54
- "gitHead": "9cd9a516420432f7cb90c3232f65f8829466ebd6"
54
+ "gitHead": "70c531b58c2a045c1e573fc642b76b9a82e8b49a"
55
55
  }