@eventcatalog/sdk 2.27.3 → 2.27.4
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/index.d.mts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4441,17 +4441,12 @@ var replaceDirectory = async (stagingDirectory, outDir) => {
|
|
|
4441
4441
|
async function hydrate(graph, options) {
|
|
4442
4442
|
const result = {
|
|
4443
4443
|
fetched: 0,
|
|
4444
|
-
written: 0
|
|
4445
|
-
referenced: 0
|
|
4444
|
+
written: 0
|
|
4446
4445
|
};
|
|
4447
4446
|
const artifacts = [];
|
|
4448
4447
|
for (const entity of graph.entities) {
|
|
4449
4448
|
const { source, commit } = entity.resolvedFrom;
|
|
4450
4449
|
if (options.localSource !== void 0 && source === options.localSource) continue;
|
|
4451
|
-
if (options.modes?.[source] === "reference") {
|
|
4452
|
-
result.referenced++;
|
|
4453
|
-
continue;
|
|
4454
|
-
}
|
|
4455
4450
|
if (!entity.contentPath) continue;
|
|
4456
4451
|
artifacts.push({
|
|
4457
4452
|
source,
|
|
@@ -4488,8 +4483,7 @@ async function hydrate(graph, options) {
|
|
|
4488
4483
|
}
|
|
4489
4484
|
for (const asset of graph.assets) {
|
|
4490
4485
|
const { source, commit } = asset.resolvedFrom;
|
|
4491
|
-
if (options.localSource !== void 0 && source === options.localSource
|
|
4492
|
-
continue;
|
|
4486
|
+
if (options.localSource !== void 0 && source === options.localSource) continue;
|
|
4493
4487
|
artifacts.push({
|
|
4494
4488
|
source,
|
|
4495
4489
|
commit,
|