@dbml/parse 8.0.0-alpha.8 → 8.0.0-alpha.9
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 +1 -1
- package/dist/dbml-parse.mjs +2 -2
- package/package.json +2 -2
package/dist/dbml-parse.mjs
CHANGED
|
@@ -8231,7 +8231,7 @@ const useUtils = { visibleName(r, M) {
|
|
|
8231
8231
|
let z = P.parentOfKind(UseDeclarationNode);
|
|
8232
8232
|
if (z?.importPath?.value === void 0) return Report.create(void 0);
|
|
8233
8233
|
let B = resolveImportFilepath(P.filepath, z.importPath.value);
|
|
8234
|
-
if (!B) return Report.create(void 0);
|
|
8234
|
+
if (!B) return Report.create(void 0, [new CompileError(CompileErrorCode.BINDING_ERROR, `Import path must be relative, got '${z.importPath.value}'`, P)]);
|
|
8235
8235
|
if (!N.layout.exists(B)) return Report.create(void 0, [new CompileError(CompileErrorCode.NONEXISTENT_MODULE, `${I} '${L?.join(".") ?? R}' does not exist in file ${B.toString()}. Does the file exist?`, P)]);
|
|
8236
8236
|
let V = P.parentOfKind(InfixExpressionNode)?.leftExpression;
|
|
8237
8237
|
if (V && V !== P) {
|
|
@@ -8248,7 +8248,7 @@ const useUtils = { visibleName(r, M) {
|
|
|
8248
8248
|
let r = [];
|
|
8249
8249
|
if (N.importPath?.value) {
|
|
8250
8250
|
let M = resolveImportFilepath(N.filepath, N.importPath.value);
|
|
8251
|
-
M
|
|
8251
|
+
M ? j.layout.exists(M) || r.push(new CompileError(CompileErrorCode.NONEXISTENT_MODULE, `Failed to resolve the non-existent file '${N.importPath.value}'`, N.importPath)) : r.push(new CompileError(CompileErrorCode.BINDING_ERROR, `Import path must be relative, got '${N.importPath.value}'`, N.importPath));
|
|
8252
8252
|
}
|
|
8253
8253
|
if (N.specifiers) {
|
|
8254
8254
|
let M = j.bindNode(N.specifiers);
|
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.9",
|
|
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": "b5a159cdd4e2f0d53da79447ffacd79ce4872df5"
|
|
49
49
|
}
|