diff --git a/packages/common/src/glossary.ts b/packages/common/src/glossary.ts index f2cf0b1..d39317f 100644 --- a/packages/common/src/glossary.ts +++ b/packages/common/src/glossary.ts @@ -28,7 +28,7 @@ export interface GlossaryRegisterConfig extends RegisterConfiguration<{ * Converts a stream of ID & localized concept tuples * to a stream of objects with register item keyed by class ID. */ -export async function * asRegisterItems( +export async function * asRegisterItemsWithInferredUniversal( concepts: AsyncGenerator, opts?: RegisterItemConversionOpts, ): AsyncGenerator, void, undefined> { diff --git a/packages/x3duom/src/index.ts b/packages/x3duom/src/index.ts index bca0850..4512961 100644 --- a/packages/x3duom/src/index.ts +++ b/packages/x3duom/src/index.ts @@ -6,7 +6,7 @@ import { type GlossaryRegisterConfig, type LinkParser, processLinks, - asRegisterItems, + asRegisterItemsWithInferredUniversal, } from '../../common/src/glossary.js'; @@ -106,13 +106,13 @@ const generateRegisterItems: X3DUOMConvertor["generateRegisterItems"] = async function * generateGlossaryRegisterItems(itemGenerator, opts) { console.info("LINKS?", opts?.urnNamespace); const stream = opts?.urnNamespace - ? processLinks(parseLinks, asRegisterItems(itemGenerator, opts), { + ? processLinks(parseLinks, asRegisterItemsWithInferredUniversal(itemGenerator, opts), { linkURNPrefix: opts.urnNamespace, onProgress: opts.onProgress ? function (msg) { opts!.onProgress!(`Process links: ${msg}`); } : undefined, }) - : asRegisterItems(itemGenerator, opts); + : asRegisterItemsWithInferredUniversal(itemGenerator, opts); yield * stream; //if (opts?.urnNamespace) {