@dbml/core 2.5.0 → 2.5.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.
|
@@ -185,7 +185,13 @@ var Schema = /*#__PURE__*/function (_Element) {
|
|
|
185
185
|
if (this.refs.some(function (r) {
|
|
186
186
|
return r.equals(ref);
|
|
187
187
|
})) {
|
|
188
|
-
|
|
188
|
+
var endpoint1 = ref.endpoints[0];
|
|
189
|
+
var fieldList1 = endpoint1.fieldNames.map(JSON.stringify).join(', ');
|
|
190
|
+
var endpoint2 = ref.endpoints[1];
|
|
191
|
+
var fieldList2 = endpoint2.fieldNames.map(JSON.stringify).join(', ');
|
|
192
|
+
var ref1 = "\"".concat(endpoint1.schemaName ? "".concat(endpoint1.schemaName, "\".\"") : '').concat(endpoint1.tableName, "\"(").concat(fieldList1, ")");
|
|
193
|
+
var ref2 = "\"".concat(endpoint2.schemaName ? "".concat(endpoint2.schemaName, "\".\"") : '').concat(endpoint2.tableName, "\"(").concat(fieldList2, ")");
|
|
194
|
+
ref.error("Reference with the same endpoints already exists: ".concat(ref1, " references ").concat(ref2));
|
|
189
195
|
}
|
|
190
196
|
}
|
|
191
197
|
}, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbml/core",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.1",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Holistics <dev@holistics.io>",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"\\.(?!json$)[^.]*$": "jest-raw-loader"
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "20f0629567b59fb2669d6f1e3db213506255b877"
|
|
60
60
|
}
|