@dbml/core
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -188,3 +188,9 @@ "use strict"; | ||
})) { | ||
ref.error('Reference with same endpoints duplicated'); | ||
var endpoint1 = ref.endpoints[0]; | ||
var fieldList1 = endpoint1.fieldNames.map(JSON.stringify).join(', '); | ||
var endpoint2 = ref.endpoints[1]; | ||
var fieldList2 = endpoint2.fieldNames.map(JSON.stringify).join(', '); | ||
var ref1 = "\"".concat(endpoint1.schemaName ? "".concat(endpoint1.schemaName, "\".\"") : '').concat(endpoint1.tableName, "\"(").concat(fieldList1, ")"); | ||
var ref2 = "\"".concat(endpoint2.schemaName ? "".concat(endpoint2.schemaName, "\".\"") : '').concat(endpoint2.tableName, "\"(").concat(fieldList2, ")"); | ||
ref.error("Reference with the same endpoints already exists: ".concat(ref1, " references ").concat(ref2)); | ||
} | ||
@@ -191,0 +197,0 @@ } |
{ | ||
"name": "@dbml/core", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "> TODO: description", | ||
@@ -59,3 +59,3 @@ "author": "Holistics <dev@holistics.io>", | ||
}, | ||
"gitHead": "b78340400449b8ef88f785556916a3a91c925c9a" | ||
"gitHead": "20f0629567b59fb2669d6f1e3db213506255b877" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1134440
25179
0