@dbml/parse 8.0.0-alpha.7 → 8.0.0-alpha.8
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/dbml-parse.js +2 -2
- package/dist/dbml-parse.mjs +10 -6
- package/package.json +2 -2
package/dist/dbml-parse.mjs
CHANGED
|
@@ -7350,11 +7350,15 @@ var ProgramInterpreter = class {
|
|
|
7350
7350
|
let P = N.getValue();
|
|
7351
7351
|
P && this.pushElement(M, P);
|
|
7352
7352
|
}
|
|
7353
|
-
let r = this.compiler.symbolMembers(this.programSymbol).getFiltered(UNHANDLED) ?? [];
|
|
7354
|
-
for (let
|
|
7355
|
-
if (!(
|
|
7356
|
-
let
|
|
7357
|
-
for (let j of
|
|
7353
|
+
let r = /* @__PURE__ */ new Set(), M = this.compiler.symbolMembers(this.programSymbol).getFiltered(UNHANDLED) ?? [];
|
|
7354
|
+
for (let N of M) {
|
|
7355
|
+
if (!(N instanceof SchemaSymbol)) continue;
|
|
7356
|
+
let M = this.compiler.symbolMembers(N).getFiltered(UNHANDLED) ?? [];
|
|
7357
|
+
for (let j of M) {
|
|
7358
|
+
if (!(j instanceof UseSymbol)) continue;
|
|
7359
|
+
let M = j.originalSymbol.intern();
|
|
7360
|
+
r.has(M) || (r.add(M), this.interpretUseSymbol(j));
|
|
7361
|
+
}
|
|
7358
7362
|
}
|
|
7359
7363
|
}
|
|
7360
7364
|
interpretUseSymbol(r) {
|
|
@@ -13294,7 +13298,7 @@ function containerScopeKind(r, j) {
|
|
|
13294
13298
|
}
|
|
13295
13299
|
function canonicalName(r, j) {
|
|
13296
13300
|
let N = j.originalSymbol;
|
|
13297
|
-
if (N.filepath.
|
|
13301
|
+
if (N.filepath.equals(r)) return Report.create(fullnameToCanonical(this, N));
|
|
13298
13302
|
let P = [...this.symbolUses(N).getValue(), ...this.symbolAliases(N).getValue()].filter((j) => j.filepath.equals(r));
|
|
13299
13303
|
for (let r of P) {
|
|
13300
13304
|
let j = r.name;
|
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": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.8",
|
|
5
5
|
"description": "DBML parser v2",
|
|
6
6
|
"author": "Holistics <dev@holistics.io>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=18"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "ddb14ef16808f03119bcdc7e28dc88e254a4e21f"
|
|
49
49
|
}
|