@dbml/core 8.0.0-alpha.6 → 8.0.0-alpha.7
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/lib/index.cjs +3 -3
- package/lib/index.mjs +5 -3
- package/package.json +3 -3
package/lib/index.mjs
CHANGED
|
@@ -9400,9 +9400,9 @@ var useUtils = { visibleName(_, VY) {
|
|
|
9400
9400
|
nodeSymbol(_, VY) {
|
|
9401
9401
|
if (!isUseSpecifier(VY) || !VY.name) return Report.create(PASS_THROUGH);
|
|
9402
9402
|
let P = VY.getSymbolKind();
|
|
9403
|
-
if (P === void 0) return Report.create(PASS_THROUGH);
|
|
9403
|
+
if (P === void 0 || P === SymbolKind.Schema) return Report.create(PASS_THROUGH);
|
|
9404
9404
|
let HY = _.nodeReferee(VY.name).getFiltered(UNHANDLED);
|
|
9405
|
-
return HY && !HY.canBeImported
|
|
9405
|
+
return HY && !HY.canBeImported ? Report.create(PASS_THROUGH) : Report.create(_.symbolFactory.create(UseSymbol, {
|
|
9406
9406
|
useSpecifierDeclaration: VY,
|
|
9407
9407
|
declaration: HY?.declaration,
|
|
9408
9408
|
usedSymbol: HY,
|
|
@@ -10642,12 +10642,14 @@ var schemaModule = { symbolMembers(_, VY) {
|
|
|
10642
10642
|
for (let HY of P) KY.push(...expandTableGroup(_, VY, HY));
|
|
10643
10643
|
}
|
|
10644
10644
|
let qY = /* @__PURE__ */ new Set(), JY = KY.filter((_) => {
|
|
10645
|
+
if (_ instanceof UseSymbol && _.isKind(SymbolKind.Schema)) return !1;
|
|
10645
10646
|
let VY = `${_.originalSymbol.intern()}:${_.name ?? ""}`;
|
|
10646
10647
|
return qY.has(VY) ? !1 : (qY.add(VY), !0);
|
|
10647
10648
|
}), YY = /* @__PURE__ */ new Map();
|
|
10648
10649
|
for (let _ of JY) {
|
|
10649
10650
|
let VY = `${_.kind}:${_.name}`;
|
|
10650
10651
|
if (YY.get(VY)) {
|
|
10652
|
+
if (_.isKind(SymbolKind.Schema)) continue;
|
|
10651
10653
|
let VY = _ instanceof UseSymbol ? _.useSpecifierDeclaration ?? _.declaration : _.declaration instanceof ElementDeclarationNode && _.declaration.name ? _.declaration.name : _.declaration;
|
|
10652
10654
|
VY && _.name !== void 0 && GY.push(getDuplicateSchemaMemberError(_.kind, _.name, P.join("."), VY));
|
|
10653
10655
|
} else YY.set(VY, _);
|
|
@@ -1825773,5 +1825775,5 @@ function findDiagramViewBlocks(_) {
|
|
|
1825773
1825775
|
let VY = new Compiler();
|
|
1825774
1825776
|
return VY.setSource(DEFAULT_ENTRY, _), VY.findDiagramViewBlocks(DEFAULT_ENTRY);
|
|
1825775
1825777
|
}
|
|
1825776
|
-
const VERSION = "8.0.0-alpha.
|
|
1825778
|
+
const VERSION = "8.0.0-alpha.7";
|
|
1825777
1825779
|
export { CompilerError, ModelExporter_default as ModelExporter, Parser_default as Parser, VERSION, addDoubleQuoteIfNeeded, dbmlMonarchTokensProvider, export_default as exporter, findDiagramViewBlocks, formatRecordValue, import_default as importer, isBinaryType, isBooleanType, isDateTimeType, isFloatType, isIntegerType, isNumericType, isSerialType, isStringType, renameTable, syncDiagramView, tryExtractBoolean, tryExtractDateTime, tryExtractEnum, tryExtractInteger, tryExtractNumeric, tryExtractString };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@dbml/core",
|
|
4
|
-
"version": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.7",
|
|
5
5
|
"description": "> TODO: description",
|
|
6
6
|
"author": "Holistics <dev@holistics.io>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"lint:fix": "eslint --fix ."
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@dbml/parse": "^8.0.0-alpha.
|
|
49
|
+
"@dbml/parse": "^8.0.0-alpha.7",
|
|
50
50
|
"antlr4": "^4.13.1",
|
|
51
51
|
"lodash": "^4.18.1",
|
|
52
52
|
"lodash-es": "^4.18.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"bluebird": "^3.5.5"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "4c4389c0126b09613bc4daec1c4b938dddb3c434",
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=16"
|
|
63
63
|
}
|